Skip to content

Instantly share code, notes, and snippets.

@secf4ult
Last active April 10, 2024 04:50
Show Gist options
  • Save secf4ult/3ff62a9a6847acfe1ba1aa6f845f209e to your computer and use it in GitHub Desktop.
Save secf4ult/3ff62a9a6847acfe1ba1aa6f845f209e to your computer and use it in GitHub Desktop.
# jenkins
docker run -d -p 8081:8080 \
-p 50000:50000 \
--name jenkins \
-v jenkins-vol:/var/jenkins_home \
jenkins/jenkins:lts
FROM jenkins/jenkins:lts
USER root
# install maven
RUN apt-get update && apt-get install maven -y
USER jenkins
ENTRYPOINT /usr/bin/tini -- /usr/local/bin/jenkins.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment