mirror of
https://github.com/singchia/frontier.git
synced 2025-09-26 20:31:25 +08:00
image: add example iclm service dockerfile
This commit is contained in:
25
images/Dockerfile.example_iclm_service
Normal file
25
images/Dockerfile.example_iclm_service
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM golang:1.22.0 AS builder
|
||||
|
||||
# an automatic platform ARG enabled by Docker BuildKit.
|
||||
ARG TARGETOS
|
||||
# an automatic platform ARG enabled by Docker BuildKit.
|
||||
ARG TARGETARCH
|
||||
|
||||
ENV GO111MODULE=on \
|
||||
GOPROXY=https://goproxy.io,direct
|
||||
|
||||
WORKDIR /go/src/github.com/singchia/frontier
|
||||
RUN --mount=type=bind,readwrite,target=/go/src/github.com/singchia/frontier \
|
||||
make DESTDIR=/tmp/install examples install-example-iclm
|
||||
|
||||
FROM alpine:3.14
|
||||
|
||||
COPY --from=builder /tmp/install/ /
|
||||
|
||||
RUN apk --no-cache add ca-certificates wget
|
||||
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
|
||||
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.34-r0/glibc-2.34-r0.apk
|
||||
RUN apk add glibc-2.34-r0.apk
|
||||
|
||||
ENTRYPOINT ["/usr/bin/iclm_service"]
|
||||
CMD ["--frontlas", "--frontlas_address", "frontiercluster-frontlas-svc:40011", "--methods", "echo", "--topics", "foo", "--printmessage", "--nostdin"]
|
Reference in New Issue
Block a user