Skip to content

Commit

Permalink
Create container for admins containing agv CLI (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
fridim authored Jun 27, 2024
1 parent f752710 commit 37d9d90
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
ENV agv_version=v0.8.1
FROM registry.access.redhat.com/ubi8/ubi:latest AS deploy
RUN dnf install -y \
bash \
bind-utils \
curl \
findutils \
gcc \
git \
jq \
nc \
net-tools \
libcurl-devel \
libxml2-devel \
openssl \
openssl-devel \
openssl \
python39 \
python39-pip \
rsync \
tar \
unzip \
vim \
wget \
&& dnf clean all

# Install agnosticv CLI
RUN curl --silent --location -o /usr/bin/agnosticv.${agv_version} \
https://github.com/redhat-cop/agnosticv/releases/download/${agv_version}/agnosticv_linux_amd64
RUN chmod +x /usr/bin/agnosticv.${agv_version}
RUN ln -s /usr/bin/agnosticv.${agv_version} /usr/bin/agnosticv

# Python

RUN alternatives --set python /usr/bin/python3.9 \
&& alternatives --set python3 /usr/bin/python3.9 \
&& alternatives --install /usr/bin/pip pip /usr/bin/pip3.9 1
RUN pip install --no-cache-dir --upgrade pip

RUN rm -rf /tmp/* /root/.cache /root/*
USER ${USER_UID}
CMD ["/bin/bash"]

ENV DESCRIPTION="Image for Admins containing AgnosticV CLI"
LABEL name="rhpds/agnosticv" \
maintainer="Red Hat Demo Platform" \
description="${DESCRIPTION}" \
summary="${DESCRIPTION}"

0 comments on commit 37d9d90

Please sign in to comment.