Skip to content

Commit

Permalink
Merge pull request #332 from pmienk/master
Browse files Browse the repository at this point in the history
Cleanup, copyright date update, add docker sample, developer_setup.sh updates.
  • Loading branch information
pmienk authored Jan 5, 2025
2 parents e0e0419 + 44ea1d3 commit 5b48971
Show file tree
Hide file tree
Showing 73 changed files with 185 additions and 93 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-build developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-build developers (see COPYING).
#
###############################################################################

Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# Generate build artifacts for libbitcoin repositories using XML + GSL.
###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindBash-Completion.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-server developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-server developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindBitcoin-Blockchain.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-node developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-node developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindBitcoin-Client.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-explorer developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-explorer developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindBitcoin-Consensus.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-blockchain developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-blockchain developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindBitcoin-Database.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-blockchain developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-blockchain developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindBitcoin-Network.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-node developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-node developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindBitcoin-Node.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-server developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-server developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindBitcoin-Protocol.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-server developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-server developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindBitcoin-System.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-protocol developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-protocol developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindBitcoin.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-protocol developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-protocol developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindDl.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
###############################################################################
# Finddl
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindIcu-I18N.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindMbedtls.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
###############################################################################
# FindMbedtls
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindPng.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindQrencode.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindRt.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
###############################################################################
# Findrt
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindSecp256K1.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-consensus developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-consensus developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindZmq.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2014-2023 libbitcoin-protocol developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin-protocol developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
Expand Down
57 changes: 57 additions & 0 deletions docker/bs.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
FROM alpine:latest AS build

ENV BUILD_DEPS="build-base linux-headers gcc make autoconf automake libtool pkgconf git wget bash"
ENV CPPFLAGS="-O3"

RUN apk update && \
apk add --update ${BUILD_DEPS}

RUN mkdir -p /build/src /build/obj /build/prefix

COPY developer_setup.sh /build
COPY src/ /build/src
RUN /build/developer_setup.sh \
--enable-isystem \
--without-consensus \
--with-icu \
--build-icu \
--build-boost \
--build-zmq \
--build-mode=configure \
--build-target=all \
--build-src-dir=/build/src \
--build-obj-dir=/build/obj \
--prefix=/build/prefix \
--disable-shared \
--enable-static && \
rm -rf /build/src /build/obj



FROM alpine:latest AS runtime

COPY --from=build /build/prefix/bin/bs /bitcoin

# Bitcoin P2P
EXPOSE 8333/tcp
EXPOSE 8333/udp

# Query Service (Secure/Public)
EXPOSE 9081/tcp
EXPOSE 9091/tcp

# Heartbeat Service (Secure/Public)
EXPOSE 9082/tcp
EXPOSE 9092/tcp

# Block Service (Secure/Public)
EXPOSE 9083/tcp
EXPOSE 9093/tcp

# Transaction Service (Secure/Public)
EXPOSE 9084/tcp
EXPOSE 9094/tcp

VOLUME ["/bitcoin/data", "/bitcoin/conf"]
ENTRYPOINT ["/bitcoin/bs"]
CMD ["-c", "/bitcoin/conf/bs.cfg", "-i", "/bitcoin/data"]
2 changes: 1 addition & 1 deletion generate3.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
REM ###########################################################################
REM Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
REM Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
REM
REM Generate libbitcoin-build artifacts from XML + GSL.
REM
Expand Down
2 changes: 1 addition & 1 deletion generate3.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# Generate libbitcoin build artifacts from XML + GSL.
#
Expand Down
2 changes: 1 addition & 1 deletion generate3.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version = "1.0" ?>
<!-- Copyright (c) 2014-2023 libbitcoin developers (see COPYING). -->
<!-- Copyright (c) 2014-2025 libbitcoin developers (see COPYING). -->
<generate language="en-us" >

<repository name="libbitcoin-consensus" version="3.8.0" email="[email protected]" >
Expand Down
2 changes: 1 addition & 1 deletion generate4.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
REM ###########################################################################
REM Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
REM Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
REM
REM Generate libbitcoin-build artifacts from XML + GSL.
REM
Expand Down
2 changes: 1 addition & 1 deletion generate4.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# Generate libbitcoin build artifacts from XML + GSL.
#
Expand Down
2 changes: 1 addition & 1 deletion generate4.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version = "1.0" ?>
<!-- Copyright (c) 2014-2023 libbitcoin developers (see COPYING). -->
<!-- Copyright (c) 2014-2025 libbitcoin developers (see COPYING). -->
<generate language="en-us" >

<repository name="libbitcoin-system" version="4.0.0" email="[email protected]" >
Expand Down
2 changes: 1 addition & 1 deletion gsl.copy_modules.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate copy_modules.cmd.
#
Expand Down
2 changes: 1 addition & 1 deletion gsl.copy_modules.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate copy_modules.sh.
#
Expand Down
2 changes: 1 addition & 1 deletion gsl.copy_properties.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate copy_properties.cmd.
#
Expand Down
2 changes: 1 addition & 1 deletion gsl.copy_properties.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate copy_properties.sh.
#
Expand Down
2 changes: 1 addition & 1 deletion gsl.generate_artifacts.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate generate_artifacts.cmd.
#
Expand Down
2 changes: 1 addition & 1 deletion gsl.generate_artifacts.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate generate_artifacts.sh.
#
Expand Down
2 changes: 1 addition & 1 deletion library/collections.gsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL libbitcoin collection utilities in the 'global' scope.
#
Expand Down
2 changes: 1 addition & 1 deletion library/collections_test.gsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL libbitcoin collection utilities tests.
#
Expand Down
2 changes: 1 addition & 1 deletion library/math.gsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL libbitcoin math utilities in the 'global' scope.
#
Expand Down
2 changes: 1 addition & 1 deletion library/math_test.gsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL libbitcoin math utilities tests.
#
Expand Down
2 changes: 1 addition & 1 deletion library/string.gsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL libbitcoin string utilities in the 'global' scope.
#
Expand Down
2 changes: 1 addition & 1 deletion library/string_test.gsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL libbitcoin string utilities tests.
#
Expand Down
2 changes: 1 addition & 1 deletion library/test.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@ECHO OFF
REM ###########################################################################
REM Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
REM Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
REM
REM Test libbitcoin build collection utilities.
REM
Expand Down
2 changes: 1 addition & 1 deletion library/test.gsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL libbitcoin test utilities in the 'global' scope.
#
Expand Down
2 changes: 1 addition & 1 deletion templates/gsl.CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate libbitcoin CMakeLists.txt.
#
Expand Down
2 changes: 1 addition & 1 deletion templates/gsl.CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate libbitcoin .vscode/settings.json.
#
Expand Down
2 changes: 1 addition & 1 deletion templates/gsl.Find.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate Find<pkg-config dependency>.cmake.
#
Expand Down
2 changes: 1 addition & 1 deletion templates/gsl.Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate libbitcoin Makefile.am.
#
Expand Down
2 changes: 1 addition & 1 deletion templates/gsl.appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.template 0
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate libbitcoin appveyor.yml.
#
Expand Down
Loading

0 comments on commit 5b48971

Please sign in to comment.