Skip to content

Commit 94625dc

Browse files
NathanFlurryMasterPtato
authored andcommitted
chore: fix merge conflicts
1 parent d916410 commit 94625dc

File tree

9 files changed

+33
-90
lines changed

9 files changed

+33
-90
lines changed

docker/dev-full/rivet-client/config.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"client": {
33
"runner": {
4-
"flavor": "container",
54
// Resource constraints are not supported in Docker
65
// TODO: Needs further investigation in to why nested cgroups v2 resource constraints aren't working
76
"use_resource_constraints": false,

docker/universal/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ RUN \
4747
--mount=type=cache,target=/root/.cache,id=universal-user-cache \
4848
--mount=type=cache,target=/root/.npm,id=universal-user-npm \
4949
--mount=type=cache,target=/root/.yarn,id=universal-user-yarn \
50-
RUSTFLAGS="--cfg tokio_unstable" RIVET_BUILD_HUB=0 cargo build --bin rivet-server --bin rivet-edge-server --bin rivet-guard --bin rivet-client --bin rivet-isolate-v8-runner --bin rivet-container-runner && \
50+
RUSTFLAGS="--cfg tokio_unstable" RIVET_BUILD_HUB=0 cargo build --bin rivet-server --bin rivet-edge-server --bin rivet-guard --bin rivet-client --bin rivet-container-runner && \
5151
# cargo install --locked tokio-console && \
5252
mkdir /app/dist/ && \
53-
cp target/debug/rivet-server target/debug/rivet-edge-server target/debug/rivet-guard target/debug/rivet-client target/debug/rivet-isolate-v8-runner target/debug/rivet-container-runner /app/dist/
53+
cp target/debug/rivet-server target/debug/rivet-edge-server target/debug/rivet-guard target/debug/rivet-client target/debug/rivet-container-runner /app/dist/
5454

5555
# MARK: Server (full, base)
5656
FROM debian:12.9-slim AS server-full-base
@@ -205,7 +205,7 @@ COPY ./docker/monolith/rivet-client /etc/rivet-client
205205

206206
# === Copy Build Artifacts ===
207207
COPY --from=builder /app/dist/rivet-server /usr/local/bin/
208-
COPY --from=builder /app/dist/rivet-client /app/dist/rivet-isolate-v8-runner /app/dist/rivet-container-runner /usr/local/bin/
208+
COPY --from=builder /app/dist/rivet-client /app/dist/rivet-container-runner /usr/local/bin/
209209

210210
VOLUME ["/data"]
211211

examples/system-test-actor/src/container/main.ts

Lines changed: 0 additions & 71 deletions
This file was deleted.

examples/system-test-actor/src/main.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,23 @@ createAndStartUdpServer();
2020
if (process.env.MULTI) {
2121
connectToManager();
2222
}
23+
24+
// TOOD: move this cleaner plac
25+
// async function contactApi() {
26+
// console.log('Contacting', process.env.RIVET_API_ENDPOINT);
27+
// const res = await fetch(process.env.RIVET_API_ENDPOINT!);
28+
// console.log('API response', res.ok, res.status);
29+
// }
30+
//
31+
// contactApi();
32+
33+
// TODO: Move this cleaner place
34+
// Print hosts file contents before starting
35+
// try {
36+
// const hostsContent = fs.readFileSync('/etc/hosts', 'utf8');
37+
// console.log('=== /etc/hosts contents ===');
38+
// console.log(hostsContent);
39+
// console.log('=== End of /etc/hosts ===');
40+
// } catch (err) {
41+
// console.error('Failed to read /etc/hosts:', err);
42+
// }

examples/system-test-actor/tests/client.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ async function run() {
4444
guard: {},
4545
},
4646
},
47-
// udp: {
48-
// protocol: "udp",
49-
// // internalPort: 80,
50-
// routing: {
51-
// host: {},
52-
// },
53-
// },
47+
udp: {
48+
protocol: "udp",
49+
// internalPort: 80,
50+
routing: {
51+
host: {},
52+
},
53+
},
5454
},
5555
},
5656
runtime: {

packages/core/services/cluster/src/workflows/server/install/install_scripts/files/pegboard_install.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ if [ "__FLAVOR__" = "container" ]; then
1919
chmod +x /usr/local/bin/rivet-container-runner
2020
fi
2121

22-
if [ "__FLAVOR__" = "isolate" ]; then
23-
echo 'Downloading pegboard isolate runner'
24-
curl -Lf -o /usr/local/bin/rivet-isolate-v8-runner "__ISOLATE_V8_RUNNER_BINARY_URL__"
25-
chmod +x /usr/local/bin/rivet-isolate-v8-runner
26-
fi
27-
2822
# For clarity
2923
FDB_VERSION="__FDB_VERSION__"
3024

packages/edge/infra/client/manager/src/runner/oci_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ fn mounts(opts: &ConfigOpts) -> Result<serde_json::Value> {
256256
{
257257
"destination": "/etc/hosts",
258258
"type": "bind",
259-
"source": opts.actor_path.join("hosts").to_str().context("hosts path")?,
259+
"source": opts.runner_path.join("hosts").to_str().context("hosts path")?,
260260
"options": ["rbind", "rprivate"]
261261
},
262262

packages/toolchain/toolchain/src/util/docker/build_remote.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ async fn poll_build_status(
655655
&ctx,
656656
crate::util::actor::logs::TailOpts {
657657
environment: CI_ENVIRONMENT_ID,
658-
actor_id,
658+
actor_id: actor_id.to_string(),
659659
stream: crate::util::actor::logs::LogStream::All,
660660
follow: true,
661661
print_type: crate::util::actor::logs::PrintType::Custom(

scripts/release/docker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const REPOS = [
44
{ name: "rivetgg/rivet-server", prefix: "slim", main: true },
55
{ name: "rivetgg/rivet-server", prefix: "full" },
66
{ name: "rivetgg/rivet-client", prefix: "full", main: true },
7+
{ name: "rivetgg/rivet-client", prefix: "container-runner" },
78
//{ name: "rivetgg/rivet", prefix: "monolith", main: true },
89
]
910

0 commit comments

Comments
 (0)