Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .containerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build/

.git/
.github/
.gitignore

.vscode/
.idea/

.containerignore
Containerfile

.clang*
*.py
19 changes: 17 additions & 2 deletions containers/Containerfile.debian
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
FROM debian:12 AS builder

RUN apt-get update && apt-get install -y \
build-essential \
cmake

WORKDIR /app
COPY . .

RUN mkdir build && cd build && \
cmake .. && \
make -j$(nproc) && \
cpack -G DEB

FROM debian:12

RUN apt-get update && apt-get install -y man man-db less

COPY ../build/out/*.deb .
RUN dpkg -i $(ls *.deb | head -n1) && rm -f ./*.deb
COPY --from=builder /app/build/out/*.deb /tmp/

RUN dpkg -i /tmp/*.deb && rm -rf /tmp/*.deb

RUN groupadd unprivileged-group && \
useradd -g unprivileged-group -N -m unprivileged-user
Expand Down
22 changes: 20 additions & 2 deletions containers/Containerfile.fedora
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
FROM fedora:42 AS builder

RUN dnf install -y \
gcc-c++ \
cmake \
make \
rpm-build

WORKDIR /app
COPY . .

RUN mkdir build && cd build && \
cmake .. && \
make -j$(nproc) && \
cpack -G RPM

FROM fedora:42

RUN dnf install -y man man-pages man-db less --setopt='tsflags='

COPY ../build/out/*.rpm .
RUN dnf install -y $(ls *.rpm | head -n1) --setopt='tsflags=' && rm -rf ./*.rpm
COPY --from=builder /app/build/out/*.rpm /tmp/

RUN dnf install -y /tmp/*.rpm --setopt='tsflags=' && \
rm -rf /tmp/*.rpm

RUN groupadd unprivileged-group && \
useradd -g unprivileged-group -N -m unprivileged-user
Expand Down
1 change: 1 addition & 0 deletions src/prngs/mersenne_twister.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "mersenne_twister.hpp"
#include "prng.hpp"
#include <cstddef>
#include <cstdint>
#include <limits>
#include <vector>
Expand Down
Loading