This directory contains additional Dockerfiles for images built by Aerie.
- Dockerfile.hasura - A Hasura Docker image with bundled Aerie-specific Hasura metadata
- Dockerfile.postgres - A Postgres Docker image with bundled Aerie-specific SQL
First build Aerie to make sure the SQL files are properly added to the deployment directory:
cd aerie
./gradlew assemble
Next, still from the top-level Aerie directory, build the images from the provided Dockerfiles:
docker build -t aerie-hasura -f ./docker/Dockerfile.hasura .
docker build -t aerie-postgres -f ./docker/Dockerfile.postgres .
To run the images you can use the following commands. Note these are just for testing purposes:
docker run --name aerie-hasura -d -p 8080:8080 aerie-hasura
docker run --name aerie-postgres -d -p 5432:5432 --env-file ./.env aerie-postgres