Commit c1449e9f authored by Eric Duminil's avatar Eric Duminil
Browse files

Updated makefile and uv

parent 9ca4852d
...@@ -22,7 +22,8 @@ shell: ## Start bash ...@@ -22,7 +22,8 @@ shell: ## Start bash
@echo "${green}Start shell${no_color}" @echo "${green}Start shell${no_color}"
docker run --rm -it simstadt/simstadt:cli bash docker run --rm -it simstadt/simstadt:cli bash
docker-build: ## Build the cli Docker image (also tagged :latest) docker-build: ## Build the base and cli Docker images (cli also tagged :latest)
docker build --target base -t simstadt/simstadt:base .
docker build --target cli -t simstadt/simstadt:cli -t simstadt/simstadt:latest . docker build --target cli -t simstadt/simstadt:cli -t simstadt/simstadt:latest .
docker-test: docker-build ## Run the full test suite (incl. integration tests) against the published PyPI package inside Docker docker-test: docker-build ## Run the full test suite (incl. integration tests) against the published PyPI package inside Docker
...@@ -31,7 +32,8 @@ docker-test: docker-build ## Run the full test suite (incl. integration tests) a ...@@ -31,7 +32,8 @@ docker-test: docker-build ## Run the full test suite (incl. integration tests) a
_check_docker_push: _check_docker_push:
@echo -n "Are you sure you want to push the Docker images to Docker Hub? [y/N] " && read ans && [ $${ans:-N} = y ] @echo -n "Are you sure you want to push the Docker images to Docker Hub? [y/N] " && read ans && [ $${ans:-N} = y ]
docker-push: _check_docker_push docker-build ## Push the cli and latest images to Docker Hub (requires prior `docker login`) docker-push: _check_docker_push docker-build ## Push the base, cli, and latest images to Docker Hub (requires prior `docker login`)
docker push simstadt/simstadt:base
docker push simstadt/simstadt:cli docker push simstadt/simstadt:cli
docker push simstadt/simstadt:latest docker push simstadt/simstadt:latest
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment