C2A-Installation-Server/docker/install-jenkins.sh

13 lines
376 B
Bash
Raw Normal View History

2019-04-05 05:02:19 +00:00
docker run --detach \
--name jenkins \
--publish 8002:8080 \
--publish 50000:50000 \
--volume /var/jenkins_home:/var/jenkins_home \
2019-04-22 03:09:05 +00:00
--volume //opt/android-sdk:/opt/android-sdk \
2019-04-05 05:39:09 +00:00
--user root \
2019-04-05 05:02:19 +00:00
--restart unless-stopped \
jenkins/jenkins:lts
2019-04-22 03:09:05 +00:00
2019-04-25 00:42:45 +00:00
docker cp docker/install-sdk.sh jenkins:/root/install-sdk.sh
2019-04-22 03:09:05 +00:00
docker exec jenkins "/root/install-sdk.sh"