nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

commit 1505e7e48a3fdc42073d2f2432400e9b29413c92
parent 42bd42698e0150d4107b254e6b47e6b9d22d9d34
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Wed,  3 Jul 2024 23:29:44 +0200

feat(updatecli): add Dockerfile

Diffstat:
Mdocker/docker-jenkins-inbound-agent/README | 10++++++++++
Adocker/docker-updatecli/Dockerfile | 11+++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/docker/docker-jenkins-inbound-agent/README b/docker/docker-jenkins-inbound-agent/README @@ -274,6 +274,16 @@ Docker container (-u flag). Few examples: Even more examples (not necessarily docker related): * https://www.jenkins.io/doc/pipeline/examples +== Note on Docker images == + +Some images (such as debian:stable-slim) don't have the `top` command. This +will return an error when run in Jenkins: + +"java.io.IOException: Failed to run top" + +In this case, build an image based on the desired image that includes top +(procps). + == Integration with Git post-receive hooks == There exists the option to nudge Jenkins on every push, see diff --git a/docker/docker-updatecli/Dockerfile b/docker/docker-updatecli/Dockerfile @@ -0,0 +1,11 @@ +# https://github.com/updatecli/updatecli/blob/main/Dockerfile +FROM ghcr.io/updatecli/updatecli:latest as builder + +FROM docker.io/alpine:latest +VOLUME /tmp +COPY --from=builder /usr/local/bin/updatecli /usr/local/bin/updatecli +RUN useradd -d /home/updatecli -U -u 1000 -m updatecli +USER updatecli +WORKDIR /home/updatecli +ENTRYPOINT [ "/usr/local/bin/updatecli" ] +CMD ["help"]