Skip to content

Commit

Permalink
Make it running on Fedora
Browse files Browse the repository at this point in the history
 - fixes CRaC#4
 - I understand it is not an acceptable platform-agnostic fix
  • Loading branch information
Jan Kratochvil committed Jan 15, 2024
1 parent c6f19bd commit a38c8b4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.baseline
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM fedora

COPY jdk /jdk

Expand Down
18 changes: 8 additions & 10 deletions Dockerfile.checkpoint
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM ubuntu:18.04 as builder
FROM fedora as builder

RUN apt update && \
DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends install liblz4-tool && \
apt clean && \
rm -rf /var/lib/apt /var/cache/apt
RUN dnf -y update && \
dnf -y install lz4 && \
dnf clean all

COPY jdk /jdk

Expand All @@ -13,12 +12,11 @@ RUN LIBJVM=/jdk/lib/server/libjvm.so; \
ln -s /tmp/sub/$LIBJVM $LIBJVM


FROM ubuntu:18.04
FROM fedora

RUN apt update && \
DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends install liblz4-tool && \
apt clean && \
rm -rf /var/lib/apt /var/cache/apt
RUN dnf -y update && \
dnf -y install lz4 && \
dnf clean all

COPY --from=builder /jdk /jdk
COPY prepare-jdk.cmd.sh /
Expand Down
9 changes: 4 additions & 5 deletions Dockerfile.restore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM ubuntu:18.04 as builder
FROM fedora as builder

RUN apt update && \
DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends install liblz4-tool && \
apt clean && \
rm -rf /var/lib/apt /var/cache/apt
RUN dnf -y update && \
dnf -y install lz4 && \
dnf clean all

COPY cr /cr
RUN tar -c /cr | lz4 -z -9 - /cr.tar.lz4
Expand Down

0 comments on commit a38c8b4

Please sign in to comment.