Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update manual e2e test for regions #1361

Closed
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
17 changes: 10 additions & 7 deletions docker/dev-full/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ services:
condition: service_healthy
nats:
condition: service_healthy
seaweedfs:
condition: service_healthy
# seaweedfs:
# condition: service_healthy
vector-server:
condition: service_started
volumes:
Expand Down Expand Up @@ -134,10 +134,15 @@ services:
retries: 10

seaweedfs:
image: bitnami/seaweedfs:3.78.0
image: chrislusf/seaweedfs:3.79
# TODO: Remove root user
user: root
command: server -dir /var/lib/seaweedfs -s3 -s3.config /etc/seaweedfs/s3.json -s3.port=9000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false
# `raftHashicorp` speeds up initial leader election
command: |
server \
-dir /var/lib/seaweedfs \
-master.raftHashicorp \
-s3 -s3.config /etc/seaweedfs/s3.json -s3.port=9000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false
volumes:
- ./seaweedfs:/etc/seaweedfs:ro
- seaweedfs-data:/var/lib/seaweedfs
Expand All @@ -147,11 +152,9 @@ services:
networks:
- rivet-network
healthcheck:
test: ["CMD", "bash", "-c", ">/dev/tcp/127.0.0.1/9000"]
test: ["CMD", "nc", "-z", "127.0.0.1", "9000"]
interval: 2s
timeout: 10s
# SeaweedFS takes a long time to start
retries: 30

vector-client:
image: timberio/vector:0.42.0-distroless-static
Expand Down
2 changes: 1 addition & 1 deletion docker/dev-full/vector-client/vector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sources:
prometheus_pegboard:
type: prometheus_scrape
endpoints:
- http://rivet-client:6000
- http://rivet-client:7090
scrape_interval_secs: 15

pegboard_manager:
Expand Down
10 changes: 8 additions & 2 deletions docker/dev-monolith/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,14 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
postgresql-client \
gpg \
xz-utils \
unzip \
apt-transport-https \
dirmngr \
netcat-openbsd && \
(curl -L https://github.com/golang-migrate/migrate/releases/download/v4.18.1/migrate.linux-$(cat /tmp/arch).tar.gz | tar xvz) && \
mv migrate /usr/local/bin/migrate
mv migrate /usr/local/bin/migrate && \
curl -fsSL https://deno.land/x/install/install.sh | sh && \
ln -s /root/.deno/bin/deno /usr/local/bin/deno

# === CockroachDB ===
RUN useradd -m -s /bin/bash cockroachdb && \
Expand Down Expand Up @@ -116,7 +119,10 @@ RUN curl -sSLf https://github.com/just-containers/s6-overlay/releases/download/v
tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz && \
curl -sSLf https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-$(uname -m).tar.xz -o /tmp/s6-overlay-$(uname -m).tar.xz && \
tar -C / -Jxpf /tmp/s6-overlay-$(uname -m).tar.xz
COPY ./docker/dev-monolith/s6-overlay /etc/s6-overlay

# Setup S6
COPY ./docker/dev-monolith/scripts /tmp/scripts
RUN deno run --allow-read --allow-write /tmp/scripts/setup_s6.ts

# === Rivet Server ===
RUN useradd -m -s /bin/bash rivet-server
Expand Down
16 changes: 15 additions & 1 deletion docker/dev-monolith/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,24 @@ You can read the logs by running:
docker exec mycontainer cat /var/log/rivet-server/current
```

## Monitoring Vector

Monitor `vector-server`:

```bash
vector top --url http://0.0.0.0:9500/graphql
```

Monitor `vector-client`:

```bash
vector top --url http://0.0.0.0:9510/graphql
```

## Testing

```bash
./scripts/docker/template.ts && docker build -f docker/dev-monolith/Dockerfile -t rivet . && docker run --name rivet --rm -v "/tmp/rivet-data:/data" -p 8080:8080 -p 9000:9000 -p 20000-20100:20000-20100 --privileged rivet
docker build -f docker/dev-monolith/Dockerfile -t rivet . && docker run --name rivet --rm -v "/tmp/rivet-data:/data" -p 8080:8080 -p 9000:9000 -p 20000-20100:20000-20100 --privileged rivet
```

## Port collisions
Expand Down
2 changes: 0 additions & 2 deletions docker/dev-monolith/rivet-client/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ client:
memory: 0
logs:
redirect_logs: false
metrics:
port: 6001
vector:
address: vector-server:6100

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions docker/dev-monolith/s6-overlay/s6-rc.d/clickhouse-log/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/clickhouse-log/type

This file was deleted.

Empty file.
Empty file.

This file was deleted.

3 changes: 0 additions & 3 deletions docker/dev-monolith/s6-overlay/s6-rc.d/clickhouse/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/clickhouse/type

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions docker/dev-monolith/s6-overlay/s6-rc.d/cockroachdb-log/run

This file was deleted.

This file was deleted.

Empty file.
Empty file.

This file was deleted.

3 changes: 0 additions & 3 deletions docker/dev-monolith/s6-overlay/s6-rc.d/cockroachdb/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/cockroachdb/type

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/fs-setup/type

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/fs-setup/up

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/hosts-setup/type

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/hosts-setup/up

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/nats-health/type

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/nats-health/up

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

2 changes: 0 additions & 2 deletions docker/dev-monolith/s6-overlay/s6-rc.d/nats-log/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/nats-log/type

This file was deleted.

Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/nats/producer-for

This file was deleted.

3 changes: 0 additions & 3 deletions docker/dev-monolith/s6-overlay/s6-rc.d/nats/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/nats/type

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/redis-health/type

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/redis-health/up

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

2 changes: 0 additions & 2 deletions docker/dev-monolith/s6-overlay/s6-rc.d/redis-log/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/redis-log/type

This file was deleted.

Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/redis/producer-for

This file was deleted.

3 changes: 0 additions & 3 deletions docker/dev-monolith/s6-overlay/s6-rc.d/redis/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/redis/type

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions docker/dev-monolith/s6-overlay/s6-rc.d/rivet-client-log/run

This file was deleted.

This file was deleted.

Empty file.
Empty file.

This file was deleted.

3 changes: 0 additions & 3 deletions docker/dev-monolith/s6-overlay/s6-rc.d/rivet-client/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/rivet-client/type

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions docker/dev-monolith/s6-overlay/s6-rc.d/rivet-server/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/rivet-server/type

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/seaweedfs-health/up

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions docker/dev-monolith/s6-overlay/s6-rc.d/seaweedfs-log/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/seaweedfs-log/type

This file was deleted.

Empty file.
Empty file.
Empty file.

This file was deleted.

5 changes: 0 additions & 5 deletions docker/dev-monolith/s6-overlay/s6-rc.d/seaweedfs/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/seaweedfs/type

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions docker/dev-monolith/s6-overlay/s6-rc.d/vector-client-log/run

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

3 changes: 0 additions & 3 deletions docker/dev-monolith/s6-overlay/s6-rc.d/vector-client/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/vector-client/type

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions docker/dev-monolith/s6-overlay/s6-rc.d/vector-server-log/run

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

3 changes: 0 additions & 3 deletions docker/dev-monolith/s6-overlay/s6-rc.d/vector-server/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/dev-monolith/s6-overlay/s6-rc.d/vector-server/type

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading