diff --git a/0_run/commands.sh b/0_run/commands.sh index cc1f786..7ddb886 100644 --- a/0_run/commands.sh +++ b/0_run/commands.sh @@ -1 +1,4 @@ -#!/bin/bash \ No newline at end of file +#!/bin/bash +docker container run --rm docker/whalesay cowsay "Hello M1 III 2021" + +docker container run -it --rm python:3 python \ No newline at end of file diff --git a/1_dockerfile/bash/Dockerfile b/1_dockerfile/bash/Dockerfile index e69de29..bba10f2 100644 --- a/1_dockerfile/bash/Dockerfile +++ b/1_dockerfile/bash/Dockerfile @@ -0,0 +1,5 @@ +FROM ubuntu:18.04 + +COPY to_run.sh to_run.sh + +CMD ["/bin/bash", "to_run.sh"] \ No newline at end of file diff --git a/1_dockerfile/curl/Dockerfile b/1_dockerfile/curl/Dockerfile index e69de29..61b74c3 100644 --- a/1_dockerfile/curl/Dockerfile +++ b/1_dockerfile/curl/Dockerfile @@ -0,0 +1,6 @@ +FROM debian:9 + +RUN apt-get update \ +&& apt-get install -y curl + +ENTRYPOINT ["curl"] \ No newline at end of file diff --git a/1_dockerfile/python/Dockerfile b/1_dockerfile/python/Dockerfile index e69de29..e8d1693 100644 --- a/1_dockerfile/python/Dockerfile +++ b/1_dockerfile/python/Dockerfile @@ -0,0 +1,11 @@ +FROM python:2.7 + +COPY app.py requirements.txt app/ + +WORKDIR /app + +RUN pip install -r requirements.txt + +EXPOSE 5000 + +CMD ["python", "app.py"] \ No newline at end of file diff --git a/2_compose/docker-compose.yml b/2_compose/docker-compose.yml index e69de29..24eaf9a 100644 --- a/2_compose/docker-compose.yml +++ b/2_compose/docker-compose.yml @@ -0,0 +1,9 @@ +version: "3" +services: + convos: + image: convos/convos:v6.31 + container_name: convos + ports: + - 2021:3000 + volumes: + - $HOME/convos/data:/data \ No newline at end of file