https://github.com/phact/gen-curriculum-docker
https://github.com/phact/gen-curriculum-docker
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/phact/gen-curriculum-docker
- Owner: phact
- Created: 2017-04-04T13:01:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-01T06:20:02.000Z (over 5 years ago)
- Last Synced: 2025-02-22T15:58:24.804Z (over 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gen-curriculum-docker
#docker gen-curriculum
This is a docker container for gen-curriculum.
##clone the repo: git clone https://github.com/phact/gen-curriculum-docker
##for OSX:
#setup
docker-machine start default
eval $(docker-machine env default)
#a bit of cleanup
docker rm -f $(docker ps -aq)
docker rmi -f $(docker images -aq)
#build
docker build -t gen-curriculum-image .
docker run \
--net=host -d \
-p 0.0.0.0:8080:8080 \
-p 0.0.0.0:8081:8081 \
-p 0.0.0.0:1025:1025 \
--name gen-curriculum gen-curriculum-image
#or for debug
docker run -it --net=host
--net=host -d \
-p 0.0.0.0:8080:8080 \
-p 0.0.0.0:8081:8081 \
-p 0.0.0.0:1025:1025 \
--name gen-curriculum gen-curriculum-image
docker-machine ip default
##for linux: install docker https://docs.docker.com/engine/installation/linux
add your user to the docker group sudo gpasswd -a ${USER} docker
and refresh newgrp docker
#start docker
service docker start
docker build -t gen-curriculum-image .
docker run \
--net=host -d \
-p 0.0.0.0:8080:8080 \
-p 0.0.0.0:8000:8000 \
--name gen-curriculum gen-curriculum-image
#or if it's not working run without detaching to troubeshoot
docker run -it \
--net=host -d \
-p 0.0.0.0:8080:8080 \
-p 0.0.0.0:8000:8000 \
--name gen-curriculum gen-curriculum-image