diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f5f834 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +2_compose/data diff --git a/0_run/commands.sh b/0_run/commands.sh index cc1f786..2784ae1 100644 --- a/0_run/commands.sh +++ b/0_run/commands.sh @@ -1 +1,6 @@ -#!/bin/bash \ No newline at end of file +#!/bin/bash + +docker run --rm docker/whalesay cowsay "Hello M1 III 2021" + +docker container run --rm -it python:3 python + diff --git a/1_dockerfile/bash/Dockerfile b/1_dockerfile/bash/Dockerfile index e69de29..b29e648 100644 --- a/1_dockerfile/bash/Dockerfile +++ b/1_dockerfile/bash/Dockerfile @@ -0,0 +1,5 @@ +FROM ubuntu:latest + +COPY to_run.sh to_run.sh + +CMD [ "/bin/bash", "to_run.sh" ] diff --git a/1_dockerfile/curl/Dockerfile b/1_dockerfile/curl/Dockerfile index e69de29..d50cc63 100644 --- a/1_dockerfile/curl/Dockerfile +++ b/1_dockerfile/curl/Dockerfile @@ -0,0 +1,5 @@ +FROM ubuntu:latest + +RUN apt-get update && apt-get install -y curl + +ENTRYPOINT [ "curl" ] diff --git a/1_dockerfile/python/Dockerfile b/1_dockerfile/python/Dockerfile index e69de29..5d0a50b 100644 --- a/1_dockerfile/python/Dockerfile +++ b/1_dockerfile/python/Dockerfile @@ -0,0 +1,10 @@ +FROM python:2.7 + +COPY requirements.txt requirements.txt +COPY app.py app.py + +RUN pip install -r requirements.txt + +EXPOSE 5000 + +CMD [ "python", "app.py" ] diff --git a/2_compose/docker-compose.yml b/2_compose/docker-compose.yml index e69de29..2e17b28 100644 --- a/2_compose/docker-compose.yml +++ b/2_compose/docker-compose.yml @@ -0,0 +1,9 @@ +services: + convos: + # Stable realease didn't worked causing this issue : exec user process caused: exec format error + image: convos/convos:v6.31 + ports: + - "2021:3000" + volumes: + # Using ":z" for the volume for SELinux Enforcing policy on (CentOS, Fedora or RHEL) + - ./data:/data:z