Sign inSign up

patharanor/dockerize-codelab

By patharanor

Updated almost 6 years ago

Image
0

305

patharanor/dockerize-codelab repository overview

Dockerize Codelab

Wrapping Codelab with Docker

Requirements

  • Docker deamon

Usage

Start service with
Owner container

Start service with container

# Run from my container
$ docker run -d \
-p 8001:8000 \
--expose=8001 \
--name="codelab" \
patharanor/dockerize-codelab:1.0.2
Your container

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
Add more labs

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

cover-page

this is my lab content

content

enjoy via

http://localhost:8001

FAQ

Issue

License

MIT

Tag summary

Content type

Image

Digest

Size

380.4 MB

Last updated

almost 6 years ago

docker pull patharanor/dockerize-codelab