mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(system): path to upgrade standalone to BE [EE-4071] (#8095)
This commit is contained in:
parent
756ac034ec
commit
5cbf52377d
73 changed files with 1374 additions and 421 deletions
|
@ -11,6 +11,10 @@ $project_path = $((Get-Location).Path)
|
|||
New-Item -Name dist -Path "$project_path" -ItemType Directory | Out-Null
|
||||
Set-Location -Path "$project_path\api\cmd\portainer"
|
||||
|
||||
# copy templates
|
||||
Copy-Item -Path "./mustache-templates" -Destination "./dist" -Recurse
|
||||
|
||||
|
||||
C:\go\bin\go.exe get -t -d -v ./...
|
||||
C:\go\bin\go.exe build -v
|
||||
|
||||
|
|
|
@ -12,6 +12,10 @@ YARN_VERSION="0"
|
|||
WEBPACK_VERSION="0"
|
||||
GO_VERSION="0"
|
||||
|
||||
# copy templates
|
||||
cp -r "./mustache-templates" "./dist"
|
||||
|
||||
|
||||
cd api
|
||||
# the go get adds 8 seconds
|
||||
go get -t -d -v ./...
|
||||
|
|
|
@ -13,6 +13,8 @@ mkdir -p ${GOPATH}/src/github.com/portainer/portainer
|
|||
|
||||
cp -R api ${GOPATH}/src/github.com/portainer/portainer/api
|
||||
|
||||
cp -r "./mustache-templates" "./dist"
|
||||
|
||||
cd 'api/cmd/portainer'
|
||||
|
||||
go get -t -d -v ./...
|
||||
|
@ -29,3 +31,4 @@ if [ "${PLATFORM}" == 'windows' ]; then
|
|||
else
|
||||
mv "$BUILD_SOURCESDIRECTORY/api/cmd/portainer/$binary" "$BUILD_SOURCESDIRECTORY/dist/portainer"
|
||||
fi
|
||||
|
||||
|
|
|
@ -20,4 +20,6 @@ EXPOSE 9000
|
|||
EXPOSE 9443
|
||||
EXPOSE 8000
|
||||
|
||||
LABEL io.portainer.server true
|
||||
|
||||
ENTRYPOINT ["/portainer"]
|
||||
|
|
|
@ -9,4 +9,6 @@ EXPOSE 9000
|
|||
EXPOSE 9443
|
||||
EXPOSE 8000
|
||||
|
||||
LABEL io.portainer.server true
|
||||
|
||||
ENTRYPOINT ["/portainer"]
|
||||
|
|
|
@ -22,4 +22,6 @@ EXPOSE 9000
|
|||
EXPOSE 9443
|
||||
EXPOSE 8000
|
||||
|
||||
LABEL io.portainer.server true
|
||||
|
||||
ENTRYPOINT ["/portainer.exe"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue