forked from scidsg/hushline
-
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.
docs: add shareable patch file replacing docker with podman scidsg#632
Git patch files can be downloaded and applied on any HEAD: ``git apply docker_podman_replacements.patch`` This file was produced by saving the relevant diff: ``git diff > volumes/docker_podman_replacements.patch``
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 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,39 @@ | ||
diff --git a/Makefile b/Makefile | ||
index 89ba610..e7c1a1c 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -28,13 +28,13 @@ lint: ## Lint the code | ||
poetry run ruff format --check && \ | ||
poetry run ruff check && \ | ||
poetry run mypy . && \ | ||
- docker compose run --rm app npx prettier --check ./*.md ./docs ./.github/workflows/* ./hushline | ||
+ podman compose run --rm app npx prettier --check ./*.md ./docs ./.github/workflows/* ./hushline | ||
|
||
.PHONY: fix | ||
fix: ## Format the code | ||
poetry run ruff format && \ | ||
poetry run ruff check --fix && \ | ||
- docker compose run --rm app npx prettier --write ./*.md ./docs ./.github/workflows/* ./hushline | ||
+ podman compose run --rm app npx prettier --write ./*.md ./docs ./.github/workflows/* ./hushline | ||
|
||
.PHONY: revision | ||
revision: migrate-prod ## Create a new migration | ||
@@ -45,5 +45,5 @@ endif | ||
|
||
.PHONY: test | ||
test: ## Run the test suite | ||
- docker compose run --rm app \ | ||
+ podman compose run --rm app \ | ||
poetry run pytest --cov hushline --cov-report term --cov-report html -vv $(PYTEST_ADDOPTS) tests/$(test) | ||
diff --git a/scripts/local-postgres.sh b/scripts/local-postgres.sh | ||
index f4df3a3..61e4eeb 100755 | ||
--- a/scripts/local-postgres.sh | ||
+++ b/scripts/local-postgres.sh | ||
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
-docker run --rm -t -p 127.0.0.1:5432:5432 \ | ||
+podman run --rm -t -p 127.0.0.1:5432:5432 \ | ||
-e POSTGRES_USER=hushline \ | ||
-e POSTGRES_PASSWORD=hushline \ | ||
-e POSTGRES_DB=hushline \ |