Move schema, clean up postgres dockerfile

This commit is contained in:
Will Nilges 2022-06-25 21:54:48 -04:00
parent d016590d2f
commit 013b91f2f0
3 changed files with 3 additions and 6 deletions

View file

@ -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. 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-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-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-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 podman run --rm -d --network=proxstar --name=proxstar -p 8000:8000 --env-file=HACKING/.env proxstar

View file

@ -6,7 +6,4 @@ RUN apt-get update \
&& cpanm Data::Validate::Domain \ && cpanm Data::Validate::Domain \
&& apt-get remove -y build-essential && 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. COPY ./schema/large.sql /docker-entrypoint-initdb.d/
# 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