Skip to content

Commit f242208

Browse files
authored
Merge pull request #21805 from danhhz/persist_cli_docker
persist: split out a maelstrom-persist-base mzimage
2 parents 1681175 + e80de9c commit f242208

File tree

3 files changed

+36
-12
lines changed

3 files changed

+36
-12
lines changed

src/persist-cli/ci-base/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright Materialize, Inc. and contributors. All rights reserved.
2+
#
3+
# Use of this software is governed by the Business Source License
4+
# included in the LICENSE file at the root of this repository.
5+
#
6+
# As of the Change Date specified in that file, in accordance with
7+
# the Business Source License, use of this software will be governed
8+
# by the Apache License, Version 2.0.
9+
10+
# This is a separate mzimage from maelstrom-persist so that we don't have to
11+
# re-install the apt things or maelstrom every time we get a CI builder with a
12+
# cold cache.
13+
14+
MZFROM ubuntu-base
15+
16+
RUN apt-get update && TZ=UTC DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
17+
bzip2 \
18+
curl \
19+
git \
20+
gnuplot \
21+
openjdk-11-jre
22+
23+
RUN mkdir -p /usr/local/share/java \
24+
&& curl -fsSL https://github.com/jepsen-io/maelstrom/releases/download/v0.2.1/maelstrom.tar.bz2 \
25+
| tar -xj --strip-components=2 -C /usr/local/share/java maelstrom/lib/maelstrom.jar
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright Materialize, Inc. and contributors. All rights reserved.
2+
#
3+
# Use of this software is governed by the Business Source License
4+
# included in the LICENSE file at the root of this repository.
5+
#
6+
# As of the Change Date specified in that file, in accordance with
7+
# the Business Source License, use of this software will be governed
8+
# by the Apache License, Version 2.0.
9+
10+
name: maelstrom-persist-base

src/persist-cli/ci/Dockerfile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,7 @@
77
# the Business Source License, use of this software will be governed
88
# by the Apache License, Version 2.0.
99

10-
MZFROM ubuntu-base
11-
12-
RUN apt-get update && TZ=UTC DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
13-
bzip2 \
14-
curl \
15-
git \
16-
gnuplot \
17-
openjdk-11-jre
18-
19-
RUN mkdir -p /usr/local/share/java \
20-
&& curl -fsSL https://github.com/jepsen-io/maelstrom/releases/download/v0.2.1/maelstrom.tar.bz2 \
21-
| tar -xj --strip-components=2 -C /usr/local/share/java maelstrom/lib/maelstrom.jar
10+
MZFROM maelstrom-persist-base
2211

2312
COPY persistcli /usr/local/bin/persistcli
2413

0 commit comments

Comments
 (0)