From 75142f0cde1b840063753a34253c376b76747b3e Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 17 Apr 2021 22:43:14 +0200 Subject: [PATCH] Add Dockerfile for Fedora --- docker/fedora.Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docker/fedora.Dockerfile diff --git a/docker/fedora.Dockerfile b/docker/fedora.Dockerfile new file mode 100644 index 000000000..65f6d9528 --- /dev/null +++ b/docker/fedora.Dockerfile @@ -0,0 +1,27 @@ +FROM fedora:latest + +RUN dnf install --assumeyes \ + cmake \ + gcc-c++ \ + git-core \ + ncurses-devel \ + ninja-build \ + python3 \ + python3-pip \ + openssl \ + sudo + +RUN pip3 install pexpect + +RUN groupadd -g 1000 fishuser \ + && useradd -p $(openssl passwd -1 fish) -d /home/fishuser -m -u 1000 -g 1000 fishuser -G wheel \ + && mkdir -p /home/fishuser/fish-build \ + && mkdir /fish-source \ + && chown -R fishuser:fishuser /home/fishuser /fish-source + +USER fishuser +WORKDIR /home/fishuser + +COPY fish_run_tests.sh / + +CMD /fish_run_tests.sh