Skip to content

Commit

Permalink
Add labels (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
trstringer authored Feb 19, 2024
1 parent a3811c0 commit 3b339d1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.cart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM golang:1.22@sha256:7b297d9abee021bab9046e492506b3c2da8a3722cbf301653186545ecc1e00bb AS builder
LABEL org.opencontainers.image.source https://github.com/trstringer/otel-shopping-cart
COPY . /var/app
WORKDIR /var/app
RUN CGO_ENABLED=0 go build -o cart ./cmd/cart
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.collector
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ COPY ./collector/dist/otel-shopping-cart-collector /otel-shopping-cart-collector
RUN chmod 755 /otel-shopping-cart-collector

FROM ubuntu:latest
LABEL org.opencontainers.image.source https://github.com/trstringer/manual-approval

ARG USER_UID=10001
USER ${USER_UID}
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.dataseed
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ubuntu:latest
LABEL org.opencontainers.image.source https://github.com/trstringer/manual-approval
WORKDIR /var/app
COPY ./database/setup.sql /var/app
RUN apt update && apt install -y postgresql-client
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.interrupter
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ WORKDIR /var/app
RUN CGO_ENABLED=0 go build -o interrupter ./cmd/interrupter

FROM alpine:3
LABEL org.opencontainers.image.source https://github.com/trstringer/manual-approval
COPY --from=builder /var/app/interrupter /var/app/interrupter
ENTRYPOINT ["/var/app/interrupter"]
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.price
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# FROM alpine:3
FROM ubuntu:latest
LABEL org.opencontainers.image.source https://github.com/trstringer/manual-approval
COPY \
./external/price_server \
/var/app/
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.trafficgen
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ WORKDIR /var/app
RUN CGO_ENABLED=0 go build -o trafficgen ./cmd/trafficgen

FROM alpine:3
LABEL org.opencontainers.image.source https://github.com/trstringer/manual-approval
COPY --from=builder /var/app/trafficgen /var/app/trafficgen
ENTRYPOINT ["/var/app/trafficgen"]
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.users
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM golang:1.22@sha256:7b297d9abee021bab9046e492506b3c2da8a3722cbf301653186545ecc1e00bb AS builder
LABEL org.opencontainers.image.source https://github.com/trstringer/otel-shopping-cart
COPY . /var/app
WORKDIR /var/app
RUN CGO_ENABLED=0 go build -o users ./cmd/users
Expand Down

0 comments on commit 3b339d1

Please sign in to comment.