Entrypoint
The Artifakt entrypoint is automatically started in the container. You can find our script here: https://github.com/artifakt-io/artifakt-docker-images/blob/main/magento/2.4/artifakt_scripts/artifakt_entrypoint.sh
Here is how the script runs:
- 1.Set all configuration variables
- 2.Check if the DB is installed, proceed to step 3 if yes
- 3.Check if there is a env.php.sample file in the folder, if not use our own file
- 4.If the env file has been generated successfully, proceed to step 5
- 5.Generate the whole Nginx configuration for standard files
- 6.Create custom_http.conf file for multi-stores
- 7.Generate the whole Varnish configuration files
- 8.Map all shared folders
- 9.Check if the config.php file exists, if not, generate with module:enable --all and create all statics
- 10.Create symbolic links to standard logs
- 11.Create symbolic links to custom logs
- 12.On the main instance only, check the db status and the config status. If not up to date, set maintenance mode and run standard commands: app:config:import or setup:db-schema:upgrade
- 13.On the main instance, if needed, set developer mode
- 14.On all other instances, wait for db actions to be finished
- 15.Set the http cache host information in env.php
- 16.Copy all static and js to pub for nginx container
You can deactivate our entrypoint with the corresponding environment variable (see information down below).
Last modified 6mo ago