N
N
nepster-web2017-07-04 15:21:30
PHP
nepster-web, 2017-07-04 15:21:30

How to properly deploy an application with docker?

Working with docker, I ran into a situation where I need to take a certain series of actions in order to deploy the project.
For example:
- build docker images (docker-compose build)
- install extensions (composer install)
- grant rights to certain log folders, etc.
In general, carry out a series of manipulations and finally launch the application. At first, I thought to write all these manipulations in containers so that everything is done during the build. But immediately stopped on "composer install". After a lot of googling, I came across mentions that this is not necessary.
I'm coming to the conclusion that I want to write scripts for this whole thing, but maybe I'm missing something or doing it wrong.
Tell me, please, where to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rustler2000, 2017-07-04
@nepster-web

- build the project
- install extensions
- build the image
then run it and keep the logs in volume, or send to the host or driver for logging to prescribe.
but there's a gap between building the image and running the image. and how the image will be run should not be specifically specified when building the image.

I
IceJOKER, 2017-07-04
@IceJOKER

May I know what is the problem? Why are you "stopped"?
When you build, run composer installand that's it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question