forked from bregman-arie/devops-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
abregman
committed
Oct 30, 2019
1 parent
680f542
commit 9d676bd
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Write a Dockerfile and run a container | ||
|
||
Your task is as follows: | ||
|
||
1. Create a Docker image: | ||
* Use centos or ubuntu as the base image | ||
* Install apache web server | ||
* Deploy any web application you want | ||
* Add https support (using HAProxy as reverse-proxy))) | ||
2. Once you wrote the Dockerfile and created an image, run the container and test the application. Describe how did you test it and provide output | ||
3. Describe one or more weakness of your Dockerfile. Is it ready to be used in production? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# 5 is the number of scenario questions. | ||
expr 5 + $(cat README.md | grep \<\/summary\> | wc -l) | ||
# 6 is the number of scenario questions. | ||
expr 6 + $(cat README.md | grep \<\/summary\> | wc -l) |