Last active
February 7, 2019 17:57
-
-
Save NickEngland/fb646dfc05bbcf26b1a78e8cdf57b2ee to your computer and use it in GitHub Desktop.
Jobson with docker binaries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM adamkewley/jobson:latest | |
RUN apt 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 | |
RUN usermod -aG docker jobson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build . -t jobson-docker | |
docker run --name jobson-docker -p ${HOST_PORT}:80 \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v ${HOST_PATH}/jobson:/home/jobson:rw -d jobson-docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment