diff options
| author | mo khan <mo.khan@gmail.com> | 2020-10-23 16:56:34 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-10-23 16:56:34 -0600 |
| commit | 214586544d4e51a26bed4fa14ea74393e885099b (patch) | |
| tree | c0f4b9cf521b40e51f53f55b06452b06c82973a2 /examples/001 | |
| parent | 143c894c905ec365c7d6118eb66aa2ab7b948ea9 (diff) | |
Rewrite presentation to tell a story
Diffstat (limited to 'examples/001')
| -rw-r--r-- | examples/001/Dockerfile | 1 | ||||
| -rw-r--r-- | examples/001/docker-exec.sh | 2 | ||||
| -rw-r--r-- | examples/001/hello.rb | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/examples/001/Dockerfile b/examples/001/Dockerfile index f5f827d..3657293 100644 --- a/examples/001/Dockerfile +++ b/examples/001/Dockerfile @@ -1,4 +1,5 @@ FROM alpine:latest COPY hello.rb /usr/local/bin/hello +RUN apk add ruby RUN chmod +x /usr/local/bin/hello CMD ["hello"] diff --git a/examples/001/docker-exec.sh b/examples/001/docker-exec.sh index 39478b2..25c1085 100644 --- a/examples/001/docker-exec.sh +++ b/examples/001/docker-exec.sh @@ -3,4 +3,4 @@ set -e image_id="$(docker ps | grep developing | awk '{ print $1 }' | tail -n1)" -docker exec -it "$image_id" /bin/sh +docker exec -it --network=host "$image_id" /bin/sh diff --git a/examples/001/hello.rb b/examples/001/hello.rb index 0a6e058..e772410 100644 --- a/examples/001/hello.rb +++ b/examples/001/hello.rb @@ -1,3 +1,3 @@ #!/usr/bin/env ruby -puts "Hello World" +puts "Hello, World!" |
