Skip to content

Instantly share code, notes, and snippets.

@holms
Created September 11, 2017 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holms/db39c56af133c0deebdc3f7e636416ab to your computer and use it in GitHub Desktop.
Save holms/db39c56af133c0deebdc3f7e636416ab to your computer and use it in GitHub Desktop.
FROM gocd/gocd-server:v17.9.0
RUN mkdir -p /godata/plugins/external
ARG PLUGIN_AUTH=https://github.com/gocd-contrib/gocd-oauth-login/releases/download/v2.4/github-oauth-login-2.4.jar
ARG PLUGIN_YAML=https://github.com/tomzo/gocd-yaml-config-plugin/releases/download/0.4.0/yaml-config-plugin-0.4.0.jar
ARG PLUGIN_GITHUB_PR=https://github.com/ashwanthkumar/gocd-build-github-pull-requests/releases/download/v1.3.4/github-pr-poller-1.3.4.jar
ARG PLUGIN_GITHUB_STATUS=https://github.com/gocd-contrib/gocd-build-status-notifier/releases/download/1.2/github-pr-status-1.2.jar
RUN apk update && \
apk add --update curl && \
rm -rf /var/lib/apt/lists/*
WORKDIR /godata/plugins/external
RUN curl -O $PLUGIN_AUTH
RUN curl -O $PLUGIN_YAML
RUN curl -O $PLUGIN_GITHUB_PR
RUN curl -O $PLUGIN_GITHUB_STATUS
RUN chown -R 1000 /godata/plugins/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment