New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RDS IAM support #2173
Closed
Closed
RDS IAM support #2173
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5a345d0
iam auth
pjdufour-truss 97d213c
fix vet issues
pjdufour-truss 572b9ce
remove iam auth from generate-test-data
pjdufour-truss 8426a77
Add test for copy stdin regex
16c4732
Add test for parseColumns
bccffad
Add test for prepareCopyFromStdin
b53cf78
Add logger
96c43c2
Add test for execCopyFromStdin
672e70f
Add String() to Buffer. Add ReadInSQL test
c71c4ff
Fix concurrency
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
FROM gcr.io/distroless/base:latest | ||
|
||
COPY bin/rds-combined-ca-bundle.pem /bin/rds-combined-ca-bundle.pem | ||
|
||
COPY bin/chamber /bin/chamber | ||
|
||
COPY bin/milmove /bin/milmove | ||
|
||
COPY config /config | ||
|
||
COPY swagger/* /swagger/ | ||
|
||
COPY build /build | ||
|
||
ENTRYPOINT ["/bin/milmove"] | ||
|
||
CMD ["serve", "--debug-logging"] | ||
|
||
EXPOSE 8080 |
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 |
---|---|---|
@@ -1,22 +1,15 @@ | ||
FROM alpine:3.7 | ||
|
||
COPY bin/rds-combined-ca-bundle.pem /bin/rds-combined-ca-bundle.pem | ||
|
||
COPY bin/chamber /bin/chamber | ||
|
||
COPY bin/milmove /bin/milmove | ||
RUN mkdir -p /scripts | ||
COPY scripts/apply-secure-migration.sh /scripts | ||
|
||
COPY migrations /migrate/migrations | ||
|
||
RUN mkdir -p /migrate/secure | ||
|
||
ENV GO_ENV=container | ||
COPY migrations_manifest.txt /migrate/migrations_manifest.txt | ||
|
||
# Install tools needed in container | ||
RUN apk update | ||
RUN apk add postgresql-client python3 ca-certificates bash --no-cache | ||
RUN pip3 install awscli | ||
WORKDIR / | ||
|
||
WORKDIR /scripts | ||
ENTRYPOINT ["/bin/milmove"] | ||
CMD ["migrate", "-p", "/migrate/migrations"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same question here, if this is ENTRYPOINT ["/bin/milmove", "migrate"]
CMD ["-p", "/migrate/migrations"] Then I can run this locally, otherwise I feel like I have to rely on the invocation in a |
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 |
---|---|---|
@@ -1,21 +1,22 @@ | ||
FROM alpine:3.7 | ||
|
||
COPY bin_linux/milmove /bin/milmove | ||
RUN mkdir -p /scripts | ||
COPY scripts/apply-secure-migration.sh /scripts | ||
|
||
COPY bin_linux/generate-test-data /bin/generate-test-data | ||
|
||
COPY migrations /migrate/migrations | ||
COPY local_migrations /migrate/local | ||
|
||
COPY local_migrations /migrate/local_migrations | ||
|
||
COPY migrations_manifest.txt /migrate/migrations_manifest.txt | ||
|
||
RUN mkdir -p /bin/pkg/testdatagen/testdata/ | ||
COPY pkg/testdatagen/testdata/test.pdf /bin/pkg/testdatagen/testdata/test.pdf | ||
|
||
ENV GO_ENV=test | ||
ENV SECURE_MIGRATION_SOURCE=local | ||
ENV SECURE_MIGRATION_DIR=/migrate/local | ||
|
||
# Install tools needed in container | ||
# psql (aka postgresql-client) is required to run `TRUNCATE users CASCADE;` to reset local database | ||
RUN apk update | ||
RUN apk add postgresql-client bash --no-cache | ||
|
||
WORKDIR /scripts | ||
WORKDIR / | ||
|
||
ENTRYPOINT ["/bin/milmove"] |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
FROM gcr.io/distroless/base:latest | ||
|
||
COPY bin/rds-combined-ca-bundle.pem /bin/rds-combined-ca-bundle.pem | ||
|
||
COPY bin/chamber /bin/chamber | ||
|
||
COPY bin/save-fuel-price-data /bin/save-fuel-price-data | ||
|
||
WORKDIR /bin |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be:
I'm wondering how I'd run this docker file locally.