-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build,scripts: postgres dockerfile and multiarch build
- Loading branch information
1 parent
6792948
commit 1857bcd
Showing
4 changed files
with
28 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- These commands are run with psql inside the container after postgres starts. | ||
CREATE USER kwild WITH PASSWORD 'kwild' SUPERUSER REPLICATION; | ||
CREATE DATABASE kwild OWNER kwild; | ||
-- the tests db: | ||
CREATE DATABASE kwil_test_db OWNER kwild; |
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,18 @@ | ||
#!/usr/bin/env sh | ||
# | ||
# Build and push the Kwil postgres docker image | ||
# | ||
|
||
set -eu | ||
|
||
ROOT=$(dirname "$0")/../.. | ||
|
||
cd "$ROOT"/build/package/docker | ||
|
||
: ${TAG:=latest} | ||
|
||
echo Building kwild for multiarch and pushing to dockerhub, tag: ${TAG} | ||
|
||
docker build --platform linux/amd64,linux/arm64/v8 -t kwildb/postgres:${TAG} \ | ||
--label "postgres configured for Kwil DB" \ | ||
--push -f postgres.dockerfile . |