-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ Cargo.lock | |
bin/ | ||
pkg/ | ||
wasm-pack.log | ||
out/ | ||
|
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,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Perform all actions as $POSTGRES_USER | ||
export PGUSER="$POSTGRES_USER" | ||
|
||
# Create the 'template_accumulo_access' template db | ||
"${psql[@]}" <<- 'EOSQL' | ||
CREATE DATABASE template_accumulo_access IS_TEMPLATE true; | ||
EOSQL | ||
|
||
# Load accumulo_access_pg into both template_database and $POSTGRES_DB | ||
for DB in template_accumulo_access "$POSTGRES_DB"; do | ||
echo "Loading accumulo_access_pg extension into $DB" | ||
"${psql[@]}" --dbname="$DB" <<-'EOSQL' | ||
CREATE EXTENSION IF NOT EXISTS accumulo_access_pg; | ||
EOSQL | ||
done |
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,11 @@ | ||
FROM postgis/postgis:15-3.4 AS runtime | ||
|
||
LABEL maintainer="Lars Wilhelmsen <[email protected]>" \ | ||
org.opencontainers.image.description=" PostgreSQL 15 bullseye with accumulo_access_pg database extension" \ | ||
org.opencontainers.image.source="https://github.com/larsw/accumulo_access_pg" | ||
|
||
ADD out/accumulo_access_bullseye_pg15_0.1.0_amd64.deb /tmp/ | ||
RUN apt install -y /tmp/accumulo_access_bullseye_pg15_0.1.0_amd64.deb | ||
# Overwrite the file provided by PostGIS with one that includes accumulo_access_pg | ||
ADD 10_postgis.sh /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,9 @@ | ||
FROM postgis/postgis:15-3.4 AS runtime | ||
|
||
LABEL maintainer="Lars Wilhelmsen <[email protected]>" \ | ||
org.opencontainers.image.description="PostGIS 3.4.2+dfsg-1.pgdg110+1 spatial database extension AND accumulo_access_pg with PostgreSQL 15 bullseye" \ | ||
org.opencontainers.image.source="https://github.com/larsw/accumulo_access_pg" | ||
|
||
ADD out/accumulo_access_bullseye_pg15_0.1.0_amd64.deb /tmp/ | ||
RUN mkdir -p /docker-entrypoint-initdb.d && apt install -y /tmp/accumulo_access_bullseye_pg15_0.1.0_amd64.deb | ||
ADD 10_accumulo_access.sh /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,7 @@ | ||
#!/bin/bash | ||
|
||
docker build -f Dockerfile.build -o out . | ||
docker build -f Dockerfile.postgres -t larsw/postgres-accumulo-access:15.6-bullseye . | ||
docker tag larsw/postgres-accumulo-access:15.6-bullseye larsw/postgres-accumulo-access:latest | ||
docker build -f Dockerfile.postgis -t larsw/postgis-accumulo-access:15-3.4 . | ||
docker tag larsw/postgis-accumulo-access:15-3.4 larsw/postgis-accumulo-access:latest |