-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from mgfeller/feature/mgfeller/98
[Code] Refactored to use meshery-adapter-library
- Loading branch information
Showing
19 changed files
with
921 additions
and
1,852 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,16 +1,18 @@ | ||
FROM golang:1.13 as bd | ||
RUN adduser --disabled-login appuser | ||
WORKDIR /github.com/layer5io/meshery-consul | ||
ADD . . | ||
RUN GOPROXY=direct GOSUMDB=off go build -ldflags="-w -s" -a -o /meshery-consul . | ||
RUN find . -name "*.go" -type f -delete; mv consul / | ||
|
||
FROM alpine | ||
RUN apk --update add ca-certificates | ||
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 | ||
COPY --from=bd /meshery-consul /app/ | ||
COPY --from=bd /consul /app/consul | ||
COPY --from=bd /etc/passwd /etc/passwd | ||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup | ||
RUN apk --update add ca-certificates && \ | ||
mkdir /lib64 && \ | ||
ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 | ||
|
||
USER appuser | ||
WORKDIR /app | ||
RUN mkdir -p /home/appuser/.kube | ||
WORKDIR /home/appuser | ||
COPY --from=bd /meshery-consul /home/appuser | ||
COPY --from=bd /consul /home/appuser/consul | ||
CMD ./meshery-consul |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.