From b8e40ff04c52e404a980a7dada33c15440febbef Mon Sep 17 00:00:00 2001 From: Alex Knigge Date: Wed, 25 Jun 2025 21:30:18 +0000 Subject: [PATCH 1/3] adding dockerfile for dev container --- Dockerfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4bb2e96 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM registry.redhat.io/ubi9/ubi:latest + +# Set working directory to make things cleaner +WORKDIR /app + +# Install Base OS Dependencies +RUN dnf update -y && \ + dnf install -y \ + python3.12 \ + git && \ + dnf clean all + +RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 + +RUN python3 --version + +# Create a venv for canary to run in +RUN python3 -m venv canary_venv && \ + . /app/canary_venv/bin/activate && \ + /app/canary_venv/bin/python3 -m pip install --upgrade pip==25.1.1 + +# Install canary into the venv (for developers) +RUN /app/canary_venv/bin/python3 -m pip install -e git+https://github.com/sandialabs/canary#egg=canary-wm[dev] + +# Set working direcotry inside of the venv canary-wm dev src +WORKDIR /app/canary_venv/src/canary-wm/ + +# Make sure the virtual environment is being used +ENTRYPOINT ["/bin/bash", "-c", "source /app/canary_venv/bin/activate && exec /bin/bash"] + +# Commands to run canary tests +CMD ["canary", "run"] From 62427927afcca306917242926077803e131d3ecc Mon Sep 17 00:00:00 2001 From: Alex Knigge Date: Wed, 25 Jun 2025 21:33:06 +0000 Subject: [PATCH 2/3] removing to do merge request --- Dockerfile | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 4bb2e96..0000000 --- a/Dockerfile +++ /dev/null @@ -1,32 +0,0 @@ -FROM registry.redhat.io/ubi9/ubi:latest - -# Set working directory to make things cleaner -WORKDIR /app - -# Install Base OS Dependencies -RUN dnf update -y && \ - dnf install -y \ - python3.12 \ - git && \ - dnf clean all - -RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 - -RUN python3 --version - -# Create a venv for canary to run in -RUN python3 -m venv canary_venv && \ - . /app/canary_venv/bin/activate && \ - /app/canary_venv/bin/python3 -m pip install --upgrade pip==25.1.1 - -# Install canary into the venv (for developers) -RUN /app/canary_venv/bin/python3 -m pip install -e git+https://github.com/sandialabs/canary#egg=canary-wm[dev] - -# Set working direcotry inside of the venv canary-wm dev src -WORKDIR /app/canary_venv/src/canary-wm/ - -# Make sure the virtual environment is being used -ENTRYPOINT ["/bin/bash", "-c", "source /app/canary_venv/bin/activate && exec /bin/bash"] - -# Commands to run canary tests -CMD ["canary", "run"] From 42976f9fd49c08c00c85030eb083bf7f7fda7cce Mon Sep 17 00:00:00 2001 From: Alex Knigge Date: Wed, 25 Jun 2025 21:36:48 +0000 Subject: [PATCH 3/3] adding dockerfile for dev container --- Dockerfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4bb2e96 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM registry.redhat.io/ubi9/ubi:latest + +# Set working directory to make things cleaner +WORKDIR /app + +# Install Base OS Dependencies +RUN dnf update -y && \ + dnf install -y \ + python3.12 \ + git && \ + dnf clean all + +RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 + +RUN python3 --version + +# Create a venv for canary to run in +RUN python3 -m venv canary_venv && \ + . /app/canary_venv/bin/activate && \ + /app/canary_venv/bin/python3 -m pip install --upgrade pip==25.1.1 + +# Install canary into the venv (for developers) +RUN /app/canary_venv/bin/python3 -m pip install -e git+https://github.com/sandialabs/canary#egg=canary-wm[dev] + +# Set working direcotry inside of the venv canary-wm dev src +WORKDIR /app/canary_venv/src/canary-wm/ + +# Make sure the virtual environment is being used +ENTRYPOINT ["/bin/bash", "-c", "source /app/canary_venv/bin/activate && exec /bin/bash"] + +# Commands to run canary tests +CMD ["canary", "run"]