Skip to content

Commit

Permalink
Bump to version 19.11.0-10687
Browse files Browse the repository at this point in the history
  • Loading branch information
gocd-ci-user committed Dec 4, 2019
1 parent c54b25c commit c230d1b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ ARG UID=1000
RUN \
apk --no-cache upgrade && \
apk add --no-cache curl && \
curl --fail --location --silent --show-error "https://download.gocd.org/binaries/19.10.0-10357/generic/go-server-19.10.0-10357.zip" > /tmp/go-server-19.10.0-10357.zip
RUN unzip /tmp/go-server-19.10.0-10357.zip -d /
RUN mv /go-server-19.10.0 /go-server && chown -R ${UID}:0 /go-server && chmod -R g=u /go-server
curl --fail --location --silent --show-error "https://download.gocd.org/binaries/19.11.0-10687/generic/go-server-19.11.0-10687.zip" > /tmp/go-server-19.11.0-10687.zip
RUN unzip /tmp/go-server-19.11.0-10687.zip -d /
RUN mv /go-server-19.11.0 /go-server && chown -R ${UID}:0 /go-server && chmod -R g=u /go-server

FROM alpine:3.9
MAINTAINER ThoughtWorks, Inc. <[email protected]>

LABEL gocd.version="19.10.0" \
LABEL gocd.version="19.11.0" \
description="GoCD server based on alpine version 3.9" \
maintainer="ThoughtWorks, Inc. <[email protected]>" \
url="https://www.gocd.org" \
gocd.full.version="19.10.0-10357" \
gocd.git.sha="44d61cc733a94287979f1fb99583d69139f386e4"
gocd.full.version="19.11.0-10687" \
gocd.git.sha="c532a61bb240ffbe59fe356445bea6433005563f"

# the ports that go server runs on
EXPOSE 8153 8154
Expand Down Expand Up @@ -94,7 +94,7 @@ RUN \
apk del --purge .build-deps glibc-i18n && \
rm -rf /tmp/*.apk /tmp/gcc /tmp/gcc-libs.tar.xz /tmp/libz /tmp/libz.tar.xz /var/cache/apk/* && \
# end installing adoptopenjre && \
curl --fail --location --silent --show-error 'https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk-13%2B33/OpenJDK13U-jre_x64_linux_hotspot_13_33.tar.gz' --output /tmp/jre.tar.gz && \
curl --fail --location --silent --show-error 'https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk-13.0.1%2B9/OpenJDK13U-jre_x64_linux_hotspot_13.0.1_9.tar.gz' --output /tmp/jre.tar.gz && \
mkdir -p /gocd-jre && \
tar -xf /tmp/jre.tar.gz -C /gocd-jre --strip 1 && \
rm -rf /tmp/jre.tar.gz && \
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 -p8154:8154 gocd/gocd-server:v19.10.0
docker run -d -p8153:8153 -p8154:8154 gocd/gocd-server:v19.11.0
```

This will expose container ports 8153(http) and 8154(https) 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:v19.10.0
docker run -v /path/to/godata:/godata -v /path/to/home-dir:/home/go gocd/gocd-server:v19.11.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:v19.10.0
gocd/gocd-server:v19.11.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:v19.10.0
gocd/gocd-server:v19.11.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:v19.10.0
gocd/gocd-server:v19.11.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:v19.10.0
docker run -v /path/to/your/script.sh:/docker-entrypoint.d/your-script.sh ... gocd/gocd-server:v19.11.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:v19.10.0
docker run -v /path/to/script-dir:/docker-entrypoint.d ... gocd/gocd-server:v19.11.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 @@ -112,7 +112,7 @@ chown -R 1000 /path/to/godata/addons
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:v19.10.0
docker run -e GOCD_SERVER_JVM_OPTS="-Xmx4096mb -Dfoo=bar" gocd/gocd-server:v19.11.0
```

# Under the hood
Expand All @@ -135,7 +135,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 -p8154:8154 gocd/gocd-server:v19.10.0
docker run --name server -it -p8153:8153 -p8154:8154 gocd/gocd-server:v19.11.0
```

Then, the below commands will determine to GoCD server IP, server port and ssl port
Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if [ "$1" = "${SERVER_WORK_DIR}/bin/go-server" ]; then

for each_dir in "${server_data_dirs[@]}"; do
if [ ! -e "${VOLUME_DIR}/${each_dir}" ]; then
try mkdir -v "${VOLUME_DIR}/${each_dir}"
try mkdir -v -p "${VOLUME_DIR}/${each_dir}"
fi

if [ ! -e "${SERVER_WORK_DIR}/${each_dir}" ]; then
Expand Down

0 comments on commit c230d1b

Please sign in to comment.