Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Changed base image to UBI8.
Browse files Browse the repository at this point in the history
It appears as if sshpass is no longer required. Because of this, an
unentitled build on UBI 8 is possible. Telnet was also removed to
support this move. Telnet was only used as a debugging tool and never
required for the operation of faros.

Newest Ansible prefers Python 3.8 so that was updated.

Newest PIP prefers to be called as a Python modules rather than
directly. So that was changed. Also updating to the latest pip and wheel
packages to ensure dependencies continue to build nicely.
  • Loading branch information
rmkraus committed Jun 29, 2021
1 parent 17217ad commit 32ec6a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM registry.fedoraproject.org/fedora-minimal:33
# FROM registry.fedoraproject.org/fedora-minimal:33
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
LABEL maintainer="Ryan Kraus (rkraus@redhat.com)"

# setup third party install locations
Expand All @@ -14,8 +15,9 @@ COPY version.txt /version.txt
COPY requirements.txt /deps/python_requirements.txt
COPY requirements.yml /deps/ansible_requirements.yml
RUN microdnf -y update; \
microdnf -y install python3 jq openssh-clients tar sshpass findutils telnet less ncurses; \
pip3 install --user -r /deps/python_requirements.txt; \
microdnf -y install python38 jq openssh-clients tar findutils less ncurses; \
python3 -m pip install --upgrade pip wheel; \
python3 -m pip install --user -r /deps/python_requirements.txt; \
ansible-galaxy collection install -r /deps/ansible_requirements.yml; \
microdnf clean all; \
rm -rf /var/cache/yum /tmp/* /root/.cache /usr/lib/python3.8/site-packages /usr/lib64/python3.8/__pycache__;
Expand Down

0 comments on commit 32ec6a2

Please sign in to comment.