Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
operator-sdk-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
paas-tools
operators
operator-sdk-client
Commits
b5cbbc38
Commit
b5cbbc38
authored
4 years ago
by
estevesm
Browse files
Options
Downloads
Patches
Plain Diff
Updated SDK to v1.5.0 OC to v1.7.0 GO to 1.16.2 and BATS to 1.3.0
parent
a10af855
Branches
Branches containing commit
No related tags found
1 merge request
!3
Updated SDK to v1.5.0 OC to v1.7.0 GO to v1.16.2 and BATS to v1.3.0
Pipeline
#2405998
passed
4 years ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+8
-11
8 additions, 11 deletions
Dockerfile
with
8 additions
and
11 deletions
Dockerfile
+
8
−
11
View file @
b5cbbc38
FROM
centos:8
ENV
RELEASE_VERSION=v
0.19.3
\
OKD4_VERSION=4.
5
.0-0.okd-202
0
-0
9
-0
4-180756
\
GO_VERSION=1.1
5
\
BATS_VERSION=1.
2.1
\
ENV
RELEASE_VERSION=v
1.5.0
\
OKD4_VERSION=4.
7
.0-0.okd-202
1
-0
3
-0
7-090821
\
GO_VERSION=1.1
6.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"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment