Skip to content

Commit b5f938f

Browse files
authored
update to bookworm-slim (#662)
Signed-off-by: Phil Prasek <[email protected]>
1 parent 40a0e9a commit b5f938f

File tree

11 files changed

+47
-35
lines changed

11 files changed

+47
-35
lines changed

client/defer/apollo-client/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-bullseye-slim
1+
FROM node:18-bookworm-slim
22

33
WORKDIR /usr/src/app
44

misc/advanced/router-dev/Dockerfile

+7-5
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ RUN USER=root cargo new --bin acme_router
88
WORKDIR /acme_router
99

1010
# Update our build image and install required packages
11-
RUN apt-get update
12-
RUN apt-get -y install \
13-
protobuf-compiler
11+
RUN apt-get update -y \
12+
&& apt-get install -y \
13+
protobuf-compiler \
14+
cmake
1415

1516
RUN rustup component add rustfmt
1617

@@ -34,9 +35,10 @@ RUN mkdir -p /dist/config && mkdir -p /dist/schema
3435
#FROM --platform=linux/amd64 gcr.io/distroless/cc-debian11
3536

3637
# if you want bin/sh you'll want a distro that includes it instead
37-
FROM --platform=linux/amd64 debian:bullseye-slim
38+
FROM --platform=linux/amd64 debian:bookworm-slim
3839

39-
RUN apt-get update && apt-get install -y \
40+
RUN apt-get update -y \
41+
&& apt-get install -y \
4042
ca-certificates \
4143
curl
4244

subgraphs/inventory/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN gradle clean build --no-daemon --parallel
1717

1818

1919
# Create a new layer with the build output to run the app
20-
FROM openjdk:20-slim-bullseye
20+
FROM openjdk:22-slim-bookworm
2121
ENV ARTIFACT_NAME=app.jar
2222

2323
WORKDIR /usr/src/app

subgraphs/pandas/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-bullseye-slim
1+
FROM node:18-bookworm-slim
22

33
WORKDIR /usr/src/app
44

subgraphs/products/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-bullseye-slim
1+
FROM node:18-bookworm-slim
22

33
WORKDIR /usr/src/app
44

subgraphs/users/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-bullseye-slim
1+
FROM node:18-bookworm-slim
22

33
WORKDIR /usr/src/app
44

supergraph/gateway/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-bullseye-slim
1+
FROM node:18-bookworm-slim
22

33
WORKDIR /usr/src/app
44

supergraph/router-rhai-script/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 debian:bullseye-slim
1+
FROM --platform=linux/amd64 debian:bookworm-slim
22

33
RUN apt-get update && apt-get install -y \
44
ca-certificates \

supergraph/router-rust-plugin/Dockerfile

+7-5
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ RUN USER=root cargo new --bin acme_router
88
WORKDIR /acme_router
99

1010
# Update our build image and install required packages
11-
RUN apt-get update
12-
RUN apt-get -y install \
13-
protobuf-compiler
11+
RUN apt-get update -y \
12+
&& apt-get install -y \
13+
protobuf-compiler \
14+
cmake
1415

1516
RUN rustup component add rustfmt
1617

@@ -34,9 +35,10 @@ RUN mkdir -p /dist/config && mkdir -p /dist/schema
3435
#FROM --platform=linux/amd64 gcr.io/distroless/cc-debian11
3536

3637
# if you want bin/sh you'll want a distro that includes it instead
37-
FROM --platform=linux/amd64 debian:bullseye-slim
38+
FROM --platform=linux/amd64 debian:bookworm-slim
3839

39-
RUN apt-get update && apt-get install -y \
40+
RUN apt-get update -y \
41+
&& apt-get install -y \
4042
ca-certificates \
4143
curl
4244

supergraph/schema/docker.graphql

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
schema
22
@link(url: "https://specs.apollo.dev/link/v1.0")
3-
@link(url: "https://specs.apollo.dev/join/v0.2", for: EXECUTION)
4-
@link(url: "https://specs.apollo.dev/tag/v0.2")
3+
@link(url: "https://specs.apollo.dev/join/v0.3", for: EXECUTION)
4+
@link(url: "https://specs.apollo.dev/tag/v0.3")
55
@link(url: "https://specs.apollo.dev/inaccessible/v0.2", for: SECURITY)
66
@link(url: "https://myspecs.dev/myDirective/v1.0", import: ["@myDirective", {name: "@anotherDirective", as: "@hello"}])
77
{
@@ -12,19 +12,23 @@ directive @hello on FIELD_DEFINITION
1212

1313
directive @inaccessible on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
1414

15-
directive @join__field(graph: join__Graph!, requires: join__FieldSet, provides: join__FieldSet, type: String, external: Boolean, override: String, usedOverridden: Boolean) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
15+
directive @join__enumValue(graph: join__Graph!) repeatable on ENUM_VALUE
16+
17+
directive @join__field(graph: join__Graph, requires: join__FieldSet, provides: join__FieldSet, type: String, external: Boolean, override: String, usedOverridden: Boolean) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
1618

1719
directive @join__graph(name: String!, url: String!) on ENUM_VALUE
1820

1921
directive @join__implements(graph: join__Graph!, interface: String!) repeatable on OBJECT | INTERFACE
2022

21-
directive @join__type(graph: join__Graph!, key: join__FieldSet, extension: Boolean! = false, resolvable: Boolean! = true) repeatable on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT | SCALAR
23+
directive @join__type(graph: join__Graph!, key: join__FieldSet, extension: Boolean! = false, resolvable: Boolean! = true, isInterfaceObject: Boolean! = false) repeatable on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT | SCALAR
24+
25+
directive @join__unionMember(graph: join__Graph!, member: String!) repeatable on UNION
2226

2327
directive @link(url: String, as: String, for: link__Purpose, import: [link__Import]) repeatable on SCHEMA
2428

2529
directive @myDirective(a: String!) on FIELD_DEFINITION
2630

27-
directive @tag(name: String!) repeatable on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
31+
directive @tag(name: String!) repeatable on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION | SCHEMA
2832

2933
type DeliveryEstimates
3034
@join__type(graph: INVENTORY)
@@ -151,9 +155,9 @@ enum ShippingClass
151155
@join__type(graph: INVENTORY)
152156
@join__type(graph: PRODUCTS)
153157
{
154-
STANDARD
155-
EXPRESS
156-
OVERNIGHT
158+
STANDARD @join__enumValue(graph: INVENTORY) @join__enumValue(graph: PRODUCTS)
159+
EXPRESS @join__enumValue(graph: INVENTORY) @join__enumValue(graph: PRODUCTS)
160+
OVERNIGHT @join__enumValue(graph: INVENTORY)
157161
}
158162

159163
interface SkuItf
@@ -169,4 +173,4 @@ type User
169173
email: ID! @tag(name: "test-from-users")
170174
totalProductsCreated: Int
171175
name: String @join__field(graph: USERS)
172-
}
176+
}

supergraph/schema/local.graphql

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
schema
22
@link(url: "https://specs.apollo.dev/link/v1.0")
3-
@link(url: "https://specs.apollo.dev/join/v0.2", for: EXECUTION)
4-
@link(url: "https://specs.apollo.dev/tag/v0.2")
3+
@link(url: "https://specs.apollo.dev/join/v0.3", for: EXECUTION)
4+
@link(url: "https://specs.apollo.dev/tag/v0.3")
55
@link(url: "https://specs.apollo.dev/inaccessible/v0.2", for: SECURITY)
66
@link(url: "https://myspecs.dev/myDirective/v1.0", import: ["@myDirective", {name: "@anotherDirective", as: "@hello"}])
77
{
@@ -12,19 +12,23 @@ directive @hello on FIELD_DEFINITION
1212

1313
directive @inaccessible on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
1414

15-
directive @join__field(graph: join__Graph!, requires: join__FieldSet, provides: join__FieldSet, type: String, external: Boolean, override: String, usedOverridden: Boolean) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
15+
directive @join__enumValue(graph: join__Graph!) repeatable on ENUM_VALUE
16+
17+
directive @join__field(graph: join__Graph, requires: join__FieldSet, provides: join__FieldSet, type: String, external: Boolean, override: String, usedOverridden: Boolean) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
1618

1719
directive @join__graph(name: String!, url: String!) on ENUM_VALUE
1820

1921
directive @join__implements(graph: join__Graph!, interface: String!) repeatable on OBJECT | INTERFACE
2022

21-
directive @join__type(graph: join__Graph!, key: join__FieldSet, extension: Boolean! = false, resolvable: Boolean! = true) repeatable on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT | SCALAR
23+
directive @join__type(graph: join__Graph!, key: join__FieldSet, extension: Boolean! = false, resolvable: Boolean! = true, isInterfaceObject: Boolean! = false) repeatable on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT | SCALAR
24+
25+
directive @join__unionMember(graph: join__Graph!, member: String!) repeatable on UNION
2226

2327
directive @link(url: String, as: String, for: link__Purpose, import: [link__Import]) repeatable on SCHEMA
2428

2529
directive @myDirective(a: String!) on FIELD_DEFINITION
2630

27-
directive @tag(name: String!) repeatable on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION
31+
directive @tag(name: String!) repeatable on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION | SCHEMA
2832

2933
type DeliveryEstimates
3034
@join__type(graph: INVENTORY)
@@ -151,9 +155,9 @@ enum ShippingClass
151155
@join__type(graph: INVENTORY)
152156
@join__type(graph: PRODUCTS)
153157
{
154-
STANDARD
155-
EXPRESS
156-
OVERNIGHT
158+
STANDARD @join__enumValue(graph: INVENTORY) @join__enumValue(graph: PRODUCTS)
159+
EXPRESS @join__enumValue(graph: INVENTORY) @join__enumValue(graph: PRODUCTS)
160+
OVERNIGHT @join__enumValue(graph: INVENTORY)
157161
}
158162

159163
interface SkuItf
@@ -169,4 +173,4 @@ type User
169173
email: ID! @tag(name: "test-from-users")
170174
totalProductsCreated: Int
171175
name: String @join__field(graph: USERS)
172-
}
176+
}

0 commit comments

Comments
 (0)