diff --git a/.env b/.env new file mode 120000 index 0000000..3b9786f --- /dev/null +++ b/.env @@ -0,0 +1 @@ +slave.conf \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..903b717 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +version: '2.1' + +services: + jenkins-slave1: + image: jenkinsci/ssh-slave + mem_limit: 4g + restart: always + environment: + - JENKINS_SLAVE_SSH_PUBKEY=${JENKINS_SLAVE_SSH_PUBKEY} + volumes: + - ./data/:/home/jenkins/ + tmpfs: + - /tmp:rw,size=512m + - /run:rw,size=64m + - /vat/run:rw,size=64m +