<commit_before>FROM dockerfile/java:oracle-java8
MAINTAINER HSLdevcom/parkandrideAPI "https://github.com/HSLdevcom/parkandrideAPI"
ENV REFRESHED_AT 2014-11-15

# Docker-in-Docker
RUN apt-get update -qq
RUN apt-get install -qqy iptables ca-certificates lxc
RUN apt-get install -qqy apt-transport-https
RUN echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
RUN apt-get update -qq
RUN apt-get install -qqy lxc-docker
VOLUME /var/lib/docker
ADD etc-sudoers.d-docker /etc/sudoers.d/docker

# Install Go
RUN wget -nv -O /tmp/go-agent.deb http://download.go.cd/gocd-deb/go-agent-14.2.0-377.deb
RUN dpkg -i /tmp/go-agent.deb
RUN rm /tmp/go-agent.deb
RUN sed -r -i "s/^(GO_SERVER)=(.*)/\1=\$GOSERVER_PORT_8153_TCP_ADDR/g" /etc/default/go-agent
RUN sed -r -i "s/^(DAEMON)=(.*)/\1=N/g" /etc/default/go-agent
RUN gpasswd -a go docker

# Install Maven
ENV M2_HOME /usr/local/apache-maven-3.2.3
RUN wget -nv -O ${M2_HOME}.tar.gz http://mirror.netinch.com/pub/apache/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz
RUN tar xzvf ${M2_HOME}.tar.gz -C /usr/local > /dev/null
ENV MAVEN_OPTS -Xms256m -Xmx512m
ENV PATH $M2_HOME/bin:$PATH

# Install node, npm, grunt
RUN add-apt-repository ppa:chris-lea/node.js
RUN apt-get update -qqy
RUN apt-get install -qqy nodejs
RUN npm install -g grunt-cli

# Install packages required for headless testing
RUN apt-get install vnc4server fvwm firefox
RUN sed -r -i "s/^(VNC)=(.*)/\1=Y/g" /etc/default/go-agent

ADD hsl-liipi.pem /var/go/
RUN mkdir -p /var/go/.m2
ADD m2.settings /var/go/.m2/settings.xml
ADD npmrc /var/go/.npmrc

RUN chown -R go:go /var/go
ENV HOME /var/go
USER go

CMD /etc/init.d/go-agent start
<commit_msg>chore(gocd-agent): reconfigure headless to use vnc,  v2<commit_after>FROM dockerfile/java:oracle-java8
MAINTAINER HSLdevcom/parkandrideAPI "https://github.com/HSLdevcom/parkandrideAPI"
ENV REFRESHED_AT 2014-11-15

# Docker-in-Docker
RUN apt-get update -qq
RUN apt-get install -qqy iptables ca-certificates lxc
RUN apt-get install -qqy apt-transport-https
RUN echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
RUN apt-get update -qq
RUN apt-get install -qqy lxc-docker
VOLUME /var/lib/docker
ADD etc-sudoers.d-docker /etc/sudoers.d/docker

# Install Go
RUN wget -nv -O /tmp/go-agent.deb http://download.go.cd/gocd-deb/go-agent-14.2.0-377.deb
RUN dpkg -i /tmp/go-agent.deb
RUN rm /tmp/go-agent.deb
RUN sed -r -i "s/^(GO_SERVER)=(.*)/\1=\$GOSERVER_PORT_8153_TCP_ADDR/g" /etc/default/go-agent
RUN sed -r -i "s/^(DAEMON)=(.*)/\1=N/g" /etc/default/go-agent
RUN gpasswd -a go docker

# Install Maven
ENV M2_HOME /usr/local/apache-maven-3.2.3
RUN wget -nv -O ${M2_HOME}.tar.gz http://mirror.netinch.com/pub/apache/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz
RUN tar xzvf ${M2_HOME}.tar.gz -C /usr/local > /dev/null
ENV MAVEN_OPTS -Xms256m -Xmx512m
ENV PATH $M2_HOME/bin:$PATH

# Install node, npm, grunt
RUN add-apt-repository ppa:chris-lea/node.js
RUN apt-get update -qqy
RUN apt-get install -qqy nodejs
RUN npm install -g grunt-cli

# Install packages required for headless testing
RUN apt-get install -qqy vnc4server fvwm firefox
RUN sed -r -i "s/^(VNC)=(.*)/\1=Y/g" /etc/default/go-agent

ADD hsl-liipi.pem /var/go/
RUN mkdir -p /var/go/.m2
ADD m2.settings /var/go/.m2/settings.xml
ADD npmrc /var/go/.npmrc

RUN chown -R go:go /var/go
ENV HOME /var/go
USER go

CMD /etc/init.d/go-agent start

{'fraction_non_alphanumeric': 0.14875581077385835, 'fraction_numerical': 0.04293136450642603, 'mean_word_length': 3.555417185554172, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3929768', 'n_tokens_mistral': 1674, 'n_tokens_neox': 1523, 'n_words': 357}