Wrapping Codelab with Docker
Start service with container
# Run from my container
$ docker run -d \
-p 8001:8000 \
--expose=8001 \
--name="codelab" \
patharanor/dockerize-codelab:1.0.2
Git clone/pull this repository to your workspace and then add your markdown into ./tools/site/codelabs/.
example markdown here
After that run Docker build:
$ docker build -t mycodelab:0.0.1 .
Then serve it
$ docker run -d \
-p 8001:8000 \
--expose=8001 \
--name="codelab" \
mycodelab:0.0.1
access to the container to append your markdown into ./tools/site/codelabs/, then exit and restart the container :
# Accessing
$ docker exec -it YOUR_CONTAINER_ID /bin/sh
# Create markdown here
$ cd ./tools/site/codelabs
# Compile markdown with Claat
$ sh export.sh
# Exit container and restart after modified
$ docker restart codelab
you should see My Labs

this is my lab content

enjoy via
http://localhost:8001
Resolved] https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-detailsMIT
Content type
Image
Digest
Size
380.4 MB
Last updated
almost 6 years ago
docker pull patharanor/dockerize-codelab