Development on AnzuSystems Common Bundle 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/common-bundle.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
Rebuild app from ground up:
bin/build
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