-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup build process and workflows (#1851)
* Suppress depends related superfluous warnings * Fix passthrough string quote * Fix windres, bcrypt failures * Cleanup build, workflows, dockerfiles * Cleanup comments * Refactor default var setup * Cleanup comments * Add safe_rm_rf and simplify left file list * Fix shellcheck * Fix arm core images * More cleanup, unify packaging, safer rm * Apply default conf across all arch, conf args append * Apply glibc compat only on linux builds * Clean up obsolete comments
- Loading branch information
1 parent
80f249c
commit 44a1f8b
Showing
15 changed files
with
260 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
ARG TARGET=aarch64-linux-gnu | ||
|
||
# ----------- | ||
FROM ubuntu:20.04 as builder-base | ||
ARG TARGET | ||
LABEL org.defichain.name="defichain-builder-base" | ||
LABEL org.defichain.arch=${TARGET} | ||
|
||
WORKDIR /work | ||
COPY ./make.sh . | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive && ./make.sh pkg_update_base | ||
RUN export DEBIAN_FRONTEND=noninteractive && ./make.sh pkg_install_deps | ||
RUN export DEBIAN_FRONTEND=noninteractive && ./make.sh pkg_install_deps_arm64 | ||
|
||
# ----------- | ||
FROM builder-base as depends-builder | ||
ARG TARGET | ||
LABEL org.defichain.name="defichain-depends-builder" | ||
LABEL org.defichain.arch=${TARGET} | ||
|
||
WORKDIR /work | ||
COPY ./depends ./depends | ||
|
||
RUN ./make.sh clean-depends && ./make.sh build-deps | ||
|
||
# ----------- | ||
FROM builder-base as builder | ||
ARG TARGET | ||
ARG BUILD_VERSION= | ||
|
||
LABEL org.defichain.name="defichain-builder" | ||
LABEL org.defichain.arch=${TARGET} | ||
|
||
WORKDIR /work | ||
|
||
COPY . . | ||
RUN ./make.sh purge && rm -rf ./depends | ||
COPY --from=depends-builder /work/depends ./depends | ||
|
||
RUN ./make.sh build-conf && ./make.sh build-make | ||
|
||
RUN mkdir /app && make prefix=/ DESTDIR=/app install && cp /work/README.md /app/. | ||
|
||
# ----------- | ||
### Actual image that contains defi binaries | ||
FROM arm64v8/ubuntu:20.04 | ||
ARG TARGET | ||
LABEL org.defichain.name="defichain" | ||
LABEL org.defichain.arch=${TARGET} | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /app/. ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.