<commit_before># jenkins-slave
#
# VERSION               0.0.4
#
# Reference: https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds
# -> Important note, this is missing the -secret parameter info
#
# Note this install openjdk-8-jdk, and git-core and setsup the image as a "jenkins-slave"
#
FROM picoded/ubuntu-openjdk-8-jdk
MAINTAINER <NAME> <<EMAIL>>

#-------------------------------------------------------
# Critical Configurations 
#-------------------------------------------------------
# Setsup the jenkins host path
ENV JENKINS_HOST https://builds.apache.org

# Setsup the jenkins slave name
ENV JENKINS_SLAVE_NAME docker-slave

# Setsup the jenkins slave password
ENV JENKINS_SLAVE_SECRET super-not-so-secure-token

#-------------------------------------------------------
# Blank configurations (by default)
#-------------------------------------------------------
# Additional java options
# ENV JAVA_OPTS 
#
# Alternative tunnel connection
# ENV JENKINS_TUNNEL 
#
# Alternative URL connection
# ENV JENKINS_URL
#-------------------------------------------------------

# install git-core
RUN apt-get update && apt-get install -y git unzip zip wget curl

#
# Downloads the slave jar, chmod it
# Then check tunnel / etc configuration
# And finally run the slave jar. Yes master!
#
RUN echo "#!/bin/bash" > setup-and-run.sh && \
	echo 'rm -f slave.jar 2> /dev/null;' && \
	echo 'wget --no-check-certificate "$JENKINS_HOST/jnlpJars/slave.jar";' >> setup-and-run.sh && \
	echo 'chmod +x slave.jar;' >> setup-and-run.sh && \
	echo 'if [[ ! -z "$JENKINS_TUNNEL" ]]; then' >> setup-and-run.sh && \
	echo '		TUNNEL="-tunnel $JENKINS_TUNNEL"' >> setup-and-run.sh && \
	echo 'fi' >> setup-and-run.sh && \
	echo 'if [[ ! -z "$JENKINS_URL" ]]; then' >> setup-and-run.sh && \
	echo '		URL="-url $JENKINS_URL"' >> setup-and-run.sh && \
	echo 'fi' >> setup-and-run.sh && \
	echo 'java $JAVA_OPTS -jar slave.jar $TUNNEL $URL -jnlpUrl $JENKINS_HOST/computer/$JENKINS_SLAVE_NAME/slave-agent.jnlp -secret $JENKINS_SLAVE_SECRET;' >> setup-and-run.sh && \
	chmod +x setup-and-run.sh

# And start up the slave
CMD ["./setup-and-run.sh"]
<commit_msg>Jenkins slave options tweak<commit_after># jenkins-slave
#
# VERSION               0.0.4
#
# Reference: https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds
# -> Important note, this is missing the -secret parameter info
#
# Note this install openjdk-8-jdk, and git-core and setsup the image as a "jenkins-slave"
#
FROM picoded/ubuntu-openjdk-8-jdk
MAINTAINER <NAME> <<EMAIL>>

#-------------------------------------------------------
# Critical Configurations 
#-------------------------------------------------------
# Setsup the jenkins host path
ENV JENKINS_HOST https://builds.apache.org

# Setsup the jenkins slave name
ENV JENKINS_SLAVE_NAME docker-slave

# Setsup the jenkins slave password
ENV JENKINS_SLAVE_SECRET super-not-so-secure-token

#-------------------------------------------------------
# Blank configurations (by default)
#-------------------------------------------------------
# Additional java options
# ENV JAVA_OPTS 
#
# Additional jenkins options
# ENV JENKINS_OPTS 
#
# Alternative JNLP connection
# ENV JENKINS_CONNECTION 
#-------------------------------------------------------

# install git-core
RUN apt-get update && apt-get install -y git unzip zip wget curl

#
# Downloads the slave jar, chmod it
# Then check tunnel / etc configuration
# And finally run the slave jar. Yes master!
#
RUN echo "#!/bin/bash" > setup-and-run.sh && \
	echo 'rm -f slave.jar 2> /dev/null;' && \
	echo 'wget --no-check-certificate "$JENKINS_HOST/jnlpJars/slave.jar";' >> setup-and-run.sh && \
	echo 'chmod +x slave.jar;' >> setup-and-run.sh && \
	echo 'if [[ ! -z "$JENKINS_CONNECTION" ]]; then' >> setup-and-run.sh && \
	echo '		CONN="-connectTo $JENKINS_CONNECTION"' >> setup-and-run.sh && \
	echo 'fi' >> setup-and-run.sh && \
	echo 'java $JAVA_OPTS -jar slave.jar $JENKINS_OPTS $CONN -jnlpUrl $JENKINS_HOST/computer/$JENKINS_SLAVE_NAME/slave-agent.jnlp -secret $JENKINS_SLAVE_SECRET;' >> setup-and-run.sh && \
	chmod +x setup-and-run.sh

# And start up the slave
CMD ["./setup-and-run.sh"]

{'fraction_non_alphanumeric': 0.2560595152387809, 'fraction_numerical': 0.0028797696184305254, 'mean_word_length': 2.164768413059985, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 45, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '205019', 'n_tokens_mistral': 1450, 'n_tokens_neox': 1420, 'n_words': 346}