Skip to content
Snippets Groups Projects
Commit 8ecb641d authored by Alexandre Lossent's avatar Alexandre Lossent
Browse files

Merge branch 'v1.5.0' into 'master'

Updated SDK to v1.5.0 OC to v1.7.0 GO to v1.16.2 and BATS to v1.3.0

See merge request !3
parents a10af855 b5cbbc38
No related branches found
No related tags found
1 merge request!3Updated SDK to v1.5.0 OC to v1.7.0 GO to v1.16.2 and BATS to v1.3.0
Pipeline #2408334 passed
FROM centos:8
ENV RELEASE_VERSION=v0.19.3 \
OKD4_VERSION=4.5.0-0.okd-2020-09-04-180756 \
GO_VERSION=1.15 \
BATS_VERSION=1.2.1\
ENV RELEASE_VERSION=v1.5.0 \
OKD4_VERSION=4.7.0-0.okd-2021-03-07-090821 \
GO_VERSION=1.16.2 \
BATS_VERSION=1.3.0\
# Telling the container where to find the Go executable binaries
PATH=$PATH:/usr/local/go/bin
RUN yum install -y ncurses gettext && \
# Downloading operator-sdk
curl -LO https://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu && \
curl -LO https://github.com/operator-framework/operator-sdk/releases/download/${RELEASE_VERSION}/operator-sdk_linux_amd64 && \
# Downloading openshift-cli
curl -L https://github.com/openshift/okd/releases/download/${OKD4_VERSION}/openshift-client-linux-${OKD4_VERSION}.tar.gz | tar xvz && \
# Downloading go, needed by most commands of operator-sdk
......@@ -17,13 +17,10 @@ RUN yum install -y ncurses gettext && \
# Downlaoding bats, testing framework for shell
curl -L https://github.com/bats-core/bats-core/archive/v${BATS_VERSION}.tar.gz | tar xvz && \
# Installing bats
./bats-core-${BATS_VERSION}/install.sh /usr/local && rm -rf ./bats-core-${BATS_VERSION}/ &&\
./bats-core-${BATS_VERSION}/install.sh /usr/local && rm -rf ./bats-core-${BATS_VERSION}/ && \
# Setting up operator-sdk
chmod +x operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu && mkdir -p /usr/local/bin/ && cp operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu /usr/local/bin/operator-sdk && rm operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu && \
chmod +x operator-sdk_linux_amd64 && mkdir -p /usr/local/bin/ && cp operator-sdk_linux_amd64 /usr/local/bin/operator-sdk && rm operator-sdk_linux_amd64 && \
# Setting up openshift-cli
cp ./oc /usr/local/bin && rm oc && \
# Installing modules necessary for Ansible operators
dnf install -y python3-pip python3-devel gcc && \
pip-3 install ansible ansible-runner ansible-runner-http openshift kubernetes jmespath
cp ./oc /usr/local/bin && rm oc
CMD ["/usr/local/bin/operator-sdk"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment