Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docker/umbrel.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Start with the chantools base image
ARG VERSION
FROM guggero/chantools:${VERSION:-latest} AS golangbuilder

FROM tsl0922/ttyd:1.7.7-alpine@sha256:e17d5420fa78ea6271e32a06eec334adda6f54077e56e3969340fb47e604c24c AS final

# Define a root volume for data persistence.
VOLUME /chantools
WORKDIR /chantools

# We'll expect the lnd data directory to be mounted here.
VOLUME /lnd

# Copy the binaries and entrypoint from the builder image.
COPY --from=golangbuilder /bin/chantools /bin/
COPY ./docker/bash-wrapper.sh /bash-wrapper.sh

# Add bash.
RUN apk add --no-cache \
bash \
jq \
ca-certificates \
12 changes: 11 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,17 @@ function build_release() {
# arguments: <version-tag>
function docker_release() {
local tag=$1
docker buildx build --platform linux/arm64,linux/amd64 --tag $DOCKER_USER/$PACKAGE:$tag --output "type=registry" .
docker buildx build \
--platform linux/arm64,linux/amd64 \
--tag $DOCKER_USER/$PACKAGE:$tag \
--tag $DOCKER_USER/$PACKAGE:latest --output "type=registry" .

docker buildx build \
-f docker/umbrel.Dockerfile \
--platform linux/arm64,linux/amd64 \
--build-arg VERSION=$tag \
--tag $DOCKER_USER/$PACKAGE:$tag-umbrel \
--tag $DOCKER_USER/$PACKAGE:latest-umbrel --output "type=registry" .
}

# usage prints the usage of the whole script.
Expand Down