Sign inSign up

agkanon/jenkinsbaseimage

By agkanon

•Updated over 4 years ago

For CICD Jenkins Image

Image
0

188

agkanon/jenkinsbaseimage repository overview

⁠DockerFile

FROM jenkins/jenkins
USER root

RUN jenkins-plugin-cli --plugins pipeline-model-definition
pipeline-model-definition
workflow-aggregator
github
github-branch-source:1.8
ws-cleanup
greenballs
simple-theme-plugin
kubernetes
kubernetes-cli
docker-workflow

#install pre-requisite software
RUN apt-get update -y RUN apt-get -s upgrade | grep -P "\d\K upgraded" RUN apt install -y maven
gettext
python3-pip
python-dev
libffi-dev
openssl
gcc
linux-libc-dev
make
RUN pip install docker-compose

RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl⁠ -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl⁠
&& chmod +x ./kubectl
&& mv ./kubectl /usr/local/bin/kubectl

RUN apt install -y ca-certificates
curl
gnupg
lsb-release
software-properties-common

#install docker
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg⁠ | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
RUN echo
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu⁠
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt install docker.io -y

RUN chown -R root "$JENKINS_HOME" /usr/share/jenkins/ref

Tag summary

Content type

Image

Digest

Size

851.1 MB

Last updated

over 4 years ago

docker pull agkanon/jenkinsbaseimage