Skip to content

Commit

Permalink
Adding containerfile for tools
Browse files Browse the repository at this point in the history
PR is dependant with containers#210

Signed-off-by: Yariv Rachmani <[email protected]>
  • Loading branch information
Yarboa committed Sep 28, 2023
1 parent a378056 commit 319a1a6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/e2e/tools/FFI/ContainerFile.tools
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM quay.io/centos/centos:stream9
RUN dnf install -y \
dnf-plugin-config-manager \
epel-release
RUN dnf config-manager -y --set-enabled crb

RUN dnf install -y \
gcc

RUN mkdir -p /root/tests/FFI/src /root/tests/FFI/bin

COPY ./memory/ASIL/20_percent_memory_eat.c /root/tests/FFI/src/
COPY ./memory/QM/90_percent_memory_eat.c /root/tests/FFI/src/
COPY ./disk/file-allocate.c /root/tests/FFI/src/

RUN cd /root/tests/FFI/src && gcc -o ../bin/20_percent_memory_eat 20_percent_memory_eat.c
RUN cd /root/tests/FFI/src && gcc -o ../bin/90_percent_memory_eat 90_percent_memory_eat.c
RUN cd /root/tests/FFI/src && gcc -o ../bin/file-allocate file-allocate.c

WORKDIR /root/tests/FFI/bin

0 comments on commit 319a1a6

Please sign in to comment.