Skip to content

Commit

Permalink
Add two new questions
Browse files Browse the repository at this point in the history
  • Loading branch information
abregman committed Oct 30, 2019
1 parent 680f542 commit 9d676bd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

:information_source:  This repository contains interview questions on various DevOps and SRE related topics

:bar_chart:  There are currently **501** questions
:bar_chart:  There are currently **503** questions

:books:  To learn more about DevOps check the resources in [devops-resources](https://github.com/bregman-arie/devops-resources)

Expand Down Expand Up @@ -1237,6 +1237,10 @@ While an A record points a domain name to an IP address, a PTR record does the o
2. SSH server is not running
</b></details>

<details>
<summary>How to print the shared libraries required by a certain program? What is it useful for?</summary><br><b>
</b></details>

<a name="linux-advanced"></a>
#### :star: Advanced

Expand Down Expand Up @@ -3466,6 +3470,7 @@ Scenarios are questions which don't have verbal answer and require you one of th
These questions usually given as an home task to the candidate and they can combine several topics together.
Below you can find several scenario questions:

* [Writing a Dockerfile and running a container](scenarios/write_dockerfile_run_container.md)
* [Elasticsearch & Kibana on AWS](scenarios/elk_kibana_aws.md)
* [Ansible, Minikube and Docker](scenarios/ansible_minikube_docker.md)
* [Cloud Slack bot](scenarios/cloud_slack_bot.md)
Expand Down
11 changes: 11 additions & 0 deletions scenarios/write_dockerfile_run_container.md
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?
4 changes: 2 additions & 2 deletions scripts/count_questions.sh
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)

0 comments on commit 9d676bd

Please sign in to comment.