Skip to content

Commit 858426e

Browse files
authored
Update gateways, use debian instead of alpine and refactor docker artifacts (#656)
1 parent fde1e26 commit 858426e

File tree

15 files changed

+26
-43
lines changed

15 files changed

+26
-43
lines changed

docker-compose.metrics.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
networks:
42
test:
53
name: test

federation/gateways/apollo-router/docker-compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.8"
2-
31
services:
42
gateway:
53
image: ghcr.io/apollographql/router:v2.1.0
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
FROM node:22-alpine
1+
FROM node:23-slim
22

3-
RUN apk --no-cache add curl
4-
5-
RUN addgroup -S gw && adduser -S gw -G gw
3+
RUN apt-get update -y && apt-get install curl -y
64

75
WORKDIR /home/gw
86
COPY supergraph.graphql index.ts ./
97
COPY package.json yarn.lock ./
108

119
RUN yarn install --production
12-
ENV PORT 4000
13-
ENV NODE_ENV production
10+
ENV PORT=4000
11+
ENV NODE_ENV=production
1412

1513
EXPOSE 4000
1614

17-
USER gw
18-
WORKDIR /home/gw
19-
20-
CMD yarn start
15+
CMD ["yarn", "start"]

federation/gateways/apollo-server/docker-compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
gateway:
53
image: gateway/apollo-server

federation/gateways/cosmo/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM alpine:20250108
1+
FROM debian:12-slim
22

3-
RUN apk --no-cache add curl
3+
RUN apt-get update -y && apt-get install curl -y
44

55
WORKDIR /home/gw
66
COPY router.json ./
77

8-
ENV ROUTER_VERSION=0.183.2
8+
ENV ROUTER_VERSION=0.199.1
99

1010
RUN curl -L https://github.com/wundergraph/cosmo/releases/download/router%40${ROUTER_VERSION}/router-router@${ROUTER_VERSION}-linux-$(uname -m | sed s:aarch:arm:| sed s:x86_:amd:).tar.gz | gunzip -dc | tar x && mv router /usr/local/bin
1111

federation/gateways/cosmo/docker-compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.8"
2-
31
services:
42
gateway:
53
image: gateway/cosmo

federation/gateways/grafbase/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/grafbase/gateway:0.33.0
1+
FROM ghcr.io/grafbase/gateway:0.35.0
22

33
COPY supergraph.graphql ./
44

federation/gateways/grafbase/docker-compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
gateway:
53
image: gateway/grafbase

federation/gateways/hive-gateway-bun/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
gateway:
3-
image: ghcr.io/graphql-hive/gateway:1.13.4-bun
3+
image: ghcr.io/graphql-hive/gateway:1.13.6-bun
44
container_name: gateway
55
networks:
66
- test

federation/gateways/hive-gateway/docker-compose.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
gateway:
3-
image: ghcr.io/graphql-hive/gateway:1.13.4
3+
image: ghcr.io/graphql-hive/gateway:1.13.6
44
container_name: gateway
55
networks:
66
- test
@@ -24,11 +24,18 @@ services:
2424
source: federation/gateways/hive-gateway/supergraph.graphql
2525
target: /serve/supergraph.graphql
2626
healthcheck:
27-
test: [ "CMD", "/usr/lib/apt/apt-helper", "download-file", "http://127.0.0.1:4000/graphql?query=%7B+users+%7B+reviews+%7B+product+%7B+reviews+%7B+author+%7B+reviews+%7B+product+%7B+name+%7D+%7D+%7D+%7D+%7D+%7D+%7D+%7D", "/tmp/health" ]
27+
test:
28+
[
29+
"CMD",
30+
"/usr/lib/apt/apt-helper",
31+
"download-file",
32+
"http://127.0.0.1:4000/graphql?query=%7B+users+%7B+reviews+%7B+product+%7B+reviews+%7B+author+%7B+reviews+%7B+product+%7B+name+%7D+%7D+%7D+%7D+%7D+%7D+%7D+%7D",
33+
"/tmp/health",
34+
]
2835
interval: 3s
2936
timeout: 5s
3037
retries: 10
31-
command: [ "supergraph", "--jit" ]
38+
command: ["supergraph", "--jit"]
3239
deploy:
3340
resources:
3441
limits:

0 commit comments

Comments
 (0)