scripts/links/docker/jenkins.sh

26 lines
377 B
Bash
Raw Normal View History

2023-10-29 18:41:45 -04:00
#!/bin/bash
set -e
up () {
# Exposted on 8080 in pew-net
docker run \
--detach \
--name jenkins \
--restart unless-stopped \
--volume /subway/jenkins/jenkins_home:/var/jenkins_home:rw \
--network pew-net \
jenkins/jenkins:lts
}
down () {
docker stop jenkins || true
docker rm jenkins || true
}
logs () {
docker logs --follow jenkins
}
$@