Skip to content

Commit

Permalink
- Use alpine to build the tps-channeld image;
Browse files Browse the repository at this point in the history
- Updated the tick interval of 'hifi' channels to 20ms;
  • Loading branch information
indiest committed Jan 17, 2023
1 parent 42a820a commit 31dcced
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 4 additions & 4 deletions config/channel_settings_hifi.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"1": {
"TickIntervalMs": 10,
"TickIntervalMs": 20,
"DefaultFanOutIntervalMs": 20,
"DefaultFanOutDelayMs": 0,
"RemoveChannelAfterOwnerRemoved": false,
Expand All @@ -11,7 +11,7 @@
}
},
"2": {
"TickIntervalMs": 10,
"TickIntervalMs": 20,
"DefaultFanOutIntervalMs": 20,
"DefaultFanOutDelayMs": 0,
"RemoveChannelAfterOwnerRemoved": true,
Expand All @@ -22,7 +22,7 @@
}
},
"3": {
"TickIntervalMs": 10,
"TickIntervalMs": 20,
"DefaultFanOutIntervalMs": 20,
"DefaultFanOutDelayMs": 0,
"RemoveChannelAfterOwnerRemoved": true,
Expand All @@ -33,7 +33,7 @@
}
},
"4": {
"TickIntervalMs": 10,
"TickIntervalMs": 20,
"DefaultFanOutIntervalMs": 20,
"DefaultFanOutDelayMs": 0,
"RemoveChannelAfterOwnerRemoved": true,
Expand Down
12 changes: 9 additions & 3 deletions examples/channeld-ue-tps/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16
FROM golang:1.18.8-alpine3.16 as builder

COPY . /channeld

Expand All @@ -7,9 +7,15 @@ WORKDIR /channeld/examples/channeld-ue-tps
ENV GOPROXY="https://goproxy.io"
RUN go get -d -v ./...
RUN go install -v ./...
RUN go build -o app .
#RUN go build -o app .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .

FROM alpine as prod

COPY --from=builder /channeld/examples/channeld-ue-tps/app .
COPY ./config ./config

EXPOSE 12108
EXPOSE 11288

CMD ["./app"]
ENTRYPOINT ["./app"]

0 comments on commit 31dcced

Please sign in to comment.