mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
Move schema, clean up postgres dockerfile
This commit is contained in:
parent
d016590d2f
commit
013b91f2f0
3 changed files with 3 additions and 6 deletions
|
@ -37,11 +37,11 @@ ssh example@dev-server.csh.rit.edu -L 8000:localhost:8000
|
|||
|
||||
2. Configure your environment variables. I'd recommend setting up a .env file and passing that into your container. Check `.env.template` for more info.
|
||||
|
||||
3. Run it with this clusterfuck. This sets up redis, postgres, rq, and proxstar.
|
||||
3. Run it. This sets up redis, postgres, rq, and proxstar.
|
||||
|
||||
```
|
||||
podman run --rm -d --network=proxstar --name=proxstar-redis redis:alpine
|
||||
podman run --rm -d --network=proxstar --name=proxstar-postgres -e POSTGRES_PASSWORD=changeme -v ./HACKING/proxstar-postgres//volume:/var/lib/postgresql/data:Z proxstar-postgres
|
||||
podman run --rm -d --network=proxstar --name=proxstar-postgres -e POSTGRES_PASSWORD=changeme -v ./HACKING/proxstar-postgres/volume:/var/lib/postgresql/data:Z proxstar-postgres
|
||||
podman run --rm -d --network=proxstar --name=proxstar-rq-scheduler --env-file=HACKING/.env --entrypoint ./start_scheduler.sh proxstar
|
||||
podman run --rm -d --network=proxstar --name=proxstar-rq --env-file=HACKING/.env --entrypoint ./start_worker.sh proxstar
|
||||
podman run --rm -d --network=proxstar --name=proxstar -p 8000:8000 --env-file=HACKING/.env proxstar
|
||||
|
|
|
@ -6,7 +6,4 @@ RUN apt-get update \
|
|||
&& cpanm Data::Validate::Domain \
|
||||
&& apt-get remove -y build-essential
|
||||
|
||||
#COPY ./schema/large.sql /docker-entrypoint-initdb.d/ # Woa there, pal; That's a lot of S C H E M A.
|
||||
# I volunteer as tribute. DM me if this breaks.
|
||||
#RUN curl https://csh.rit.edu/~wilnil/storage/proxstar-postgres/large.sql -o /docker-entrypoint-initdb.d/large.sql
|
||||
COPY large.sql /docker-entrypoint-initdb.d/large.sql
|
||||
COPY ./schema/large.sql /docker-entrypoint-initdb.d/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue