openstack-ironic/tools/vnc-container/Containerfile.centos
Steve Baker 856238c56a Switch graphical console image to ubuntu by default
The centos Containerfile still exists and the launch scripts have been
adapted to work on both distros.

The ubuntu container has been tested with noble. The container built
in the CI jobs is bound to the version of ubuntu which the host is
running, which will provide functional testing validation when jobs are
moved to newer releases.

Change-Id: I1954e418543acf939bf65189121484e038f3737c
Signed-off-by: Steve Baker <sbaker@redhat.com>
Signed-off-by: Julia Kreger <juliaashleykreger@gmail.com>
2025-12-04 11:24:43 -08:00

32 lines
No EOL
832 B
Text

FROM quay.io/centos/centos:stream9
RUN dnf -y install \
epel-release && \
dnf -y install \
firefox \
dumb-init \
iproute \
procps \
psmisc \
python3-requests \
x11vnc \
xorg-x11-server-Xvfb && \
useradd --create-home --shell /bin/bash firefox
ENV DISPLAY_WIDTH=1280
ENV DISPLAY_HEIGHT=960
ENV APP='fake'
ENV APP_INFO={}
ENV READ_ONLY=False
ENV DEBUG=0
ENV FIREFOX=firefox
ENV FIREFOX_CONFIG_DIR=/home/firefox/.mozilla/firefox
ENV EXTENSION_PATH="/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/@ironic-console.openstack.org"
ADD bin/* /usr/local/bin
ADD drivers /drivers
ADD extension /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/@ironic-console.openstack.org
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/usr/local/bin/start-x11vnc.sh"]