Skip to content

Commit

Permalink
distroless tools container
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi committed Nov 4, 2024
1 parent bfec965 commit eaa83e1
Show file tree
Hide file tree
Showing 4 changed files with 25 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
5 changes: 5 additions & 0 deletions misc/bin/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM gcr.io/distroless/java17-debian12
COPY validator/build/libs/ /app/
COPY schema /app/schema
WORKDIR /app
CMD ["validator-1.0-SNAPSHOT-all.jar"]
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 eaa83e1

Please sign in to comment.