-
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.
* Fix DB auth for all variants * Use debian/alpine images for postgres
- Loading branch information
1 parent
70dc085
commit 215198f
Showing
11 changed files
with
113 additions
and
21 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
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
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,25 @@ | ||
FROM alpine:3.15.0 as migrations-download | ||
ARG WEB3SIGNER_VERSION | ||
WORKDIR /usr/src/app | ||
|
||
# Copy files in branch ${WEB3SIGNER_VERSION} from web3signer repository | ||
RUN apk --no-cache add git && \ | ||
git clone --depth 1 --branch ${WEB3SIGNER_VERSION} https://github.com/ConsenSys/web3signer.git | ||
|
||
FROM postgres:14.1-bullseye | ||
|
||
ARG POSTGRES_PASSWORD | ||
ARG PGPASSWORD | ||
ARG POSTGRES_DB | ||
ARG POSTGRES_USER | ||
|
||
ENV POSTGRES_PASSWORD=${POSTGRES_PASSWORD} \ | ||
PGPASSWORD=${PGPASSWORD} \ | ||
POSTGRES_USER=${POSTGRES_USER} \ | ||
POSTGRES_DB=${POSTGRES_DB} \ | ||
INITDB_DIR=/docker-entrypoint-initdb.d/ | ||
|
||
COPY rename_files.sh /usr/local/bin/rename_files.sh | ||
COPY --from=migrations-download /usr/src/app/web3signer/slashing-protection/src/main/resources/migrations/postgresql/* ${INITDB_DIR} | ||
|
||
RUN chmod +x /usr/local/bin/rename_files.sh && /usr/local/bin/rename_files.sh |
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