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
25 changes: 25 additions & 0 deletions src/persist-cli/ci-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0.

# This is a separate mzimage from maelstrom-persist so that we don't have to
# re-install the apt things or maelstrom every time we get a CI builder with a
# cold cache.

MZFROM ubuntu-base

RUN apt-get update && TZ=UTC DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bzip2 \
curl \
git \
gnuplot \
openjdk-11-jre

RUN mkdir -p /usr/local/share/java \
&& curl -fsSL https://github.com/jepsen-io/maelstrom/releases/download/v0.2.1/maelstrom.tar.bz2 \
| tar -xj --strip-components=2 -C /usr/local/share/java maelstrom/lib/maelstrom.jar
10 changes: 10 additions & 0 deletions src/persist-cli/ci-base/mzbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0.

name: maelstrom-persist-base
13 changes: 1 addition & 12 deletions src/persist-cli/ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,7 @@
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0.

MZFROM ubuntu-base

RUN apt-get update && TZ=UTC DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bzip2 \
curl \
git \
gnuplot \
openjdk-11-jre

RUN mkdir -p /usr/local/share/java \
&& curl -fsSL https://github.com/jepsen-io/maelstrom/releases/download/v0.2.1/maelstrom.tar.bz2 \
| tar -xj --strip-components=2 -C /usr/local/share/java maelstrom/lib/maelstrom.jar
MZFROM maelstrom-persist-base

COPY persistcli /usr/local/bin/persistcli

Expand Down