<commit_before># Build stable release using: docker build --build-args GO_VERSION=16.0-xxxx -t gocd-server .
# Build experimental release using: docker build --build-args GO_VERSION=16.0-xxxx  --build-args DOWNLOAD_URL=https://download.go.cd/experimental/binaries -t gocd-server .

FROM phusion/baseimage:0.9.18
MAINTAINER GoCD <<EMAIL>>

ARG GO_VERSION="16.8.0-3929"
ARG DOWNLOAD_URL="https://download.go.cd/binaries"

RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y -q unzip openjdk-7-jre-headless git mercurial subversion

RUN mkdir /etc/service/go-server
ADD go-common-scripts.sh /etc/service/go-server/go-common-scripts.sh
ADD go-server-start.sh /etc/service/go-server/run

ADD $DOWNLOAD_URL/$GO_VERSION/deb/go-server_${GO_VERSION}_all.deb /tmp/go-server.deb

RUN ["groupadd", "-r", "go"]
RUN ["useradd", "-r", "-c", "Go User", "-g", "go", "-d", "/var/go", "-m", "-s", "/bin/bash", "go"]
RUN ["mkdir", "-p", "/var/lib/go-server/addons", "/var/log/go-server", "/etc/go", "/go-addons"]
RUN ["chown", "-R", "go:go", "/var/lib/go-server", "/var/log/go-server", "/etc/go", "/go-addons", "/var/go"]

WORKDIR /tmp
RUN dpkg -i --debug=10 /tmp/go-server.deb
RUN sed -i -e 's/DAEMON=Y/DAEMON=N/' /etc/default/go-server
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

VOLUME ["/var/lib/go-server", "/var/log/go-server", "/etc/go", "/go-addons", "/var/go"]

EXPOSE 8153 8154

CMD ["/sbin/my_init"]<commit_msg>fix external plugin permission issue<commit_after># Build stable release using: docker build --build-args GO_VERSION=16.0-xxxx -t gocd-server .
# Build experimental release using: docker build --build-args GO_VERSION=16.0-xxxx  --build-args DOWNLOAD_URL=https://download.go.cd/experimental/binaries -t gocd-server .

FROM phusion/baseimage:0.9.18
MAINTAINER GoCD <<EMAIL>>

ARG GO_VERSION="16.8.0-3929"
ARG DOWNLOAD_URL="https://download.go.cd/binaries"

RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh \
    && apt-get update \
    && apt-get install -y -q unzip openjdk-7-jre-headless git mercurial subversion \
    && mkdir /etc/service/go-server

ADD go-common-scripts.sh /etc/service/go-server/go-common-scripts.sh
ADD go-server-start.sh /etc/service/go-server/run

ADD $DOWNLOAD_URL/$GO_VERSION/deb/go-server_${GO_VERSION}_all.deb /tmp/go-server.deb

RUN groupadd -r go \
    && useradd -r -c "Go User" -g "go" -d "/var/go" -m -s "/bin/bash" go \
    && mkdir -p /var/lib/go-server/addons /var/log/go-server /etc/go /go-addons /plugins /var/lib/go-server/plugins \
    && ln -sf /plugins /var/lib/go-server/plugins/external \
    && chown -R go:go /var/lib/go-server /var/log/go-server /etc/go /go-addons /var/go /plugins

WORKDIR /tmp
RUN dpkg -i --debug=10 /tmp/go-server.deb \
    && sed -i -e 's/DAEMON=Y/DAEMON=N/' /etc/default/go-server \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

VOLUME ["/var/lib/go-server", "/var/log/go-server", "/etc/go", "/go-addons", "/var/go"]

EXPOSE 8153 8154

CMD ["/sbin/my_init"]
{'fraction_non_alphanumeric': 0.19365284974093264, 'fraction_numerical': 0.020077720207253884, 'mean_word_length': 3.314245810055866, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4195245', 'n_tokens_mistral': 1285, 'n_tokens_neox': 1224, 'n_words': 263}