1
0
Fork 0
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:
Chaim Lev-Ari 2022-12-11 08:58:22 +02:00 committed by GitHub
parent 756ac034ec
commit 5cbf52377d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
73 changed files with 1374 additions and 421 deletions

View file

@ -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

View file

@ -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 ./...

View file

@ -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

View file

@ -20,4 +20,6 @@ EXPOSE 9000
EXPOSE 9443
EXPOSE 8000
LABEL io.portainer.server true
ENTRYPOINT ["/portainer"]

View file

@ -9,4 +9,6 @@ EXPOSE 9000
EXPOSE 9443
EXPOSE 8000
LABEL io.portainer.server true
ENTRYPOINT ["/portainer"]

View file

@ -22,4 +22,6 @@ EXPOSE 9000
EXPOSE 9443
EXPOSE 8000
LABEL io.portainer.server true
ENTRYPOINT ["/portainer.exe"]