Skip to content

Commit

Permalink
add license file to linux distribution and docker image (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
xwa153 authored Sep 27, 2024
1 parent eed3dec commit b69bfb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
arch: ${{ matrix.goarch }}
reproducible: report
instructions: |
cp LICENSE $TARGET_DIR/LICENSE.txt
make build
build-linux:
Expand Down Expand Up @@ -119,6 +120,7 @@ jobs:
arch: ${{ matrix.goarch }}
reproducible: report
instructions: |
cp LICENSE $TARGET_DIR/LICENSE.txt
make build
build-darwin:
Expand Down Expand Up @@ -154,6 +156,7 @@ jobs:
arch: ${{ matrix.goarch }}
reproducible: report
instructions: |
cp LICENSE $TARGET_DIR/LICENSE.txt
make build
build-docker-default:
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ ARG TARGETOS
ARG TARGETARCH
ARG PRODUCT_VERSION
ARG BIN_NAME
ENV PRODUCT_NAME=$BIN_NAME

LABEL name="http-echo" \
maintainer="HashiCorp Consul Team <[email protected]>" \
vendor="HashiCorp" \
version=$PRODUCT_VERSION \
release=$PRODUCT_VERSION \
summary="A test webserver that echos a response. You know, for kids."
licenses="MPL-2.0" \
summary="A test webserver that echos a response. You know, for kids."

COPY dist/$TARGETOS/$TARGETARCH/$BIN_NAME /
COPY LICENSE /usr/share/doc/$PRODUCT_NAME/LICENSE.txt

EXPOSE 5678/tcp

Expand Down

0 comments on commit b69bfb9

Please sign in to comment.