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$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \
add-apt-repository \
"deb [arch=amd64]$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable" && \
apt-get update && \
apt-get -y install docker-ce
\ No newline at end of file
- name: ssh
port: 2222
externalPort: 22
protocol: TCP
- name: slvlistener-jen
port: 50000
externalPort: 50000
protocol: TCP
enabled: true
image: fabiuse/jenkins-with-docker
tag: latest
alwaysPullImage: true
privileged: true
- type: HostPath
hostPath: /var/run/docker.sock
mountPath: /var/run/docker.sock
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