This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
15 changed files
with
80 additions
and
87 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
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
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
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 |
---|---|---|
@@ -1,25 +1,22 @@ | ||
FROM golang:1.14.13-stretch | ||
FROM golang:1.16-alpine as builder | ||
|
||
ENV GO111MODULE=on | ||
WORKDIR /ion | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
RUN go mod download | ||
|
||
COPY go.mod go.sum ./ | ||
RUN cd $GOPATH/src/github.com/pion/ion && go mod download | ||
COPY pkg/ pkg/ | ||
COPY proto/ proto/ | ||
COPY apps/ apps/ | ||
|
||
COPY pkg/ $GOPATH/src/github.com/pion/ion/pkg | ||
COPY proto/ $GOPATH/src/github.com/pion/ion/proto | ||
COPY apps $GOPATH/src/github.com/pion/ion/apps | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -installsuffix cgo -o /ion/app-room ./apps/room | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion/apps/room | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /app-room . | ||
FROM alpine | ||
|
||
FROM alpine:3.12.1 | ||
|
||
RUN apk --no-cache add ca-certificates | ||
COPY --from=0 /app-room /usr/local/bin/app-room | ||
COPY --from=builder /ion/app-room /app-room | ||
|
||
COPY configs/docker/app-room.toml /configs/app-room.toml | ||
|
||
ENTRYPOINT ["/usr/local/bin/app-room"] | ||
ENTRYPOINT ["/app-room"] | ||
CMD ["-c", "/configs/app-room.toml"] |
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,24 +1,22 @@ | ||
FROM golang:1.14.13-stretch | ||
FROM golang:1.16-alpine as builder | ||
|
||
ENV GO111MODULE=on | ||
WORKDIR /ion | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
RUN go mod download | ||
|
||
COPY go.mod go.sum ./ | ||
RUN cd $GOPATH/src/github.com/pion/ion && go mod download | ||
COPY pkg/ pkg/ | ||
COPY proto/ proto/ | ||
COPY cmd/ cmd/ | ||
|
||
COPY pkg/ $GOPATH/src/github.com/pion/ion/pkg | ||
COPY cmd/ $GOPATH/src/github.com/pion/ion/cmd | ||
COPY proto/ $GOPATH/src/github.com/pion/ion/proto | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o /ion/islb ./cmd/islb | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion/cmd/islb | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /islb . | ||
FROM alpine | ||
|
||
FROM alpine:3.12.1 | ||
RUN apk --no-cache add ca-certificates | ||
COPY --from=0 /islb /usr/local/bin/islb | ||
COPY --from=builder /ion/islb /islb | ||
|
||
COPY configs/docker/islb.toml /configs/islb.toml | ||
|
||
ENTRYPOINT ["/usr/local/bin/islb"] | ||
ENTRYPOINT ["/islb"] | ||
CMD ["-c", "/configs/islb.toml"] |
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,25 +1,21 @@ | ||
FROM golang:1.14.13-stretch | ||
FROM golang:1.16-alpine as builder | ||
|
||
ENV GO111MODULE=on | ||
WORKDIR /ion | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
|
||
COPY go.mod go.sum ./ | ||
RUN cd $GOPATH/src/github.com/pion/ion && go mod download | ||
COPY pkg/ pkg/ | ||
COPY proto/ proto/ | ||
COPY cmd/ cmd/ | ||
|
||
COPY pkg/ $GOPATH/src/github.com/pion/ion/pkg | ||
COPY cmd/ $GOPATH/src/github.com/pion/ion/cmd | ||
COPY proto/ $GOPATH/src/github.com/pion/ion/proto | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o /ion/sfu ./cmd/sfu | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion/cmd/sfu | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /sfu . | ||
FROM alpine | ||
|
||
FROM alpine:3.12.1 | ||
|
||
RUN apk --no-cache add ca-certificates | ||
COPY --from=0 /sfu /usr/local/bin/sfu | ||
COPY --from=builder /ion/sfu /sfu | ||
|
||
COPY configs/docker/sfu.toml /configs/sfu.toml | ||
|
||
ENTRYPOINT ["/usr/local/bin/sfu"] | ||
ENTRYPOINT ["/sfu"] | ||
CMD ["-c", "/configs/sfu.toml"] |
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,25 +1,22 @@ | ||
FROM golang:1.14.13-stretch | ||
FROM golang:1.16-alpine as builder | ||
|
||
ENV GO111MODULE=on | ||
WORKDIR /ion | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
RUN go mod download | ||
|
||
COPY go.mod go.sum ./ | ||
RUN cd $GOPATH/src/github.com/pion/ion && go mod download | ||
COPY pkg/ pkg/ | ||
COPY proto/ proto/ | ||
COPY cmd/ cmd/ | ||
|
||
COPY pkg/ $GOPATH/src/github.com/pion/ion/pkg | ||
COPY cmd/ $GOPATH/src/github.com/pion/ion/cmd | ||
COPY proto/ $GOPATH/src/github.com/pion/ion/proto | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o /ion/signal ./cmd/signal | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion/cmd/signal | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /signal . | ||
FROM alpine | ||
|
||
FROM alpine:3.12.1 | ||
|
||
RUN apk --no-cache add ca-certificates | ||
COPY --from=0 /signal /usr/local/bin/signal | ||
COPY --from=builder /ion/signal /signal | ||
|
||
COPY configs/docker/signal.toml /configs/signal.toml | ||
|
||
ENTRYPOINT ["/usr/local/bin/signal"] | ||
ENTRYPOINT ["/signal"] | ||
CMD ["-c", "/configs/signal.toml"] |
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