Skip to content

Commit 6bb342e

Browse files
chore: update deployments (#8)
* chore: update deployments * fix: Dockerfile * chore: refactor
1 parent 75bc11c commit 6bb342e

File tree

6 files changed

+34
-16
lines changed

6 files changed

+34
-16
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM rust:slim-bullseye AS builder
22
WORKDIR /app
3-
RUN apt-get update && apt-get install -y pkg-config libssl-dev make
3+
RUN apt-get update && apt-get install -y pkg-config libssl-dev make g++
44
COPY . /app
55
RUN cargo build --release
66

77
FROM debian:bullseye-slim
88
WORKDIR /app
9+
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
910
COPY --from=builder /app/target/release/vrf-oracle /app/vrf-oracle
1011
ENV RUST_LOG=info
1112
CMD ["./vrf-oracle"]

deployments/fly-devnet-grpc.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
app = 'vrf-oracle-devnet-grpc'
2+
primary_region = 'nrt'
3+
4+
[build]
5+
6+
[http_service]
7+
internal_port = 8080
8+
auto_stop_machines = 'off'
9+
auto_start_machines = true
10+
min_machines_running = 1
11+
processes = ['app']
12+
13+
[[vm]]
14+
memory = '2gb'
15+
cpu_kind = 'shared'
16+
cpus = 2

deployments/fly-devnet.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# fly.toml app configuration file generated for vrf-oracle-devnet on 2025-03-26T18:16:09+01:00
2-
#
3-
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4-
#
5-
61
app = 'vrf-oracle-devnet'
72
primary_region = 'nrt'
83

deployments/fly-ephemeral.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# fly.toml app configuration file generated for vrf-oracle-ephemeral on 2025-04-23T12:19:30+02:00
2-
#
3-
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4-
#
5-
61
app = 'vrf-oracle-ephemeral'
72
primary_region = 'nrt'
83

deployments/fly-mainnet-grpc.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
app = 'vrf-oracle-mainnet-grpc'
2+
primary_region = 'nrt'
3+
4+
[build]
5+
6+
[http_service]
7+
internal_port = 8080
8+
auto_stop_machines = 'off'
9+
auto_start_machines = true
10+
min_machines_running = 1
11+
processes = ['app']
12+
13+
[[vm]]
14+
memory = '2gb'
15+
cpu_kind = 'shared'
16+
cpus = 2

deployments/fly-mainnet.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# fly.toml app configuration file generated for vrf-oracle-devnet on 2025-03-26T18:16:09+01:00
2-
#
3-
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4-
#
5-
61
app = 'vrf-oracle-mainnet'
72
primary_region = 'nrt'
83

0 commit comments

Comments
 (0)