-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker-based tests of client installation package.
- Loading branch information
1 parent
2511c40
commit bab8a7d
Showing
4 changed files
with
88 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
ARG ICU_ENABLED=false | ||
|
||
FROM redhat/ubi9 AS dwh-migration-tools-base | ||
RUN dnf install -y \ | ||
git \ | ||
python3 \ | ||
python3-pip | ||
# See https://cloud.google.com/sdk/docs/install | ||
COPY redhat-google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo | ||
RUN dnf install -y google-cloud-cli | ||
WORKDIR /workspace | ||
RUN git clone -b main https://github.com/google/dwh-migration-tools \ | ||
&& cp -R dwh-migration-tools/client/examples/teradata/sql project | ||
|
||
FROM dwh-migration-tools-base AS dwh-migration-tools-icu-false | ||
RUN python3 -m pip install dwh-migration-tools/client | ||
|
||
FROM dwh-migration-tools-base AS dwh-migration-tools-icu-true | ||
RUN dnf install -y \ | ||
gcc \ | ||
gcc-c++ \ | ||
libicu-devel \ | ||
python3-devel | ||
RUN python3 -m pip install dwh-migration-tools/client[icu] | ||
|
||
FROM dwh-migration-tools-icu-${ICU_ENABLED} | ||
RUN dnf clean all -y && rm -rf /var/cache | ||
WORKDIR /workspace/project | ||
ENV BQMS_VERBOSE="True" | ||
ENV BQMS_MULTITHREADED="True" | ||
|
||
ENTRYPOINT [ "/workspace/project/run.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
ARG ICU_ENABLED=false | ||
|
||
FROM ubuntu:22.04 AS dwh-migration-tools-base | ||
RUN apt-get update -y && apt-get install -y \ | ||
curl \ | ||
git \ | ||
python3-pip | ||
# See https://cloud.google.com/sdk/docs/install | ||
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" \ | ||
| tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg \ | ||
| apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - \ | ||
&& apt-get update -y \ | ||
&& apt-get install -y google-cloud-cli | ||
WORKDIR /workspace | ||
RUN git clone -b main https://github.com/google/dwh-migration-tools \ | ||
&& cp -R dwh-migration-tools/client/examples/teradata/sql project | ||
|
||
FROM dwh-migration-tools-base AS dwh-migration-tools-icu-false | ||
RUN python3 -m pip install dwh-migration-tools/client | ||
|
||
FROM dwh-migration-tools-base AS dwh-migration-tools-icu-true | ||
RUN apt-get install -y \ | ||
libicu-dev \ | ||
pkg-config | ||
RUN python3 -m pip install dwh-migration-tools/client[icu] | ||
|
||
FROM dwh-migration-tools-icu-${ICU_ENABLED} | ||
RUN rm -rf /var/lib/apt/lists/* | ||
WORKDIR /workspace/project | ||
ENV BQMS_VERBOSE="True" | ||
ENV BQMS_MULTITHREADED="True" | ||
|
||
ENTRYPOINT [ "/workspace/project/run.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[google-cloud-cli] | ||
name=Google Cloud CLI | ||
baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el9-x86_64 | ||
enabled=1 | ||
gpgcheck=1 | ||
repo_gpgcheck=0 | ||
gpgkey=https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg |