Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Add default VSS file to Dockerfile #332

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions kuksa_databroker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ FROM --platform=$TARGETPLATFORM debian:buster-slim

COPY --from=builder workdir/databroker /app/databroker

COPY ./data/vss-core/vss_release_3.0.json vss_release_3.0.json

ENV KUKSA_DATA_BROKER_ADDR=0.0.0.0
ENV KUKSA_DATA_BROKER_PORT=55555
ENV KUKSA_DATA_BROKER_METADATA_FILE=vss_release_3.0.json

EXPOSE $KUKSA_DATA_BROKER_PORT

ENTRYPOINT [ "/app/databroker" ]

4 changes: 3 additions & 1 deletion kuksa_databroker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,12 @@ DOCKER_BUILDKIT=1 docker build -f kuksa_databroker/Dockerfile -t databroker:<tag

The image creation may take around 2 minutes.
After the image is created the databroker container can be ran from any directory of the project:

```shell
#By default the container will execute the ./databroker command.
#By default the container will execute the ./databroker command and load the latest VSS file.
docker run --rm -it -p 55555:55555/tcp databroker
```

To run any specific command, just append you command at the end.

```shell
Expand Down