Sign inSign up

yanmouxie/natscli

By yanmouxie

•Updated over 3 years ago

NATS Command line utility (natscli), devops CI/CD runner base image.

Image
0

278

yanmouxie/natscli repository overview

⁠nats (natscli) , a command line utility to interact with and manage NATS

⁠dockerfile:
FROM alpine:3.18.2 as builder
ENV NATSCLI_VERSION 0.0.35
RUN sed -i 's/https/http/g' /etc/apk/repositories && apk --no-cache add bash curl libarchive-tools
RUN curl -k -L nats.zip https://github.com/nats-io/natscli/releases/download/v${NATSCLI_VERSION}/nats-${NATSCLI_VERSION}-linux-amd64.zip | \
    bsdtar -xvf- && mv nats-${NATSCLI_VERSION}-linux-amd64/nats /nats

FROM alpine:3.18.2
RUN sed -i 's/https/http/g' /etc/apk/repositories && apk --no-cache add bash
COPY --from=builder /nats /usr/local/bin/nats
RUN chmod +x /usr/local/bin/nats
⁠Usage:
docker run -itd --name natscli yanmouxie/natscli:latest

Tag summary

Content type

Image

Digest

sha256:3835bc6b7…

Size

19 MB

Last updated

over 3 years ago

docker pull yanmouxie/natscli