-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
* | ||
*/* | ||
!dist/* | ||
!LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ ARG TARGETOS TARGETARCH | |
# Export BIN_NAME for the CMD below, it can't see ARGs directly. | ||
ENV BIN_NAME=$BIN_NAME | ||
ENV VERSION=$PRODUCT_VERSION | ||
ENV PRODUCT_NAME=$BIN_NAME | ||
|
||
LABEL description="consul-ecs provides first-class integration between Consul and AWS ECS." \ | ||
maintainer="Consul Team <[email protected]>" \ | ||
|
@@ -35,6 +36,7 @@ LABEL description="consul-ecs provides first-class integration between Consul an | |
org.opencontainers.image.title=$BIN_NAME \ | ||
org.opencontainers.image.url="https://www.consul.io/" \ | ||
org.opencontainers.image.vendor="HashiCorp" \ | ||
org.opencontainers.image.licenses="MPL-2.0" \ | ||
org.opencontainers.image.version=$PRODUCT_VERSION | ||
|
||
# Create a non-root user to run the software. | ||
|
@@ -63,6 +65,7 @@ RUN ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2 | |
USER $BIN_NAME | ||
ENTRYPOINT ["/bin/consul-ecs"] | ||
COPY dist/$TARGETOS/$TARGETARCH/$BIN_NAME /bin/ | ||
COPY LICENSE /usr/share/doc/$PRODUCT_NAME/LICENSE.txt | ||
COPY --from=go-discover /go/bin/discover /bin/ | ||
|
||
# Separate FIPS target to accomodate CRT label assumptions | ||
|