This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(template): sync with ahmadnassri/template-docker
- Loading branch information
Ahmad Nassri
committed
Aug 4, 2022
1 parent
5aba187
commit fe81893
Showing
5 changed files
with
109 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"include": [ | ||
{ "id": "GH", "registry": "ghcr.io" }, | ||
{ "id": "DOCKER", "registry": "docker.io" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/make | ||
|
||
# ----------------------------------------------------------- # | ||
# Note: this file is automatically managed in template-docker # | ||
# ----------------------------------------------------------- # | ||
|
||
# SHELL := /bin/bash | ||
|
||
LINT_PATH := ${PWD}/${LINT_PATH} | ||
|
||
# Docker | ||
|
||
pull: ## pull latest containers | ||
@docker compose pull | ||
|
||
lint: clean ## run super-linter | ||
@docker compose run --rm lint | ||
|
||
readme: clean ## run readme action | ||
@docker compose run --rm readme | ||
|
||
start: ## start the project in foreground | ||
@docker compose up --renew-anon-volumes app | ||
|
||
build: clean ## start the project in background | ||
@docker compose build app | ||
|
||
shell: ## start the container shell | ||
@docker compose run --rm --entrypoint /bin/sh app | ||
|
||
stop: ## stop all running containers | ||
@docker compose down --remove-orphans --rmi local | ||
|
||
clean: stop ## remove running containers, volumes, node_modules & anything else | ||
@docker compose rm --stop --volumes --force | ||
|
||
# Utility methods | ||
## Help: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html | ||
|
||
help: ## display this help | ||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | ||
|
||
.DEFAULT_GOAL := help | ||
.PHONY: help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters