-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore(bq jdbc): fix docker environment commands #12107
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,24 @@ | ||
| FROM gcr.io/cloud-devrel-public-resources/java11 | ||
|
|
||
| ARG BRANCH=main | ||
| ENV JDBC_DOCKER_ENV=true | ||
| RUN apt-get update && apt-get install -y zip && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN mkdir /tst | ||
| COPY ./pom.xml /src/pom.xml | ||
| COPY ./java.header /src/java.header | ||
| COPY ./license-checks.xml /src/license-checks.xml | ||
| COPY ./google-cloud-bigquery-jdbc/pom.xml /src/google-cloud-bigquery-jdbc/pom.xml | ||
|
|
||
| COPY ./google-cloud-bigquery /src/google-cloud-bigquery | ||
| COPY ./google-cloud-bigquery-bom /src/google-cloud-bigquery-bom | ||
| # Changes to `pom.xml` will trigger re-sync | ||
| COPY pom.xml /src/pom.xml | ||
|
|
||
| # Doing it via single command, so layer contains only installed moduled vs full repo | ||
| # Copy from local repo is taking forever. Doing via git clone will keep dependencies ~up to date. | ||
| # It will fail on old branches forcing to sync to latest main branch. | ||
| RUN bash -c " \ | ||
| mkdir /git \ | ||
| && cd /git \ | ||
| && git clone -b ${BRANCH} --depth 1 --single-branch https://github.com/googleapis/google-cloud-java.git \ | ||
| && cd /git/google-cloud-java \ | ||
| && source .kokoro/common.sh \ | ||
| && install_modules java-bigquery \ | ||
| && rm -rf /git" | ||
|
|
||
| # This will ensure all deps are present | ||
| WORKDIR /src | ||
| RUN mvn install -DskipTests | ||
|
|
||
| WORKDIR /src/google-cloud-bigquery-jdbc | ||
| RUN mvn install | ||
|
|
||
| ENTRYPOINT [] | ||
This file contains hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.