Created
April 5, 2022 15:56
-
-
Save AshishThakur/d767c0ebc2340021377607397bac24a9 to your computer and use it in GitHub Desktop.
Jenkins Dockerfile
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-jdk11 | |
# if we want to install via apt | |
USER root | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release \ | |
software-properties-common \ | |
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \ | |
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" \ | |
&& apt-cache policy docker-ce \ | |
&& apt-get update \ | |
&& apt-get install -y \ | |
docker-ce \ | |
&& usermod -aG docker jenkins \ | |
&& curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.22.0/pack-v0.22.0-linux.tgz" | tar -C /usr/local/bin/ --no-same-owner -xzv pack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment