-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1d7e06
commit a4131c8
Showing
2 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,30 +21,30 @@ FROM curlimages/curl:latest as gocd-server-unzip | |
USER root | ||
ARG TARGETARCH | ||
ARG UID=1000 | ||
RUN curl --fail --location --silent --show-error "https://download.gocd.org/binaries/23.2.0-16938/generic/go-server-23.2.0-16938.zip" > /tmp/go-server-23.2.0-16938.zip && \ | ||
unzip -q /tmp/go-server-23.2.0-16938.zip -d / && \ | ||
RUN curl --fail --location --silent --show-error "https://download.gocd.org/binaries/23.3.0-16991/generic/go-server-23.3.0-16991.zip" > /tmp/go-server-23.3.0-16991.zip && \ | ||
unzip -q /tmp/go-server-23.3.0-16991.zip -d / && \ | ||
mkdir -p /go-server/wrapper /go-server/bin && \ | ||
mv -v /go-server-23.2.0/LICENSE /go-server/LICENSE && \ | ||
mv -v /go-server-23.2.0/bin/go-server /go-server/bin/go-server && \ | ||
mv -v /go-server-23.2.0/lib /go-server/lib && \ | ||
mv -v /go-server-23.2.0/logs /go-server/logs && \ | ||
mv -v /go-server-23.2.0/run /go-server/run && \ | ||
mv -v /go-server-23.2.0/wrapper-config /go-server/wrapper-config && \ | ||
mv -v /go-server-23.3.0/LICENSE /go-server/LICENSE && \ | ||
mv -v /go-server-23.3.0/bin/go-server /go-server/bin/go-server && \ | ||
mv -v /go-server-23.3.0/lib /go-server/lib && \ | ||
mv -v /go-server-23.3.0/logs /go-server/logs && \ | ||
mv -v /go-server-23.3.0/run /go-server/run && \ | ||
mv -v /go-server-23.3.0/wrapper-config /go-server/wrapper-config && \ | ||
WRAPPERARCH=$(if [ $TARGETARCH == amd64 ]; then echo x86-64; elif [ $TARGETARCH == arm64 ]; then echo arm-64; else echo $TARGETARCH is unknown!; exit 1; fi) && \ | ||
mv -v /go-server-23.2.0/wrapper/wrapper-linux-$WRAPPERARCH* /go-server/wrapper/ && \ | ||
mv -v /go-server-23.2.0/wrapper/libwrapper-linux-$WRAPPERARCH* /go-server/wrapper/ && \ | ||
mv -v /go-server-23.2.0/wrapper/wrapper.jar /go-server/wrapper/ && \ | ||
mv -v /go-server-23.3.0/wrapper/wrapper-linux-$WRAPPERARCH* /go-server/wrapper/ && \ | ||
mv -v /go-server-23.3.0/wrapper/libwrapper-linux-$WRAPPERARCH* /go-server/wrapper/ && \ | ||
mv -v /go-server-23.3.0/wrapper/wrapper.jar /go-server/wrapper/ && \ | ||
chown -R ${UID}:0 /go-server && chmod -R g=u /go-server | ||
|
||
FROM docker.io/alpine:3.18 | ||
ARG TARGETARCH | ||
|
||
LABEL gocd.version="23.2.0" \ | ||
LABEL gocd.version="23.3.0" \ | ||
description="GoCD server based on docker.io/alpine:3.18" \ | ||
maintainer="GoCD Team <[email protected]>" \ | ||
url="https://www.gocd.org" \ | ||
gocd.full.version="23.2.0-16938" \ | ||
gocd.git.sha="e2b2936f3b573008381a3702139ebcb4383dc0b1" | ||
gocd.full.version="23.3.0-16991" \ | ||
gocd.git.sha="f38981e8aa684d63ac96f517996cd888eff37640" | ||
|
||
# the ports that GoCD server runs on | ||
EXPOSE 8153 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters