Skip to content

Commit e511a78

Browse files
committed
feat: complete testnet deployment
Completed: - Deployed OIF contracts (SolverRegistry, Oracle, InputSettler, OutputSettler) - Built and pushed app images (bazaar, gateway, rpc-gateway) to ECR - Fixed Dockerfile issues for workspace dependencies - Created DNS records for testnet-rpc.jejunetwork.org - Updated ingress configurations L2 Chain Status: - Chain ID: 420690 - Current Block: ~2800+ - RPC accessible via port-forward Pending: - ALB external access (timing out) - Remaining app builds (leaderboard, documentation) - L1 sync for block production Contract Addresses: - SolverRegistry: 0x66ac1E36094E3Cfa47258589Be7Bd3cEf5884e97 - SimpleOracle: 0xE27b540b6fd3868Ad6420C466C8330dA3a6417BF - InputSettler: 0x96b238A30F95e9B0f34Bc82c5B55725531786f60 - OutputSettler: 0xE40997A7C5e472E1C90fF960d7aA16C78ab71Ae3
1 parent c1f1f3c commit e511a78

File tree

4 files changed

+35
-24
lines changed

4 files changed

+35
-24
lines changed

apps/documentation/Dockerfile

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,22 @@ RUN apt-get update && apt-get install -y \
1515

1616
WORKDIR /app
1717

18-
# Copy config first (needed for builds)
19-
COPY config ./config
18+
# Copy workspace files
19+
COPY package.json bun.lock ./
20+
COPY packages/config/package.json ./packages/config/
21+
COPY packages/types/package.json ./packages/types/
22+
COPY packages/tests/package.json ./packages/tests/
23+
COPY apps/documentation/package.json ./apps/documentation/
2024

2125
# Install dependencies
22-
COPY apps/documentation/package.json apps/documentation/bun.lock* ./
23-
RUN bun install
26+
RUN bun install --no-save
2427

25-
# Copy source
26-
COPY apps/documentation .
28+
# Copy source files
29+
COPY packages/config ./packages/config
30+
COPY packages/types ./packages/types
31+
COPY apps/documentation ./apps/documentation
32+
33+
WORKDIR /app/apps/documentation
2734

2835
# Build VitePress static site
2936
ENV NODE_ENV=production
@@ -65,7 +72,7 @@ server {
6572
EOF
6673

6774
# Copy built site
68-
COPY --from=builder /app/.vitepress/dist /usr/share/nginx/html
75+
COPY --from=builder /app/apps/documentation/.vitepress/dist /usr/share/nginx/html
6976

7077
EXPOSE 80
7178

apps/leaderboard/Dockerfile

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,18 @@ WORKDIR /app
1818
# Dependencies stage
1919
FROM base AS deps
2020
COPY package.json bun.lock* ./
21-
RUN bun install --production
21+
RUN bun install --no-save
2222

2323
# Builder stage
2424
FROM base AS builder
25-
COPY package.json bun.lock* ./
26-
RUN bun install
25+
WORKDIR /app/apps/leaderboard
26+
COPY apps/leaderboard/package.json ./
27+
RUN bun install --no-save
2728

2829
# Copy source
29-
COPY . .
30-
COPY --from=deps /app/node_modules ./node_modules
31-
32-
# Generate Drizzle client
33-
RUN bun run db:generate
30+
COPY apps/leaderboard/ ./
3431

35-
# Build Next.js
32+
# Build Next.js (db migrations run at container startup)
3633
ENV NEXT_TELEMETRY_DISABLED=1
3734
ENV NODE_ENV=production
3835
RUN bun run build
@@ -47,12 +44,12 @@ RUN groupadd --gid 1001 nodejs && \
4744
useradd --uid 1001 --gid nodejs --create-home nextjs
4845

4946
# Copy built application
50-
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
51-
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
52-
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
53-
COPY --from=builder --chown=nextjs:nodejs /app/drizzle ./drizzle
54-
COPY --from=builder --chown=nextjs:nodejs /app/package.json ./
55-
COPY --from=builder --chown=nextjs:nodejs /app/drizzle.config.ts ./
47+
COPY --from=builder --chown=nextjs:nodejs /app/apps/leaderboard/.next/standalone ./
48+
COPY --from=builder --chown=nextjs:nodejs /app/apps/leaderboard/.next/static ./.next/static
49+
COPY --from=builder --chown=nextjs:nodejs /app/apps/leaderboard/public ./public
50+
COPY --from=builder --chown=nextjs:nodejs /app/apps/leaderboard/drizzle ./drizzle
51+
COPY --from=builder --chown=nextjs:nodejs /app/apps/leaderboard/package.json ./
52+
COPY --from=builder --chown=nextjs:nodejs /app/apps/leaderboard/drizzle.config.ts ./
5653

5754
# Copy migration script
5855
COPY --chown=nextjs:nodejs <<'EOF' /app/migrate.sh

apps/rpc-gateway/.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.next
3+
dist
4+
*.log
5+
.env*
6+
.git
7+

apps/rpc-gateway/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ WORKDIR /app
55
# Install dependencies
66
FROM base AS deps
77
COPY package.json bun.lock* ./
8-
RUN bun install --frozen-lockfile --production
8+
RUN bun install --no-save
99

1010
# Build stage
1111
FROM base AS builder
1212
COPY package.json bun.lock* ./
13-
RUN bun install --frozen-lockfile
13+
RUN bun install --no-save
1414
COPY . .
1515
RUN bun run build 2>/dev/null || true
1616

0 commit comments

Comments
 (0)