Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:8

COPY index.js /root/

RUN npm install express mysql

CMD node root/index.js
39 changes: 20 additions & 19 deletions answers.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,42 @@
# Answers

Lastname:
Firstname:
Lastname:Halbeher
Firstname:Clement

## 2.2
command:
command: docker run app .

## 2.3
question:
command:

question: we can not use postman for this part( with expose port number)
command: docker run -e MYSQL_HOST='localhost' -e MYSQL_PORT='8080' -e MYSQL_DATABASE='project' -e MYSQL_LOGIN='root' -e MYSQL_PASSWORD='root' app
## 2.5
question:
command:
question: We need to put a new tag on our image to identify the repository
command:docker tag 115cee57599a niebeu/devops-lab:latest docker push niebeu/devops-lab:latest

## 2.6
command:
command:sudo docker system prune -a

question:
question: we delete all the images and after we create a new container.now our previous image is on docker hub
command:

command:
command:docker create niebeu/devops-lab:app docker run --detach niebeu/devops-lab:app

## 2.7
question:
question:
command:
question: name: mystifying_rubin
question: with docker ps we saw the running containers and we change the docker name after
command: docker ps -a

command:
command: docker rename mystifying_rubin js_api

## 2.8
question:
output:
question: to see information about our running os on our docker we us the following command
output: docker exec devops-lab cat /etc/os-release

## 3.1
command:
command:docker-compose up

## 3.4
to upgrade after:
command:docker-compose up -d
command:
command:

Loading