diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2b8d32f --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +.PHONY: help +.DEFAULT_GOAL := help + +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' +shell: ## Open dockerized Bash terminal + @docker-compose run --no-deps --rm shell +python: ## Open dockerized python command line interface + @docker-compose run --no-deps --rm shell python3 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0de8b08 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3' +services: + shell: + image: inistcnrs/lodex-workers-python:3.0.6 + environment: + - http_proxy + - https_proxy + volumes: + - .:/app + command: bash