Commit 1b425522 authored by FabiusE's avatar FabiusE

Added Dockerfile for Slave Image

parent a55174d9
FROM jenkinsci/jnlp-slave
USER root
RUN apt-get update && \
apt-get -y install apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common && \
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable" && \
apt-get update && \
apt-get -y install docker-ce
\ No newline at end of file
master:
extraPorts:
- name: ssh
port: 2222
externalPort: 22
protocol: TCP
- name: slvlistener-jen
port: 50000
externalPort: 50000
protocol: TCP
agent:
enabled: true
image: fabiuse/jenkins-with-docker
tag: latest
alwaysPullImage: true
privileged: true
volumes:
- type: HostPath
hostPath: /var/run/docker.sock
mountPath: /var/run/docker.sock
networkPolicy:
enabled: true
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment