-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cleanup of toolbox and utils * reverted
- Loading branch information
1 parent
fb6e6c0
commit 9cf19f3
Showing
12 changed files
with
165 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ansible-core==2.16.2 |
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,28 +1,66 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
# Builder | ||
FROM registry.access.redhat.com/ubi8/ubi:8.9 AS builder | ||
|
||
LABEL io.k8s.description="OCP Bats" | ||
LABEL io.k8s.display-name="OCP Bats" | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
ARG BATS_VERSION=1.2.1 | ||
ARG HELM_VERSION=3.5.2 | ||
# renovate: datasource=repology depName=homebrew/openshift-cli | ||
ARG OC_VERSION=4.14.3 | ||
# renovate: datasource=github-releases depName=stedolan/jq | ||
ARG JQ_VERSION=1.6 | ||
ARG OC_VERSION=4.7 | ||
ARG YQ_VERSION=3.4.1 | ||
|
||
RUN microdnf install -y gzip tar ncurses && \ | ||
microdnf clean all && \ | ||
curl -L https://github.com/bats-core/bats-core/archive/v${BATS_VERSION}.tar.gz | tar -C /tmp -xzf - && \ | ||
/tmp/bats-core-${BATS_VERSION}/install.sh /opt/bats && \ | ||
rm -rf /tmp/bats-core-${BATS_VERSION} && \ | ||
ln -s /opt/bats/bin/bats /usr/local/bin/bats && \ | ||
curl -Lo /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 && \ | ||
# renovate: datasource=github-releases depName=helm/helm | ||
ARG HELM_VERSION=v3.11.3 | ||
# renovate: datasource=github-releases depName=mikefarah/yq | ||
ARG YQ_VERSION=v4.40.5 | ||
|
||
RUN curl -L "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OC_VERSION}/openshift-client-linux.tar.gz" -o /tmp/openshift-client-linux.tar.gz && \ | ||
tar --no-same-owner -xzf /tmp/openshift-client-linux.tar.gz && \ | ||
mv oc kubectl /usr/local/bin && \ | ||
oc version --client && \ | ||
kubectl version --client | ||
|
||
RUN curl -L "https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64" -o /usr/local/bin/jq && \ | ||
chmod +x /usr/local/bin/jq && \ | ||
curl -L https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz | tar --strip-components=1 -C /usr/local/bin -xzf - linux-amd64/helm && \ | ||
curl -Lo /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 && \ | ||
jq --version | ||
|
||
RUN curl -L "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" -o /tmp/helm.tar.gz && \ | ||
tar -xzf /tmp/helm.tar.gz && \ | ||
mv linux-amd64/helm /usr/local/bin/helm && \ | ||
helm version | ||
|
||
RUN curl -L "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" -o /usr/local/bin/yq && \ | ||
chmod +x /usr/local/bin/yq && \ | ||
curl -L http://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-${OC_VERSION}/openshift-client-linux.tar.gz | tar -C /usr/local/bin -xzf - && \ | ||
mkdir -p /code | ||
yq --version | ||
|
||
# Runnable | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9 | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
# renovate: datasource=github-releases depName=bats-core/bats-core | ||
ARG BATS_VERSION=v1.10.0 | ||
|
||
LABEL io.k8s.description="OCP Bats" | ||
LABEL io.k8s.display-name="OCP Bats" | ||
|
||
RUN microdnf install -y --nodocs gzip tar ncurses && \ | ||
microdnf clean all | ||
|
||
COPY --from=builder /usr/local/bin/oc /usr/local/bin/oc | ||
COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/kubectl | ||
COPY --from=builder /usr/local/bin/jq /usr/local/bin/jq | ||
COPY --from=builder /usr/local/bin/helm /usr/local/bin/helm | ||
COPY --from=builder /usr/local/bin/yq /usr/local/bin/yq | ||
|
||
RUN curl -L "https://github.com/bats-core/bats-core/archive/${BATS_VERSION}.tar.gz" -o /tmp/bats.tar.gz && \ | ||
tar -C /tmp -xzf /tmp/bats.tar.gz && \ | ||
ls -lrt /tmp && \ | ||
"/tmp/bats-core-${BATS_VERSION//v}/install.sh" /tmp/bats && \ | ||
ln -s /tmp/bats/bin/bats /usr/local/bin/bats && \ | ||
bats --version | ||
|
||
RUN mkdir -p /code | ||
|
||
WORKDIR /code | ||
|
||
USER 1001 | ||
ENTRYPOINT ["bats"] |
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,11 +1,7 @@ | ||
FROM registry.access.redhat.com/ubi8 | ||
FROM registry.access.redhat.com/ubi8/ubi:8.9 | ||
|
||
LABEL maintainer="Red Hat Services" | ||
|
||
# Update image | ||
RUN dnf update -y && rm -rf /var/cache/yum | ||
|
||
# Install packages | ||
RUN dnf install -y \ | ||
git \ | ||
&& dnf clean all | ||
RUN dnf update -y && \ | ||
dnf install -y --nodocs git && \ | ||
dnf clean all |
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,29 +1,13 @@ | ||
FROM registry.access.redhat.com/ubi8 | ||
FROM registry.access.redhat.com/ubi8/ubi:8.9 | ||
|
||
LABEL maintainer="Red Hat Services" | ||
|
||
# Update image | ||
RUN dnf update -y && rm -rf /var/cache/yum | ||
|
||
# Install packages | ||
RUN dnf install -y \ | ||
git \ | ||
python36 \ | ||
python3-pip \ | ||
python3-numpy \ | ||
python3-scipy \ | ||
python3-setuptools \ | ||
python3-six \ | ||
&& dnf clean all | ||
|
||
# Install Python modules | ||
RUN pip3 install --upgrade \ | ||
pip \ | ||
google-api-python-client \ | ||
google-auth-httplib2 \ | ||
google-auth-oauthlib \ | ||
oauth2client | ||
COPY requirements.txt /requirements.txt | ||
RUN dnf update -y && \ | ||
dnf install -y git python3.11 python3.11-pip python3.11-setuptools python3.11-numpy python3.11-scipy python3.11-six && \ | ||
dnf clean all && \ | ||
pip3.11 install --no-cache-dir -r /requirements.txt | ||
|
||
# Copy in custom helper scripts | ||
add ./root / | ||
COPY ./root / | ||
RUN chmod u+x /usr/local/bin/upload-file-to-google-drive |
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,4 @@ | ||
google-api-python-client | ||
google-auth-httplib2 | ||
google-auth-oauthlib | ||
oauth2client |