Skip to content

Commit

Permalink
Merge pull request #85 from kakao/add-label-to-dockers
Browse files Browse the repository at this point in the history
build: add labels to dockerfiles
  • Loading branch information
ijsong authored Aug 26, 2022
2 parents 4cdbb9e + e238915 commit 9870ad2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,35 @@ ENV PATH=/varlog/bin:$PATH


FROM busybox:${BUSYBOX_VERSION}-glibc AS varlogctl-debug
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
WORKDIR /varlog
COPY --from=builder-debug /varlog/bin/varlogctl /varlog/bin/varlogctl
CMD ["/varlog/bin/varlogctl"]


FROM scratch AS varlogctl-noncgo
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
WORKDIR /varlog
COPY --from=builder-noncgo /varlog/bin/varlogctl /varlog/bin/varlogctl
CMD ["/varlog/bin/varlogctl"]


FROM busybox:${BUSYBOX_VERSION}-glibc AS varlogcli-debug
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
WORKDIR /varlog
COPY --from=builder-debug /varlog/bin/varlogcli /varlog/bin/varlogcli
CMD ["/varlog/bin/varlogcli"]


FROM scratch AS varlogcli-noncgo
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
WORKDIR /varlog
COPY --from=builder-noncgo /varlog/bin/varlogcli /varlog/bin/varlogcli
CMD ["/varlog/bin/varlogcli"]


FROM base-cgo AS varlogmr-debug
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
EXPOSE ${VARLOGMR_RPC_PORT}
EXPOSE ${VARLOGMR_RAFT_PORT}
USER varlog
Expand All @@ -95,6 +100,7 @@ COPY --from=builder-debug /varlog/pylib /varlog/pylib


FROM base-cgo AS varlogmr-cgo
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
EXPOSE ${VARLOGMR_RPC_PORT}
EXPOSE ${VARLOGMR_RAFT_PORT}
USER varlog
Expand All @@ -108,6 +114,7 @@ COPY --from=builder-cgo /varlog/pylib /varlog/pylib


FROM base-noncgo AS varlogmr-noncgo
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
EXPOSE ${VARLOGMR_RPC_PORT}
EXPOSE ${VARLOGMR_RAFT_PORT}
USER varlog
Expand All @@ -121,6 +128,7 @@ COPY --from=builder-noncgo /varlog/pylib /varlog/pylib


FROM base-cgo AS varlogadm-debug
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
EXPOSE ${VARLOGADM_RPC_PORT}
USER varlog
WORKDIR /varlog
Expand All @@ -131,6 +139,7 @@ COPY --from=builder-debug /varlog/pylib /varlog/pylib


FROM base-cgo AS varlogadm-cgo
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
EXPOSE ${VARLOGADM_RPC_PORT}
USER varlog
WORKDIR /varlog
Expand All @@ -141,6 +150,7 @@ COPY --from=builder-cgo /varlog/pylib /varlog/pylib


FROM base-noncgo AS varlogadm-noncgo
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
EXPOSE ${VARLOGADM_RPC_PORT}
USER varlog
WORKDIR /varlog
Expand All @@ -151,6 +161,7 @@ COPY --from=builder-noncgo /varlog/pylib /varlog/pylib


FROM base-cgo AS varlogsn-debug
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
EXPOSE ${VARLOGSN_RPC_PORT}
USER varlog
WORKDIR /varlog
Expand All @@ -162,6 +173,7 @@ COPY --from=builder-debug /varlog/pylib /varlog/pylib


FROM base-cgo AS varlogsn-cgo
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
EXPOSE ${VARLOGSN_RPC_PORT}
USER varlog
WORKDIR /varlog
Expand All @@ -173,6 +185,7 @@ COPY --from=builder-cgo /varlog/pylib /varlog/pylib


FROM base-noncgo AS varlogsn-noncgo
LABEL org.opencontainers.image.source=https://github.com/kakao/varlog
EXPOSE ${VARLOGSN_RPC_PORT}
USER varlog
WORKDIR /varlog
Expand Down

0 comments on commit 9870ad2

Please sign in to comment.