Development on AnzuSystems Core-DAM by Petit Press a.s. (www.sme.sk)
Simple guide on how to develop on the project, run tests, etc.
git clone https://github.com/anzusystems/core-dam.git
Start project docker containers:
bin/docker-compose up --build -d
Arguments:
--build
- Build all images to run fresh docker containers-d
- Run docker containers in the detached mode as background processes
Add this entry to your hosts:
127.0.0.1 core-dam.anzusystems.local
127.0.0.1 image.anzusystemsdata.local
127.0.0.1 admin-image.anzusystemsdata.local
-
Linux/Mac location:
/etc/hosts
-
Windows location
C:\Windows\System32\drivers\etc\hosts
Rebuild app from ground up:
bin/build
Open http://core-dam.anzusystems.local in your browser.
Scripts available in the project.
Script used to run bash inside the docker container:
bin/bash
Execute bin/bash -h
for all bash containers and options.
Script used to build the project.
bin/build
Execute bin/build -h
for all build options.
Script used to clear all cache on local environment:
bin/cc
Execute bin/cc -h
for all options.
Wrapper script used to run docker-compose
:
bin/docker-compose
Options:
- see the official docker-compose docu for all options
Script will:
- setup correct permissions for the user if needed (sync UID and GID in docker container with host user, etc.)
- run
docker-compose
command
Script used to run the coding style fixer:
bin/ecs
Script used to run the static analyses:
bin/psalm
Script used to run the security check inside the docker container:
bin/security
Script used to run Unit tests inside the docker container:
bin/test