File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ ENV GODEBUG netdns=cgo
11
11
ENV GO111MODULE on
12
12
13
13
ENV NODE_VERSION=v12.17.0
14
+ ENV PROTOC_VERSION=3.12.4
14
15
15
16
# Install dependencies and install/build lightning-terminal.
16
17
RUN apk add --no-cache --update alpine-sdk \
@@ -20,11 +21,14 @@ RUN apk add --no-cache --update alpine-sdk \
20
21
bash \
21
22
binutils \
22
23
tar \
24
+ protobuf \
23
25
&& touch ~/.bashrc \
24
26
&& curl -sfSLO https://unofficial-builds.nodejs.org/download/release/${NODE_VERSION}/node-${NODE_VERSION}-linux-x64-musl.tar.xz \
25
27
&& tar -xf node-${NODE_VERSION}-linux-x64-musl.tar.xz -C /usr --strip 1 \
26
28
&& rm node-${NODE_VERSION}-linux-x64-musl.tar.xz \
27
29
&& curl -o- -L https://yarnpkg.com/install.sh | bash \
30
+ && curl -sfSLO https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip \
31
+ && unzip protoc-${PROTOC_VERSION}-linux-x86_64.zip include/* -d /usr/local/ \
28
32
&& /bin/bash \
29
33
&& . ~/.bashrc \
30
34
&& cd /go/src/github.com/lightninglabs/lightning-terminal \
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const generate = async () => {
30
30
const protocCmd = [
31
31
'protoc' ,
32
32
`--plugin=protoc-gen-ts=${ protocGen } ` ,
33
+ '--proto_path=/usr/local/include' ,
33
34
'--proto_path=../proto' ,
34
35
'--js_out=import_style=commonjs,binary:./src/types/generated' ,
35
36
'--ts_out=service=grpc-web:./src/types/generated' ,
@@ -82,6 +83,7 @@ const main = async () => {
82
83
await patch ( ) ;
83
84
} catch ( error ) {
84
85
console . error ( error ) ;
86
+ process . exit ( 1 ) ;
85
87
}
86
88
} ;
87
89
You can’t perform that action at this time.
0 commit comments