diff --git a/golang/README.md b/golang/README.md index dc455ed..e84cf26 100644 --- a/golang/README.md +++ b/golang/README.md @@ -34,6 +34,10 @@ This starter application consists of two parts: ## Quick start +Install [`Air`](https://github.com/air-verse/air#installation) to allow live +reloading your long-running applications. This is installed automatically +if you use have followed [the instructions to configure your development environment](../README.md#your-development-environment). + ### Workflow ```shell @@ -42,7 +46,7 @@ air ``` The workflow is a long-running application. For rapid development, the recommendation -is to use [air](https://github.com/air-verse/air). +is to use [Air](https://github.com/air-verse/air). You can also run this with `go run ./worker` and restarting after every code change. diff --git a/python/.gitignore b/python/.gitignore index f8f2064..886a08a 100644 --- a/python/.gitignore +++ b/python/.gitignore @@ -1,3 +1,5 @@ .venv __pycache__ .ruff_cache +*.egg +*.egg-info/ diff --git a/python/Dockerfile b/python/Dockerfile new file mode 100644 index 0000000..6997a2e --- /dev/null +++ b/python/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.12 AS builder +RUN useradd -m -u 1000 python +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ +USER python +WORKDIR /home/python/app +COPY --chown=python:python . . +CMD [ "uv", "run", "poe", "dev" ] diff --git a/python/compose.yaml b/python/compose.yaml new file mode 100644 index 0000000..8909edb --- /dev/null +++ b/python/compose.yaml @@ -0,0 +1,35 @@ +include: + - ../compose.yaml + +services: + starter: + build: + context: . + target: builder + environment: + TEMPORAL_ADDRESS: temporal:7233 + volumes: + - .:/home/python/app + links: + - temporal + depends_on: + worker: + condition: service_started + temporal: + condition: service_healthy + entrypoint: uv + command: run src/starter.py + + worker: + build: + context: . + target: builder + environment: + TEMPORAL_ADDRESS: temporal:7233 + volumes: + - .:/home/python/app + links: + - temporal + depends_on: + temporal: + condition: service_healthy diff --git a/typescript/README.md b/typescript/README.md index 4a3226c..0cbdd7f 100644 --- a/typescript/README.md +++ b/typescript/README.md @@ -32,6 +32,13 @@ This starter application consists of two parts: ## Quick start +Install dependencies using `npm`: + +```sh +cd typescript +npm ci +``` + ### Workflow ```shell