mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
34 lines
1.1 KiB
Makefile
34 lines
1.1 KiB
Makefile
# Well documented Makefiles
|
|
DEFAULT_GOAL := help
|
|
help:
|
|
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-40s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
|
|
|
|
##@ [Docker]
|
|
start: ## Spin up the container
|
|
docker-compose up -d
|
|
|
|
stop: ## Shut down the containers
|
|
docker-compose down
|
|
|
|
build: ## Build all docker images
|
|
docker-compose build
|
|
|
|
##@ [Application]
|
|
composer: ## Run composer commands. Specify the command e.g. via "make composer ARGS="install|update|require <dependency>"
|
|
docker-compose run --rm app composer $(ARGS)
|
|
|
|
lint: ## Run the Linter
|
|
docker-compose run --rm app ./vendor/bin/pint -v
|
|
|
|
test-lint: ## Run the Linter Test
|
|
docker-compose run --rm app ./vendor/bin/pint --test -v
|
|
|
|
test-types: ## Run the PHPStan analysis
|
|
docker-compose run --rm app ./vendor/bin/phpstan analyse --ansi
|
|
|
|
test-unit: ## Run the Pest Test Suite
|
|
docker-compose run --rm app ./vendor/bin/pest --colors=always
|
|
|
|
test: ## Run the tests. Apply arguments via make test ARGS="--init"
|
|
make test-lint && make test-types && make test-unit
|