Skip to content

Commit

Permalink
Bump to version 19.8.0-9915
Browse files Browse the repository at this point in the history
  • Loading branch information
gocd-ci-user committed Sep 9, 2019
1 parent 60ac1a9 commit 423d09c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,23 @@
###############################################################################################

FROM alpine:latest as gocd-server-unzip
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.7.0-9567/generic/go-server-19.7.0-9567.zip" > /tmp/go-server-19.7.0-9567.zip
RUN unzip /tmp/go-server-19.7.0-9567.zip -d /
RUN mv /go-server-19.7.0 /go-server
curl --fail --location --silent --show-error "https://download.gocd.org/binaries/19.8.0-9915/generic/go-server-19.8.0-9915.zip" > /tmp/go-server-19.8.0-9915.zip
RUN unzip /tmp/go-server-19.8.0-9915.zip -d /
RUN mv /go-server-19.8.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.7.0" \
LABEL gocd.version="19.8.0" \
description="GoCD server based on alpine version 3.9" \
maintainer="ThoughtWorks, Inc. <[email protected]>" \
url="https://www.gocd.org" \
gocd.full.version="19.7.0-9567" \
gocd.git.sha="727ea9db824eb6971170ac2a886ff1072ff5a235"
gocd.full.version="19.8.0-9915" \
gocd.git.sha="9ea99a72c338a132ae1ca83f363e16b2c95d920b"

# the ports that go server runs on
EXPOSE 8153 8154
Expand Down Expand Up @@ -107,8 +108,8 @@ COPY --chown=go:root logback-include.xml /go-server/config/logback-include.xml
COPY --chown=go:root install-gocd-plugins /usr/local/sbin/install-gocd-plugins
COPY --chown=go:root git-clone-config /usr/local/sbin/git-clone-config

RUN chown -R go:root /go-server /docker-entrypoint.d /go-working-dir /godata /docker-entrypoint.sh \
&& chmod -R g=u /go-server /docker-entrypoint.d /go-working-dir /godata /docker-entrypoint.sh
RUN chown -R go:root /docker-entrypoint.d /go-working-dir /godata /docker-entrypoint.sh \
&& chmod -R g=u /docker-entrypoint.d /go-working-dir /godata /docker-entrypoint.sh

ENTRYPOINT ["/docker-entrypoint.sh"]

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.7.0
docker run -d -p8153:8153 -p8154:8154 gocd/gocd-server:v19.8.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.7.0
docker run -v /path/to/godata:/godata -v /path/to/home-dir:/home/go gocd/gocd-server:v19.8.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.7.0
gocd/gocd-server:v19.8.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.7.0
gocd/gocd-server:v19.8.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.7.0
gocd/gocd-server:v19.8.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.7.0
docker run -v /path/to/your/script.sh:/docker-entrypoint.d/your-script.sh ... gocd/gocd-server:v19.8.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.7.0
docker run -v /path/to/script-dir:/docker-entrypoint.d ... gocd/gocd-server:v19.8.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.7.0
docker run -e GOCD_SERVER_JVM_OPTS="-Xmx4096mb -Dfoo=bar" gocd/gocd-server:v19.8.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.7.0
docker run --name server -it -p8153:8153 -p8154:8154 gocd/gocd-server:v19.8.0
```

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

0 comments on commit 423d09c

Please sign in to comment.