This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Oleksandr Garagatyi <[email protected]>
- Loading branch information
Oleksandr Garagatyi
committed
Dec 11, 2018
1 parent
eb9ba03
commit 946fc62
Showing
10 changed files
with
673 additions
and
6 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 @@ | ||
# Ignore binaries with these names but not folders with the same names | ||
*/che-plugin-broker/che-plugin-broker | ||
*/theia-plugin-broker/theia-plugin-broker | ||
*/vscode-extension-broker/cmd/vscode-extension-broker |
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# Copyright (c) 2012-2018 Red Hat, Inc. | ||
\# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Contributors: | ||
# Red Hat, Inc. - initial API and implementation | ||
# | ||
|
||
FROM golang:1.10-alpine as builder | ||
RUN apk add --no-cache ca-certificates | ||
RUN adduser -D -g '' appuser | ||
WORKDIR /go/src/github.com/eclipse/che-plugin-broker/brokers/vscode/cmd/ | ||
COPY . /go/src/github.com/eclipse/che-plugin-broker/ | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-w -s' -installsuffix cgo -o vscode-extension-broker main.go | ||
|
||
|
||
FROM alpine:3.7 | ||
USER appuser | ||
COPY --from=builder /etc/passwd /etc/passwd | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /go/src/github.com/eclipse/che-plugin-broker/brokers/vscode/cmd/vscode-extension-broker / | ||
ENTRYPOINT ["/vscode-extension-broker"] |
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
Oops, something went wrong.