Last active
April 10, 2024 04:50
-
-
Save secf4ult/3ff62a9a6847acfe1ba1aa6f845f209e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jenkins | |
docker run -d -p 8081:8080 \ | |
-p 50000:50000 \ | |
--name jenkins \ | |
-v jenkins-vol:/var/jenkins_home \ | |
jenkins/jenkins:lts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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