DevOps Classroomnotes 14/Apr/2023

Fixing issue with startup of .net application

Setting Environment Variables in the container

  • ENV instruction Refer Here
  • This instruction adds environmental variable in the container and it also allows us to change environmental variables while creating containers
  • Refer Here for the changes done to include environmental varibles
  • docker container exec will allow us to execute commands in the container
  • docker container exec -it <c-name> <shell> will allow us to login into container
  • ARG instruction allows us to set the values while building the image Refer Here
  • Refer Here for the BUILD ARGS added
  • Build args can be set while creating images. BUILD ARG can be used by using ${ARG_NAME}.
  • We have build two images by changing the HOME_DIR and DOWNLOAD_URL Build args
docker image build --build-arg -t nop:1.0.2 .
docker image build --build-arg HOME_DIR=/publish -t nop:1.0.0 . 
  • USER: Refer Here
  • Refer Here for the changes done to add a non root user to run the nop commerce application.


  • Gameof life application:
    • This requires java 8
    • this requires tomcat 8 or 9
    • copy the gameoflife.war application into webapps folder of tomcat Refer Here
    • This runs on port 8080

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner