Another Devops Scenario Questions
Hi guys this is another post on Devops scenario questions to help us prepare and get us ready. You were invited for a technical interview for devops job role, and you were given the following: You have a php file for an application with a default page index.php shown below and were given the questions that follows
<?php>
echo “My software application”;
Now the question
Write a Dockerfile that will build the docker image for the application with appropriate base image for a php application
Write the command that will run the container of the resulting image output in your browser.
Now a problem was discovered that each time the content of the application was changed it doesn’t reflect on the browser what do you think could have caused this.
Write the adhoc command or the file to resolve the problem in No3 above.
Remember your response must follow devops best practices