Skip to content

Commit 1f8141e

Browse files
Add just docker-local-fedora as temporary solution to iterate fast locally on e2e tests.
1 parent 8c2435f commit 1f8141e

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

docker/local-fedora.Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2023 - 2024 Restate Software, Inc., Restate GmbH.
2+
# All rights reserved.
3+
#
4+
# Use of this software is governed by the Business Source License
5+
# included in the LICENSE file.
6+
#
7+
# As of the Change Date specified in that file, in accordance with
8+
# the Business Source License, use of this software will be governed
9+
# by the Apache License, Version 2.0.
10+
11+
# We do not need the Rust toolchain to run the server binary!
12+
FROM fedora:latest
13+
14+
# Copy the locally built restate-server binary
15+
COPY restate-server /usr/local/bin
16+
17+
WORKDIR /
18+
ENTRYPOINT ["/usr/local/bin/restate-server"]

justfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@ docker-debug:
141141
# podman builds do not work without --platform set, even though it claims to default to host arch
142142
docker buildx build . --platform linux/{{ _docker_arch }} --file docker/debug.Dockerfile --tag={{ docker_image }} --progress='{{ DOCKER_PROGRESS }}' --build-arg RESTATE_FEATURES={{ features }} --load
143143

144+
docker-local-fedora:
145+
# Build the restate-server binary locally
146+
just arch={{ _arch }} features={{ features }} build -p restate-server
147+
# Move the binary to the location expected by the Dockerfile
148+
cp target/debug/restate-server restate-server
149+
# Build the Docker image using the local.Dockerfile
150+
docker buildx build . --platform linux/{{ _docker_arch }} --file docker/local-fedora.Dockerfile --tag={{ docker_image }} --progress='{{ DOCKER_PROGRESS }}' --load
151+
144152
notice-file:
145153
cargo license -d -a --avoid-build-deps --avoid-dev-deps {{ _features }} | (echo "Restate Runtime\nCopyright (c) 2023 - 2025 Restate Software, Inc., Restate GmbH <code@restate.dev>\n" && cat) > NOTICE
146154

0 commit comments

Comments
 (0)