diff options
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!" |
