Added license file to Docker (#392)

This commit is contained in:
Dulana Peiris
2023-12-15 17:22:31 +05:30
committed by GitHub
parent 5380b7f022
commit a740b8ed0c
5 changed files with 5 additions and 4 deletions

View File

@@ -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)

BIN
evernode-license.pdf Normal file

Binary file not shown.

View File

@@ -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"]

View File

@@ -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.

View File

@@ -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"]