Skip to content

Commit a38c8b4

Browse files
author
Jan Kratochvil
committed
Make it running on Fedora
- fixes CRaC#4 - I understand it is not an acceptable platform-agnostic fix
1 parent c6f19bd commit a38c8b4

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

Dockerfile.baseline

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:18.04
1+
FROM fedora
22

33
COPY jdk /jdk
44

Dockerfile.checkpoint

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
FROM ubuntu:18.04 as builder
1+
FROM fedora as builder
22

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

87
COPY jdk /jdk
98

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

1514

16-
FROM ubuntu:18.04
15+
FROM fedora
1716

18-
RUN apt update && \
19-
DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends install liblz4-tool && \
20-
apt clean && \
21-
rm -rf /var/lib/apt /var/cache/apt
17+
RUN dnf -y update && \
18+
dnf -y install lz4 && \
19+
dnf clean all
2220

2321
COPY --from=builder /jdk /jdk
2422
COPY prepare-jdk.cmd.sh /

Dockerfile.restore

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
FROM ubuntu:18.04 as builder
1+
FROM fedora as builder
22

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

87
COPY cr /cr
98
RUN tar -c /cr | lz4 -z -9 - /cr.tar.lz4

0 commit comments

Comments
 (0)