mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
dev.Dockerfile: allow forcing a taprpc version
We can now use the `TAPRPC_VERSION` build argument to force a specific taprpc version to be used when building. If the `TAPRPC_VERSION` build argument is not set, then build continues as before this change and uses the version already defined in `go.mod` and `go.sum`.
This commit is contained in:
parent
60a2b65afb
commit
c3ff3e91b0
1 changed files with 8 additions and 2 deletions
|
|
@ -30,12 +30,13 @@ COPY --from=nodejsbuilder /go/src/github.com/lightninglabs/lightning-terminal /g
|
|||
# queries required to connect to linked containers succeed.
|
||||
ENV GODEBUG netdns=cgo
|
||||
|
||||
# Allow forcing a specific lnd and taproot-assets version through a build
|
||||
# argument.
|
||||
# Allow forcing a specific lnd, taproot-assets, and taprpc version through a
|
||||
# build argument.
|
||||
# Please see https://go.dev/ref/mod#version-queries for the types of
|
||||
# queries that can be used to define a version.
|
||||
ARG LND_VERSION
|
||||
ARG TAPROOT_ASSETS_VERSION
|
||||
ARG TAPRPC_VERSION
|
||||
|
||||
# Need to restate this since running in a new container from above.
|
||||
ARG NO_UI
|
||||
|
|
@ -53,6 +54,11 @@ RUN apk add --no-cache --update alpine-sdk make \
|
|||
go get -v github.com/lightninglabs/taproot-assets@$TAPROOT_ASSETS_VERSION \
|
||||
&& go mod tidy; \
|
||||
fi \
|
||||
# If a custom taprpc version is supplied, force it now.
|
||||
&& if [ -n "$TAPRPC_VERSION" ]; then \
|
||||
go get -v github.com/lightninglabs/taproot-assets/taprpc@$TAPRPC_VERSION \
|
||||
&& go mod tidy; \
|
||||
fi \
|
||||
&& if [ "$NO_UI" -eq "1" ]; then \
|
||||
make go-install-noui \
|
||||
&& make go-install-cli-noui; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue