@@ -201,126 +201,8 @@ FROM wasm-deps AS confidence-cloudflare-resolver.lint
201201WORKDIR /workspace/confidence-cloudflare-resolver
202202RUN make lint
203203
204- # ==============================================================================
205- # Node.js Host - Run Node.js host example
206- # ==============================================================================
207- FROM node:20-alpine AS node-host-base
208-
209- # Install protoc for proto generation
210- RUN apk add --no-cache protobuf-dev protoc make
211-
212- WORKDIR /app
213-
214- # Enable Corepack for Yarn
215- RUN corepack enable
216-
217- # Copy package files for dependency caching
218- COPY wasm/node-host/package.json wasm/node-host/yarn.lock wasm/node-host/.yarnrc.yml ./
219- COPY wasm/node-host/Makefile ./
220-
221- # Copy proto files for generation
222- COPY wasm/proto ../proto/
223-
224- # Build using Makefile (installs deps + generates protos)
225- ENV IN_DOCKER_BUILD=1
226- RUN make build
227-
228- # Copy source code
229- COPY wasm/node-host/src ./src/
230- COPY wasm/node-host/tsconfig.json ./
231-
232- # Copy WASM module from wasm-rust-guest.artifact
233- COPY --from=wasm-rust-guest.artifact /confidence_resolver.wasm ../confidence_resolver.wasm
234204
235- # Copy resolver state
236- COPY wasm/resolver_state.pb ../resolver_state.pb
237-
238- # ==============================================================================
239- # Test Node.js Host (integration test)
240- # ==============================================================================
241- FROM node-host-base AS node-host.test
242- RUN make run
243205
244- # ==============================================================================
245- # Java Host - Run Java host example
246- # ==============================================================================
247- FROM eclipse-temurin:21-alpine AS java-host-base
248-
249- # Install Maven and protobuf
250- RUN apk add --no-cache maven protobuf-dev protoc make
251-
252- WORKDIR /app
253-
254- # Copy pom.xml for dependency caching
255- COPY wasm/java-host/pom.xml ./
256- COPY wasm/java-host/Makefile ./
257-
258- # Download dependencies (this layer will be cached)
259- RUN mvn dependency:go-offline -q || true
260-
261- # Copy proto files
262- COPY wasm/proto ../proto/
263-
264- # Copy source code
265- COPY wasm/java-host/src ./src/
266-
267- # Build using Makefile (compiles proto + builds JAR)
268- ENV IN_DOCKER_BUILD=1
269- RUN make build
270-
271- # Copy WASM module from wasm-rust-guest.artifact
272- COPY --from=wasm-rust-guest.artifact /confidence_resolver.wasm ../confidence_resolver.wasm
273-
274- # Copy resolver state
275- COPY wasm/resolver_state.pb ../resolver_state.pb
276-
277- # ==============================================================================
278- # Test Java Host (integration test)
279- # ==============================================================================
280- FROM java-host-base AS java-host.test
281- RUN make run
282-
283- # ==============================================================================
284- # Go Host - Run Go host example
285- # ==============================================================================
286- FROM golang:1.23-alpine AS go-host-base
287-
288- # Install protobuf and protoc-gen-go
289- RUN apk add --no-cache protobuf-dev protoc bash make git
290-
291- WORKDIR /app
292-
293- # Copy go.mod for dependency caching
294- COPY wasm/go-host/go.mod wasm/go-host/go.sum ./
295- COPY wasm/go-host/Makefile ./
296-
297- # Download Go dependencies (this layer will be cached)
298- RUN go mod download
299-
300- # Install protoc-gen-go (pin version for stability)
301- RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34
302-
303- # Copy proto files
304- COPY wasm/proto ../proto/
305-
306- # Copy source code
307- COPY wasm/go-host/*.go wasm/go-host/*.sh ./
308-
309- # Build using Makefile (generates proto + builds)
310- ENV IN_DOCKER_BUILD=1
311- RUN make build
312-
313- # Copy WASM module
314- COPY --from=wasm-rust-guest.artifact /confidence_resolver.wasm ../confidence_resolver.wasm
315-
316- # Copy resolver state
317- COPY wasm/resolver_state.pb ../resolver_state.pb
318-
319- # ==============================================================================
320- # Test Go Host (integration test)
321- # ==============================================================================
322- FROM go-host-base AS go-host.test
323- RUN make run
324206
325207# ==============================================================================
326208# Python Host - Run Python host example
@@ -684,9 +566,6 @@ COPY --from=openfeature-provider-ruby.test /app/Gemfile /markers/test-openfeatur
684566COPY --from=openfeature-provider-go.validate-wasm /built/confidence_resolver.wasm /markers/validate-wasm-go
685567
686568# Force integration test stages to run (host examples)
687- COPY --from=node-host.test /app/package.json /markers/integration-node
688- COPY --from=java-host.test /app/pom.xml /markers/integration-java
689- COPY --from=go-host.test /app/go.mod /markers/integration-go
690569COPY --from=python-host.test /app/Makefile /markers/integration-python
691570
692571# Force lint stages to run by copying marker files
0 commit comments