Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added oc and diff to batsconftest #22

Merged
merged 2 commits into from
Jul 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion confbatstest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL "com.github.actions.description"="Run conftest using BATS"
LABEL "com.github.actions.branding.icon"="monitor"
LABEL "com.github.actions.branding.color"="purple"

RUN microdnf install --assumeyes --nodocs tar wget python3 git findutils && \
RUN microdnf install --assumeyes --nodocs tar wget python3 git findutils diffutils && \
microdnf clean all

RUN export CONFTEST_VERSION=0.19.0 && \
Expand Down Expand Up @@ -37,6 +37,12 @@ RUN export JQ_VERSION=1.6 && \
ln -s /tmp/jq-linux64 /usr/local/bin/jq && \
jq --version

RUN export OC_VERSION=4.4 && \
wget --no-verbose https://mirror.openshift.com/pub/openshift-v4/clients/oc/${OC_VERSION}/linux/oc.tar.gz && \
tar -C /tmp -xzf oc.tar.gz && \
ln -s /tmp/oc /usr/local/bin/oc && \
oc version

RUN pip3 install yq && \
yq --version

Expand Down
1 change: 1 addition & 0 deletions confbatstest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ It also contains several tools which are used for JSON and YAML manipulation:
- helm
- jq
- yq
- oc

## Usage

Expand Down