Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs/laptop #1984

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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