diff --git a/CMakeLists.txt b/CMakeLists.txt index 91e2711a..f905e265 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ target_link_libraries(hpcore add_custom_command(TARGET hpcore POST_BUILD # COMMAND strip ./build/hpcore - COMMAND cp ./test/bin/hpws ./test/bin/hpfs ./build/ + COMMAND cp ./test/bin/hpws ./test/bin/hpfs ./evernode-license.pdf ./build/ ) target_precompile_headers(hpcore PUBLIC src/pchheader.hpp) @@ -88,6 +88,7 @@ add_custom_target(docker COMMAND mkdir -p ./test/local-cluster/bin COMMAND cp ./build/hpcore ./test/local-cluster/bin/ COMMAND cp ./test/bin/libblake3.so ./test/bin/hpws ./test/bin/hpfs ./test/local-cluster/bin/ + COMMAND cp ./evernode-license.pdf ./test/local-cluster/bin/ COMMAND docker build -t hpcore:latest -t hpcore:0.6.4 -f ./test/local-cluster/Dockerfile ./test/local-cluster/bin/ ) set_target_properties(docker PROPERTIES EXCLUDE_FROM_ALL TRUE) diff --git a/evernode-license.pdf b/evernode-license.pdf new file mode 100644 index 00000000..2a969155 Binary files /dev/null and b/evernode-license.pdf differ diff --git a/test/docker/Dockerfile.ubt.20.04 b/test/docker/Dockerfile.ubt.20.04 index bf5f8d2e..f5ed6b62 100644 --- a/test/docker/Dockerfile.ubt.20.04 +++ b/test/docker/Dockerfile.ubt.20.04 @@ -13,6 +13,6 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* \ && mkdir /usr/local/bin/hotpocket -COPY hpcore hpfs hpws /usr/local/bin/hotpocket/ +COPY hpcore hpfs hpws evernode-license.pdf /usr/local/bin/hotpocket/ ENTRYPOINT ["/usr/local/bin/hotpocket/hpcore"] diff --git a/test/docker/build.sh b/test/docker/build.sh index f8a065c2..6dfaa004 100755 --- a/test/docker/build.sh +++ b/test/docker/build.sh @@ -8,7 +8,7 @@ njsfile="Dockerfile.ubt.20.04-njs" # Prepare build context tmp=$(mktemp -d) -cp $hpcoredir/build/hpcore $hpcoredir/test/bin/{hpfs,hpws,libblake3.so} $tmp/ +cp $hpcoredir/build/hpcore $hpcoredir/test/bin/{hpfs,hpws,libblake3.so} $hpcoredir/evernode-license.pdf $tmp/ strip $tmp/hpcore # Remove the revision component from hp version to make up the image version. diff --git a/test/local-cluster/Dockerfile b/test/local-cluster/Dockerfile index 0d36bdb7..01870791 100644 --- a/test/local-cluster/Dockerfile +++ b/test/local-cluster/Dockerfile @@ -2,7 +2,7 @@ FROM evernodedev/hotpocket:latest-ubt.20.04-njs.20 # Copy (overwrite) the local build outputs into the docker image. -COPY hpcore hpfs hpws /usr/local/bin/hotpocket/ +COPY hpcore hpfs hpws evernode-license.pdf /usr/local/bin/hotpocket/ ENTRYPOINT ["/usr/local/bin/hotpocket/hpcore"]