Skip to content

Commit

Permalink
distroless container for UDMI tools (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi authored Nov 5, 2024
1 parent bfec965 commit 90ab482
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ deterministically
dev
Dev
directionality
distroless
DNS
Dockerized
dockerized
Expand Down
10 changes: 10 additions & 0 deletions misc/distroless_tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM openjdk:17-jdk-slim AS build-env
COPY . /app/
WORKDIR /app
RUN /app/validator/bin/build

FROM gcr.io/distroless/java17-debian12
WORKDIR /app
COPY --from=build-env /app/validator/build/libs/ /app/
COPY gencode/java/udmi/schema /app/schema
CMD ["validator-1.0-SNAPSHOT-all.jar"]
9 changes: 9 additions & 0 deletions misc/distroless_tools/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Distroless Tools

This directory builds the UDMI tooling (validator) using [distroless containers](https://github.com/GoogleContainerTools/distroless)

## Usage

```shell
$ misc/distroless_tools/build [PUSH_REf]
```

0 comments on commit 90ab482

Please sign in to comment.