Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

(WIP) fix docker build for breez cgo #2

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3bb846b
go 1.21.x
frnandu Jan 18, 2024
5f97fde
don't use alpine
frnandu Jan 19, 2024
5a4257e
don't copy
frnandu Jan 19, 2024
26348f2
go-version: 1.21.x
frnandu Jan 19, 2024
a6ee207
don't run tests
frnandu Jan 19, 2024
3486f03
wget libbreez_sdk_bindings and copy it into final
frnandu Jan 19, 2024
455f477
wails worflow
frnandu Jan 19, 2024
9caa8d8
wails worflow
frnandu Jan 20, 2024
217aa5b
wails worflow
frnandu Jan 20, 2024
36a3425
wails worflow
frnandu Jan 20, 2024
74df9c4
wails worflow
frnandu Jan 20, 2024
197b064
wails worflow
frnandu Jan 20, 2024
4c207f9
Merge remote-tracking branch 'origin/build-specific-js' into test-fmar
frnandu Jan 20, 2024
8399416
prepare:http
frnandu Jan 20, 2024
a60552a
remove alby-deployment stuff
frnandu Jan 20, 2024
1b95f5e
uncomment tests
frnandu Jan 20, 2024
fd493b3
uncomment tests
frnandu Jan 20, 2024
e05a259
remove workflow, multiplatform only amd64 for now
frnandu Jan 20, 2024
38dc37b
Merge remote-tracking branch 'origin/feat/wails-v2' into test-fmar
frnandu Jan 24, 2024
4c694f7
try building for arm64
frnandu Jan 24, 2024
7a6dacf
GOARCH=$(echo "$TARGETPLATFORM" | cut -d'/' -f2)
frnandu Jan 24, 2024
c32914a
update to github.com/breez/breez-sdk-go v0.2.14
frnandu Jan 25, 2024
2d0cf8a
update to github.com/breez/breez-sdk-go v0.2.14
frnandu Jan 25, 2024
0d8900a
add linux/386
frnandu Jan 25, 2024
acf2fb6
wails doctor
frnandu Jan 25, 2024
1325553
wails doctor
frnandu Jan 25, 2024
0fc6557
trying static
frnandu Feb 1, 2024
272b98c
Merge branch 'master' into test-fmar
frnandu Feb 2, 2024
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
1 change: 0 additions & 1 deletion .github/workflows/wails.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
path: |
*/bin/
*\bin\*

# - uses: dAppServer/[email protected]
# with:
# build-name: ${{ matrix.build.name }}
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN apt-get update && \

ENV CGO_ENABLED=1
ENV GOOS=linux
ENV CGO_LDFLAGS=-static
#ENV GOARCH=$GOARCH

#RUN echo "AAA $GOARCH"
Expand All @@ -25,6 +26,7 @@ WORKDIR /build
# Copy and download dependency using go mod
COPY go.mod .
COPY go.sum .
COPY breez-sdk-go .
RUN GOARCH=$(echo "$TARGETPLATFORM" | cut -d'/' -f2) go mod download

# Copy the code into the container
Expand All @@ -35,17 +37,17 @@ COPY --from=frontend /build/frontend/dist ./frontend/dist

RUN GOARCH=$(echo "$TARGETPLATFORM" | cut -d'/' -f2) go build -o main .

RUN wget https://github.com/breez/breez-sdk-go/raw/main/breez_sdk/lib/linux-amd64/libbreez_sdk_bindings.so
#RUN wget https://github.com/breez/breez-sdk-go/raw/main/breez_sdk/lib/linux-amd64/libbreez_sdk_bindings.so

# Start a new, final image to reduce size.
FROM debian as final


ENV LD_LIBRARY_PATH=/usr/lib/libbreez
#ENV LD_LIBRARY_PATH=/usr/lib/libbreez
#
# # Copy the binaries and entrypoint from the builder image.
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /build/libbreez_sdk_bindings.so /usr/lib/libbreez/
#COPY --from=builder /build/libbreez_sdk_bindings.so /usr/lib/libbreez/
COPY --from=builder /build/main /bin/

ENTRYPOINT [ "/bin/main" ]
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ go 1.21

toolchain go1.21.1

replace github.com/breez/breez-sdk-go => ./breez-sdk-go

require (
github.com/breez/breez-sdk-go v0.2.14
github.com/davrux/echo-logrus/v4 v4.0.3
Expand Down
Loading