diff --git a/Docker/hello-docker/finish.md b/Docker/hello-docker/finish.md new file mode 100644 index 0000000000000000000000000000000000000000..01de3d718f3bd3092993744ae3ecf9027cfced08 --- /dev/null +++ b/Docker/hello-docker/finish.md @@ -0,0 +1 @@ +Well done, now try a more complex scenario. diff --git a/Docker/hello-docker/index.json b/Docker/hello-docker/index.json new file mode 100644 index 0000000000000000000000000000000000000000..a0180e88b71ae98a09a86e91a1f4c4f11a43f568 --- /dev/null +++ b/Docker/hello-docker/index.json @@ -0,0 +1,28 @@ +{ + "title": "Hello Docker", + "description": "Kind of Docker hello world", + "difficulty": "Beginner", + "time": "1 minute", + "details": { + "steps": [ + { + "title": "Step 1", + "text": "step1.md" + } + ], + "intro": { + "text": "intro.md" + "courseData": "intro-course-data.sh", + "credits": "This course was inpired by [Docker and Makefiles example from Ben Hall](https://github.com/BenHall/katacoda-scenarios/tree/master/1)" + }, + "finish": { + "text": "finish.md" + } + }, + "environment": { + "uilayout": "terminal" + }, + "backend": { + "imageid": "docker" + } +} diff --git a/Docker/hello-docker/intro-course-data.sh b/Docker/hello-docker/intro-course-data.sh new file mode 100644 index 0000000000000000000000000000000000000000..9df69457a5fdda73439f76b544053c6f978b2dac --- /dev/null +++ b/Docker/hello-docker/intro-course-data.sh @@ -0,0 +1,2 @@ +echo 'FROM busybox' >> Dockerfile +echo 'CMD ["echo", "hello world"]' >> Dockerfile diff --git a/Docker/hello-docker/intro.md b/Docker/hello-docker/intro.md new file mode 100644 index 0000000000000000000000000000000000000000..0f6f3e27097b2570690e20515a6e3e3fd17b4cf2 --- /dev/null +++ b/Docker/hello-docker/intro.md @@ -0,0 +1 @@ +In this scenario you will learn how to launch a basic echo command in a simple docker container. diff --git a/Docker/hello-docker/step1.md b/Docker/hello-docker/step1.md new file mode 100644 index 0000000000000000000000000000000000000000..0d569c5d55667d8f82ff70ad79cab49020bcdf27 --- /dev/null +++ b/Docker/hello-docker/step1.md @@ -0,0 +1,5 @@ +This scenario has a Dockerfile which defines a Docker container to output an hello world message. + +The command `docker build -t fcodvpt/docker-hello-world .`{{execute}} will create a Docker image is a friendly tag _fcodvpt/docker-hello-world_ which we can use when starting a container based on the image. + +The command `docker run fcodvpt/docker-hello-world`{{execute}} will run the container and display the message.