Skip to content

Commit

Permalink
docs/laptop: update localhost setup instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Kyr Shatskyy <[email protected]>
  • Loading branch information
Kyr Shatskyy committed Jan 30, 2025
1 parent a98393b commit cbf5aa4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/laptop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,20 @@ docker network create paddles
Start postgres containers in order to use paddles:

```bash
mkdir $HOME/.teuthology/postgres
mkdir -p $HOME/.teuthology/postgres
docker run -d -p 5432:5432 --network paddles --name paddles-postgres \
-e POSTGRES_PASSWORD=secret \
-e POSTGRES_USER=paddles \
-e POSTGRES_DB=paddles \
-e PGDATA=/var/lib/postgresql/data/pgdata \
-e PADDLES_JOB_LOG_HREF_TEMPL='http://localhost:8888/{run_name}/{job_id}/teuthology.log' \
-v $HOME/.teuthology/postgres:/var/lib/postgresql/data postgres
```

NOTE. When running container on MacOS X using podman postgres may experience
troubles with volume directory binds because of podman machine, thus use regular
volumes like `-v paddlesdb:/var/lib/postgresql/data`.

### Run paddles

Checkout paddles and build the image:
Expand All @@ -72,7 +77,7 @@ cd ~/paddles && docker build . --file Dockerfile --tag paddles
Run the container with previously created network:

```bash
docker run -d --network paddles --name api -p 80:8080 \
docker run -d --network paddles --name api -p 8080:8080 \
-e PADDLES_SERVER_HOST=0.0.0.0 \
-e PADDLES_SQLALCHEMY_URL=postgresql+psycopg2://paddles:secret@paddles-postgres/paddles \
paddles
Expand Down

0 comments on commit cbf5aa4

Please sign in to comment.