UNCLASSIFIED

Commit 488cb280 authored by bhearn's avatar bhearn
Browse files

add required libraries

parent bcd0bbe5
Pipeline #63150 passed with stages
in 13 minutes and 24 seconds
ARG BASE_REGISTRY=nexus-docker-secure.levelup-dev.io ARG BASE_REGISTRY=registry1.dsop.io
ARG BASE_IMAGE=redhat/ubi/ubi8 ARG BASE_IMAGE=ironbank/redhat/ubi/ubi8
ARG BASE_TAG=8.2 ARG BASE_TAG=8.2
FROM istio/install-cni:1.6.12 AS base FROM istio/install-cni:1.6.12 AS base
...@@ -13,11 +13,16 @@ LABEL org.opencontainers.image.title="install-cni" \ ...@@ -13,11 +13,16 @@ LABEL org.opencontainers.image.title="install-cni" \
org.opencontainers.image.version="1.6.12" \ org.opencontainers.image.version="1.6.12" \
maintainer="cht@dsop.io" maintainer="cht@dsop.io"
COPY jq-linux64 /
COPY --from=base /opt/cni/bin/istio-cni /opt/cni/bin/istio-iptables.sh /opt/cni/bin/istio-cni-repair /opt/cni/bin/ COPY --from=base /opt/cni/bin/istio-cni /opt/cni/bin/istio-iptables.sh /opt/cni/bin/istio-cni-repair /opt/cni/bin/
COPY --from=base /install-cni.sh /filter.jq / COPY --from=base /install-cni.sh /filter.jq /
COPY --from=base /istio-cni.conf.tmp host/etc/cni/net.d/ COPY --from=base /istio-cni.conf.tmp host/etc/cni/net.d/
RUN chmod 777 /host/etc/cni/net.d/istio-cni.conf.tmp
RUN chmod 777 /host/etc/cni/net.d/istio-cni.conf.tmp && \
dnf upgrade -y && \
dnf install -y jq hostname --setopt=tsflags=nodocs && \
dnf clean all && \
rm -rf /var/cache/dnf
ENV PATH=$PATH:/opt/cni/bin ENV PATH=$PATH:/opt/cni/bin
VOLUME /opt/cni VOLUME /opt/cni
WORKDIR /opt/cni/bin WORKDIR /opt/cni/bin
...@@ -26,4 +31,4 @@ USER 1001 ...@@ -26,4 +31,4 @@ USER 1001
############################################################### ###############################################################
HEALTHCHECK --interval=1m --start-period=30s CMD curl -f http://localhost:80 || exit 1 HEALTHCHECK --interval=1m --start-period=30s CMD curl -f http://localhost:80 || exit 1
############################################################### ###############################################################
CMD ["/install-cni.sh"] CMD ["/install-cni.sh"]
\ No newline at end of file
# install-cni # install-cni
1. Download the tarball from [Iron Bank](https://ironbank.dsop.io/ironbank/repomap/opensource/istio-1.6) and navigate to the location of the download.
2. Load the image directory (using istio-cni.tar.gz as an example tarball name):
``` ```
# Download the tarball from the Iron Bank repository and navigate to the docker load -i istio-cni.tar
# download directory. Run the following commands to run the container
# (using istio-cni.tar.gz as example tarball name):
podman load -i istio-cni.tar.gz
podman container run istio-cni
``` ```
Use the Istio Container Network Interface to configure and install an Use the Istio Container Network Interface to configure and install an
...@@ -19,6 +18,8 @@ fulfill this requirement ...@@ -19,6 +18,8 @@ fulfill this requirement
In the event that you wish to implement this with a helm chart, you must ensure In the event that you wish to implement this with a helm chart, you must ensure
that the chart is modified to utilize the install-cni image from the Iron Bank. that the chart is modified to utilize the install-cni image from the Iron Bank.
Please see [here](https://istio.io/v1.6/docs/setup/install/) for Istio 1.6 Installation Guides.
## Notes ## Notes
The container is configured to run as user 1001. The container is configured to run as user 1001.
\ No newline at end of file
--- ---
resources: resources:
- url: "docker://docker.io/istio/install-cni@sha256:5c25b4dded8e9dcd688d018c72b38c03a77d72c32fec4500e3737a12084e683f" - url: "docker://docker.io/istio/install-cni@sha256:5c25b4dded8e9dcd688d018c72b38c03a77d72c32fec4500e3737a12084e683f"
tag: "istio/install-cni:1.6.12" tag: "istio/install-cni:1.6.12"
- url: https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \ No newline at end of file
filename: jq-linux64
validation:
type: sha256
value: af986793a515d500ab2d35f8d2aecd656e764504b789b66d7e1a0b727a124c44
{ {
"assignees": ["@gavin.scallon"], "assignees": ["@bhearn"],
"baseBranches": ["development"], "baseBranches": ["development"],
"packageRules": [ "packageRules": [
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment