You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are the steps I took to get hushline working on Ubuntu 24.04 LTS with podman containers. Though, this isn't a clean guide, since it also includes the setup instructions used to run hushline without containerization. There are likely redundancies that can be pruned and still get it running.
.PHONY: lint
lint: ## Lint the code
poetry run ruff format --check && \
poetry run ruff check && \
poetry run mypy .&& \
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 && \
podman compose run --rm app npx prettier --write ./*.md ./docs ./.github/workflows/* ./hushline
...
.PHONY: test
test: ## Run the test suite
podman compose run --rm app \
poetry run pytest --cov hushline --cov-report term --cov-report html -vv $(PYTEST_ADDOPTS) tests/$(test)
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``
These are the steps I took to get hushline working on Ubuntu 24.04 LTS with podman containers. Though, this isn't a clean guide, since it also includes the setup instructions used to run hushline without containerization. There are likely redundancies that can be pruned and still get it running.
Setup Machine
Custom File Edits
'scripts/local-postgres.sh'
#!/usr/bin/env bash podman run --rm -t -p 127.0.0.1:5432:5432 \ -e POSTGRES_USER=hushline \ -e POSTGRES_PASSWORD=hushline \ -e POSTGRES_DB=hushline \ postgres:16.4-alpine3.20
'Makefile'
Setup hushline
Run hushline
terminal # 1
terminal # 2
~$ podman-compose run --rm app bash root@xxxxxxxxxxxx:/app# poetry shell (hushline-py3.12) root@xxxxxxxxxxxx:/app# make migrate-dev (hushline-py3.12) root@xxxxxxxxxxxx:/app# ./scripts/dev_data.py
browser # 1
open http://localhost:8080/
Cleanup hushline
close down session
~$ podman-compose down
view all containers
~$ podman ps -a
shutdown container by ID
clear all shutdown containers
~$ podman container prune
shutdown & clear all containers & data volumes
TODO:
The text was updated successfully, but these errors were encountered: