-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create Hasura docker image with Aerie data * Create Postgres Docker image with Aerie data * Used for quick-starting with Aerie
- Loading branch information
Showing
6 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM hasura/graphql-engine:v2.12.0.cli-migrations-v3 | ||
COPY deployment/hasura/metadata /hasura-metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM postgres:14.1 | ||
COPY deployment/postgres-init-db /docker-entrypoint-initdb.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Docker | ||
|
||
This directory contains additional Dockerfiles for images built by Aerie. | ||
|
||
- [Dockerfile.hasura](./Dockerfile.hasura) - A Hasura Docker image with bundled Aerie-specific Hasura metadata | ||
- [Dockerfile.postgres](./Dockerfile.postgres) - A Postgres Docker image with bundled Aerie-specific SQL | ||
|
||
## Build | ||
|
||
First build Aerie to make sure the SQL files are properly added to the [deployment](../deployment/) directory: | ||
|
||
```sh | ||
cd aerie | ||
./gradlew assemble | ||
``` | ||
|
||
Next, still from the top-level Aerie directory, build the images from the provided Dockerfiles: | ||
|
||
```sh | ||
docker build -t aerie-hasura -f ./docker/Dockerfile.hasura . | ||
docker build -t aerie-postgres -f ./docker/Dockerfile.postgres . | ||
``` | ||
|
||
## Run | ||
|
||
To run the images you can use the following commands. Note these are just for testing purposes: | ||
|
||
```sh | ||
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 | ||
``` |