diff options
author | nicolargo <nicolas@nicolargo.com> | 2022-09-15 11:02:11 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2022-09-15 11:02:11 +0200 |
commit | 25320081620b6fd23e42d43d33d6f44e265a0657 (patch) | |
tree | 89d91327d37987a9df284da30a9927629291fe4b /Makefile | |
parent | fdbbf94b465f6f5d860bb222d1c18bd85c100d5c (diff) |
Correct issue on the dev Docker
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -109,6 +109,15 @@ flatpak: venv-dev-upgrade ## Generate FlatPack JSON file @echo "Now follow: https://github.com/flathub/flathub/wiki/App-Submission" # =================================================================== +# Docker +# =================================================================== + +docker: + docker build --target full -f ./docker-files/alpine.Dockerfile -t glances:local-alpine-full . + docker build --target minimal -f ./docker-files/alpine.Dockerfile -t glances:local-alpine-minimal . + docker build --target dev -f ./docker-files/alpine.Dockerfile -t glances:local-alpine-dev . + +# =================================================================== # Run # =================================================================== @@ -121,6 +130,15 @@ run-debug: ## Start Glances in debug console mode (also called standalone) run-local-conf: ## Start Glances in console mode with the system conf file ./venv/bin/python -m glances +run-docker-alpine-minimal: ## Start Glances Alpine Docker minimal in console mode + docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host --network host -it glances:local-alpine-minimal + +run-docker-alpine-full: ## Start Glances Alpine Docker full in console mode + docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host --network host -it glances:local-alpine-full + +run-docker-alpine-dev: ## Start Glances Alpine Docker dev in console mode + docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host --network host -it glances:local-alpine-dev + run-webserver: ## Start Glances in Web server mode ./venv/bin/python -m glances -C ./conf/glances.conf -w |