From 9d676bdd25e82763e390b39525e6fdfaf3506302 Mon Sep 17 00:00:00 2001 From: abregman Date: Wed, 30 Oct 2019 21:30:44 +0200 Subject: [PATCH] Add two new questions --- README.md | 7 ++++++- scenarios/write_dockerfile_run_container.md | 11 +++++++++++ scripts/count_questions.sh | 4 ++-- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 scenarios/write_dockerfile_run_container.md diff --git a/README.md b/README.md index a28b6ed..c740e93 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 +
+How to print the shared libraries required by a certain program? What is it useful for?
+
+ #### :star: Advanced @@ -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) diff --git a/scenarios/write_dockerfile_run_container.md b/scenarios/write_dockerfile_run_container.md new file mode 100644 index 0000000..c114de4 --- /dev/null +++ b/scenarios/write_dockerfile_run_container.md @@ -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? diff --git a/scripts/count_questions.sh b/scripts/count_questions.sh index cce300a..ca8d5cc 100755 --- a/scripts/count_questions.sh +++ b/scripts/count_questions.sh @@ -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)