From 48ecb04f8a6e9ef8b850dd2f81714a75767f65ec Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Wed, 16 Feb 2022 15:30:48 +0100 Subject: [PATCH] container packaging --- .podman-compose/mqtt-archiver/.gitignore | 2 ++ Containerfile | 7 +++++++ mqtt-archiver.yaml | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .podman-compose/mqtt-archiver/.gitignore create mode 100644 Containerfile diff --git a/.podman-compose/mqtt-archiver/.gitignore b/.podman-compose/mqtt-archiver/.gitignore new file mode 100644 index 0000000..15dbcfd --- /dev/null +++ b/.podman-compose/mqtt-archiver/.gitignore @@ -0,0 +1,2 @@ +*.json +*.json.gz diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..a4d1cdb --- /dev/null +++ b/Containerfile @@ -0,0 +1,7 @@ +FROM docker.io/library/alpine:3.15 +RUN apk --no-cache add ca-certificates \ + && update-ca-certificates +ARG BUILT_ARTIFACT +ADD "$BUILT_ARTIFACT" / +ENTRYPOINT [ "/mqtt-archiver" ] +CMD [ ] diff --git a/mqtt-archiver.yaml b/mqtt-archiver.yaml index fc807fe..69a10bc 100644 --- a/mqtt-archiver.yaml +++ b/mqtt-archiver.yaml @@ -3,8 +3,8 @@ mqtt: username: dev password: secret timeout: 5s - gracePeriod: 30s -workingDir: /tmp + gracePeriod: 2s +workingDir: .podman-compose/mqtt-archiver/ s3: endpoint: localhost:9000 accessKey: dev