Skip to content

Commit

Permalink
Bump to version 23.3.0-16991
Browse files Browse the repository at this point in the history
  • Loading branch information
gocd-ci-user committed Jul 29, 2023
1 parent b1d7e06 commit a4131c8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
28 changes: 14 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Please make sure to log them at https://github.com/gocd/gocd.
Start the container with this:

```shell
docker run -d -p8153:8153 gocd/gocd-server:v23.2.0
docker run -d -p8153:8153 gocd/gocd-server:v23.3.0
```

This will expose container ports 8153(http) onto your server.
Expand All @@ -26,7 +26,7 @@ artifacts, plugins, and logs into `/godata`. If you'd like to provide secure
credentials like SSH private keys among other things, you can mount `/home/go`

```shell
docker run -v /path/to/godata:/godata -v /path/to/home-dir:/home/go gocd/gocd-server:v23.2.0
docker run -v /path/to/godata:/godata -v /path/to/home-dir:/home/go gocd/gocd-server:v23.3.0
```

> **Note:** Ensure that `/path/to/home-dir` and `/path/to/godata` is accessible by the `go` user in container (`go` user - uid `1000`).
Expand All @@ -45,7 +45,7 @@ An example example would be `GOCD_PLUGIN_INSTALL_docker-elastic-agents=https://g
```shell
docker run \
-e GOCD_PLUGIN_INSTALL_docker-elastic-agents=https://github.com/gocd-contrib/docker-elastic-agents/releases/download/v0.8.0/docker-elastic-agents-0.8.0.jar \
gocd/gocd-server:v23.2.0
gocd/gocd-server:v23.3.0
```

To install multiple plugins, add several `-e` arguments as such:
Expand All @@ -54,7 +54,7 @@ To install multiple plugins, add several `-e` arguments as such:
docker run \
-e GOCD_PLUGIN_INSTALL_a-plugin=https://example.com/a-plugin.jar \
-e GOCD_PLUGIN_INSTALL_b-plugin=https://example.com/b-plugin.jar \
gocd/gocd-server:v23.2.0
gocd/gocd-server:v23.3.0
```

### Installing plugins using a custom entry-point script (see below)
Expand All @@ -76,7 +76,7 @@ Cloned repo **must** contain all files from `/godata/config` dir.
docker run \
-e CONFIG_GIT_REPO=https://gocd_user:<password_or_auth_token>/config.git \
-e CONFIG_GIT_BRANCH=branch_with_config \
gocd/gocd-server:v23.2.0
gocd/gocd-server:v23.3.0
```
*Checkouted content would overwrite files in `/godata/config/`*.

Expand All @@ -86,13 +86,13 @@ docker run \
To execute custom script(s) during the container boostrap, but **before** the GoCD server starts just add `-v /path/to/your/script.sh:/docker-entrypoint.d/your-script.sh` like so:

```shell
docker run -v /path/to/your/script.sh:/docker-entrypoint.d/your-script.sh ... gocd/gocd-server:v23.2.0
docker run -v /path/to/your/script.sh:/docker-entrypoint.d/your-script.sh ... gocd/gocd-server:v23.3.0
```

If you have several scripts in a directory that you'd like to execute:

```shell
docker run -v /path/to/script-dir:/docker-entrypoint.d ... gocd/gocd-server:v23.2.0
docker run -v /path/to/script-dir:/docker-entrypoint.d ... gocd/gocd-server:v23.3.0
```

> **Note:** Ensure that your scripts are executable `chmod a+x` — you can add as many scripts as you like, `bash` is available on the container. If your script uses other scripting language (perl, python), please ensure that the scripting language is installed in the container.
Expand All @@ -102,7 +102,7 @@ docker run -v /path/to/script-dir:/docker-entrypoint.d ... gocd/gocd-server:v23.
JVM options can be tweaked using the environment variable `GOCD_SERVER_JVM_OPTS`.

```shell
docker run -e GOCD_SERVER_JVM_OPTS="-Xmx4096mb -Dfoo=bar" gocd/gocd-server:v23.2.0
docker run -e GOCD_SERVER_JVM_OPTS="-Xmx4096mb -Dfoo=bar" gocd/gocd-server:v23.3.0
```

# Under the hood
Expand All @@ -124,7 +124,7 @@ Once the GoCD server is up, we should be able to determine its ip address and th
The IP address and ports of the GoCD server in a docker container are important to know as they will be used by the GoCD agents to connect to it.
If you have started the container with
```shell
docker run --name server -it -p8153:8153 gocd/gocd-server:v23.2.0
docker run --name server -it -p8153:8153 gocd/gocd-server:v23.3.0
```

Then, the below commands will determine to GoCD server IP, server port and ssl port
Expand Down

0 comments on commit a4131c8

Please sign in to comment.