Browse Source

chore/First_version

chore/First_version
anthony 5 years ago
parent
commit
aec0d38916
  1. 1
      .gitignore
  2. 5
      0_run/commands.sh
  3. 5
      1_dockerfile/bash/Dockerfile
  4. 5
      1_dockerfile/curl/Dockerfile
  5. 10
      1_dockerfile/python/Dockerfile
  6. 9
      2_compose/docker-compose.yml

1
.gitignore

@ -0,0 +1 @@
2_compose/data

5
0_run/commands.sh

@ -1 +1,6 @@
#!/bin/bash
docker run --rm docker/whalesay cowsay "Hello M1 III 2021"
docker container run --rm -it python:3 python

5
1_dockerfile/bash/Dockerfile

@ -0,0 +1,5 @@
FROM ubuntu:latest
COPY to_run.sh to_run.sh
CMD [ "/bin/bash", "to_run.sh" ]

5
1_dockerfile/curl/Dockerfile

@ -0,0 +1,5 @@
FROM ubuntu:latest
RUN apt-get update && apt-get install -y curl
ENTRYPOINT [ "curl" ]

10
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" ]

9
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
Loading…
Cancel
Save