Git Product home page Git Product logo

CSL7510 Asignment1 Q2

Docker application deployment

Note: Per response by Instructor to a question on GC, using a base OS image is allowed. Everything else would be installed from scratch.

As in Q1 of the assignment, the same Phonebook Application would be used and containerized for this part of the assignment. Starting from a base ubuntu 22.04 image, nginx, php and mysql would be setup and deployed.

Only one docker image [1][3] is created hosting all three services nginx+php-fpm and mysql [2][4].

Nginx and PHP interaction tested OK, but application does not work in this submission due to PHP not able to talk to MySQL within the container.

To Build:

git clone [email protected]:m21aie249/m21aie249.git

cd docker

docker build -t mysql:mysql1.0 .

To Run:

docker run -d -p 9090:80 -p 3066:3066 mysql:mysql1.0

References / Acknowledgements:

[1]: PHP+Nginx+Docker Template: https://github.com/walternascimentobarroso/php-nginx-docker

[2]: How To Install Linux, Nginx, MySQL, PHP (LEMP stack) on Ubuntu 22.04: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-22-04

[3]: Docker Documentation: https://docs.docker.com/get-started/

[4]: How to create Docker Images with a Dockerfile on Ubuntu 22.04 LTS: https://www.howtoforge.com/tutorial/how-to-create-docker-images-with-dockerfile/

m21aie249's Projects

bnn-pynq icon bnn-pynq

Quantized Neural Networks (QNNs) on PYNQ

finn icon finn

Dataflow compiler for QNN inference on FPGAs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.