Skip to content

Commit

Permalink
Merge pull request #1863 from code-elinka/multiarch
Browse files Browse the repository at this point in the history
Change e2e-test dockerfile
  • Loading branch information
k8s-ci-robot authored Feb 15, 2023
2 parents 41b2aa7 + 094724c commit 394ae02
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions Dockerfile.e2e-test
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,26 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM debian:9
# Check End of Life Date wiki.debian.org/DebianReleases
# and replace with a new one if needed
FROM debian:11

ADD bin/ARG_ARCH/ARG_BIN /ARG_BIN
ARG CLOUD_SDK_VERSION="416.0.0-0"
ENV CLOUD_SDK_VERSION=$CLOUD_SDK_VERSION

COPY cmd/e2e-test/run.sh /run.sh
RUN apt-get update && apt-get install -y curl python
RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-206.0.0-linux-x86_64.tar.gz | tar -zxf -

# Download Google Cloud GPG and install google-cloud-cli
# See recommended instructions:
# cloud.google.com/sdk/docs/install#installation_instructions
RUN apt-get update && \
apt-get install -y curl python apt-transport-https ca-certificates gnupg && \
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 google-cloud-cli=$CLOUD_SDK_VERSION -y

ENTRYPOINT ["/run.sh"]

0 comments on commit 394ae02

Please sign in to comment.