Skip to content

Commit f083d84

Browse files
authored
chore: Update kona + asterisc in op-challenger image (#15394)
## Overview Updates the `op-challenger` image to use the latest `kona` and `asterisc` versions. Since it was last updated, `kona-fpp-asterisc` has been deprecated in favor of a `kona-host` image that does not distribute `asterisc`. Also removes the deprecated `proofs-tools` image + the associated docker bake target.
1 parent d032aea commit f083d84

File tree

7 files changed

+19
-74
lines changed

7 files changed

+19
-74
lines changed

.circleci/config.yml

+1-24
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,6 @@ workflows:
18751875
- op-dispute-mon-docker-build
18761876
- op-program-docker-build
18771877
- op-supervisor-docker-build
1878-
- proofs-tools-docker-build
18791878
- go-tests
18801879
- sanitize-op-program
18811880
context:
@@ -1893,7 +1892,6 @@ workflows:
18931892
- op-program
18941893
- op-proposer
18951894
- op-challenger
1896-
- proofs-tools
18971895
- op-dispute-mon
18981896
- op-conductor
18991897
- da-server
@@ -1974,7 +1972,7 @@ workflows:
19741972
type: approval
19751973
filters:
19761974
tags:
1977-
only: /^(da-server|proofs-tools|cannon|ufm-[a-z0-9\-]*|op-[a-z0-9\-]*)\/v.*/
1975+
only: /^(da-server|cannon|ufm-[a-z0-9\-]*|op-[a-z0-9\-]*)\/v.*/
19781976
branches:
19791977
ignore: /.*/
19801978
# Standard (medium) cross-platform docker images go here
@@ -2041,27 +2039,6 @@ workflows:
20412039
- op-dripper-docker-release
20422040
context:
20432041
- circleci-repo-readonly-authenticated-github-token
2044-
# Standard (xlarge) AMD-only docker images go here
2045-
- docker-build:
2046-
matrix:
2047-
parameters:
2048-
docker_name:
2049-
- proofs-tools
2050-
name: <<matrix.docker_name>>-docker-release
2051-
resource_class: xlarge
2052-
docker_tags: <<pipeline.git.revision>>
2053-
publish: true
2054-
release: true
2055-
filters:
2056-
tags:
2057-
only: /^<<matrix.docker_name>>\/v.*/
2058-
branches:
2059-
ignore: /.*/
2060-
context:
2061-
- oplabs-gcr-release
2062-
- discord
2063-
requires:
2064-
- hold
20652042
- cannon-prestate:
20662043
filters:
20672044
tags:

docker-bake.hcl

+6-13
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ variable "REPOSITORY" {
77
}
88

99
variable "KONA_VERSION" {
10-
default = "kona-client-v0.1.0-beta.8"
10+
default = "0.1.0-beta.15"
11+
}
12+
13+
variable "ASTERISC_VERSION" {
14+
default = "v1.2.0"
1115
}
1216

1317
variable "GIT_COMMIT" {
@@ -129,6 +133,7 @@ target "op-challenger" {
129133
GIT_DATE = "${GIT_DATE}"
130134
OP_CHALLENGER_VERSION = "${OP_CHALLENGER_VERSION}"
131135
KONA_VERSION="${KONA_VERSION}"
136+
ASTERISC_VERSION="${ASTERISC_VERSION}"
132137
}
133138
target = "op-challenger-target"
134139
platforms = split(",", PLATFORMS)
@@ -212,18 +217,6 @@ target "cannon" {
212217
tags = [for tag in split(",", IMAGE_TAGS) : "${REGISTRY}/${REPOSITORY}/cannon:${tag}"]
213218
}
214219

215-
target "proofs-tools" {
216-
dockerfile = "./ops/docker/proofs-tools/Dockerfile"
217-
context = "."
218-
args = {
219-
CHALLENGER_VERSION="b46bffed42db3442d7484f089278d59f51503049"
220-
KONA_VERSION="${KONA_VERSION}"
221-
}
222-
target="proofs-tools"
223-
platforms = split(",", PLATFORMS)
224-
tags = [for tag in split(",", IMAGE_TAGS) : "${REGISTRY}/${REPOSITORY}/proofs-tools:${tag}"]
225-
}
226-
227220
target "holocene-deployer" {
228221
dockerfile = "./packages/contracts-bedrock/scripts/upgrades/holocene/upgrade.dockerfile"
229222
context = "./packages/contracts-bedrock/scripts/upgrades/holocene"

kurtosis-devnet/justfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ _docker_build_stack TAG TARGET *ARGS: (_docker_build TAG TARGET "../" "ops/docke
5757
cannon-image TAG='cannon:devnet': (_docker_build_stack TAG "cannon-target")
5858
da-server-image TAG='da-server:devnet': (_docker_build_stack TAG "da-server-target")
5959
op-batcher-image TAG='op-batcher:devnet': (_docker_build_stack TAG "op-batcher-target")
60-
# TODO: this is a temporary hack to get the kona version right.
60+
# TODO: this is a temporary hack to get the kona + asterisc version right.
6161
# Ideally the Dockerfile should be self-sufficient (right now we depend on
6262
# docker-bake.hcl to do the right thing).
63-
op-challenger-image TAG='op-challenger:devnet': (_docker_build_stack TAG "op-challenger-target" "--build-arg" "KONA_VERSION=kona-client-v0.1.0-beta.6")
63+
op-challenger-image TAG='op-challenger:devnet': (_docker_build_stack TAG "op-challenger-target" "--build-arg" "KONA_VERSION=0.1.0-beta.15" "--build-arg" "ASTERISC_VERSION=v1.2.0")
6464
op-conductor-image TAG='op-conductor:devnet': (_docker_build_stack TAG "op-conductor-target")
6565
op-deployer-image TAG='op-deployer:devnet': (_docker_build_stack TAG "op-deployer-target")
6666
op-dispute-mon-image TAG='op-dispute-mon:devnet': (_docker_build_stack TAG "op-dispute-mon-target")

ops/docker/op-stack-go/Dockerfile

+9-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ ARG UBUNTU_TARGET_BASE_IMAGE=ubuntu:22.04
1616
# The only build that uses this is `op-challenger-target`.
1717
ARG KONA_VERSION=none
1818

19+
# The version of asterisc to use.
20+
# The only build that uses this is `op-challenger-target`.
21+
ARG ASTERISC_VERSION=none
22+
1923
# We may be cross-building for another platform. Specify which platform we need as builder.
2024
FROM --platform=$BUILDPLATFORM golang:1.22.7-alpine3.20 AS builder
2125

@@ -158,8 +162,10 @@ FROM $TARGET_BASE_IMAGE AS op-node-target
158162
COPY --from=op-node-builder /app/op-node/bin/op-node /usr/local/bin/
159163
CMD ["op-node"]
160164

161-
# Make the kona docker image published by upstream available as a source to copy kona and asterisc from.
162-
FROM ghcr.io/op-rs/kona/kona-fpp-asterisc:$KONA_VERSION AS kona
165+
# Make the kona docker image published by upstream available as a source to copy kona from.
166+
FROM ghcr.io/op-rs/kona/kona-host:$KONA_VERSION AS kona
167+
# Make the asterisc docker image published by upstream available as a source to copy asterisc from.
168+
FROM us-docker.pkg.dev/oplabs-tools-artifacts/images/asterisc:$ASTERISC_VERSION AS asterisc
163169

164170
# Also produce an op-challenger loaded with kona and asterisc using ubuntu
165171
FROM $UBUNTU_TARGET_BASE_IMAGE AS op-challenger-target
@@ -173,7 +179,7 @@ ENV OP_CHALLENGER_CANNON_BIN=/usr/local/bin/cannon
173179
# Copy in kona and asterisc
174180
COPY --from=kona /kona-host /usr/local/bin/
175181
ENV OP_CHALLENGER_ASTERISC_KONA_SERVER=/usr/local/bin/kona-host
176-
COPY --from=kona /asterisc /usr/local/bin/
182+
COPY --from=asterisc /usr/local/bin/asterisc /usr/local/bin/
177183
ENV OP_CHALLENGER_ASTERISC_BIN=/usr/local/bin/asterisc
178184
CMD ["op-challenger"]
179185

ops/docker/proofs-tools/Dockerfile

-23
This file was deleted.

ops/docker/proofs-tools/README.md

-8
This file was deleted.

ops/scripts/ci-docker-tag-op-stack-release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DOCKER_REPO=$1
66
GIT_TAG=$2
77
GIT_SHA=$3
88

9-
IMAGE_NAME=$(echo "$GIT_TAG" | grep -Eow '^(da-server|proofs-tools|holocene-deployer|cannon|ufm-[a-z0-9\-]*|op-[a-z0-9\-]*)' || true)
9+
IMAGE_NAME=$(echo "$GIT_TAG" | grep -Eow '^(da-server|holocene-deployer|cannon|ufm-[a-z0-9\-]*|op-[a-z0-9\-]*)' || true)
1010
if [ -z "$IMAGE_NAME" ]; then
1111
echo "image name could not be parsed from git tag '$GIT_TAG'"
1212
exit 1

0 commit comments

Comments
 (0)