DevOps Classroomnotes 29/Aug/2023

Docker Contd

Game of Life – Exercise Solution

  • Refer Here for the changes done

  • Exercise: Try to create a apache based website with any html Refer Here over the Lab setup for CDN Solution section

Nop Commerce

  • Steps:
    • Take a base image with dotnet 7.0
    • copy the zip, unzip, create two folder bin, logs
    • Start the application by using /usr/bin/dotnet /nopCommerce/Nop.Web.dll --urls="http://0.0.0.0:5000"
  • Refer Here for dotnet runtimes and Refer Here for dotnet sdk
  • Dockerfile
FROM mcr.microsoft.com/dotnet/sdk:7.0
LABEL author=khaja
COPY nopCommerce /nopCommerce
ENV ASPNETCORE_URLS="http://0.0.0.0:5000"
EXPOSE 5000
WORKDIR /nopCommerce
CMD ["dotnet", "Nop.Web.dll"]
  • I need to run nopCommerce as a non root user i.e. nop
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

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

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%