PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, March 1, 2022

[FIXED] utility for use docker instead of classic setup ( wamp, mamp, lamp)

 March 01, 2022     docker, lamp, mamp, node.js, wamp     No comments   

Issue

I have a question.

I'm a web developper since 5 years and i develop locally with the classic setup that is to say wamp/mamp/lamp under the OS and i use git also.

For ship the source code, i push the code to the git server and i pull it from my server of production.

I have a utility for let my classic setup for docker, if i have a utility can you tell me what because after read many article on Internet, i have seen how set a container but i don't see utily for me :/

PS : If my English if no good, I'm sorry, i'm French and my english is not perfect.

Thank you in advance.

Best Regards


Solution

Generally, if you want to deploy with using docker, the build artifact is your docker image.

The advantage of doing it this way, is that your tooling is the same no matter what language your code is written in. It does not matter if it is an interpreted language, or compile language, you always get a docker image that is the build artifact.

A fairly common pattern is to commit your code to git, and then have a ci/cd pipeline that will build an image that contains your application, and push it out to a Docker registry so that it can be used in your deployments.

You can even use the same image while doing development work. This reduces the time it takes for a developer to get a development environment working on their workstation.

One of the biggest advantages in this case is you get consistency from the application's point of view from inside the container. It does not matter if you are on a server, or a developer laptop. It all looks the same because it is the same image, with the same dependencies in that image.



Answered By - programmerq
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing