Updated docker images. (#326)

This commit is contained in:
Ravin Perera
2021-06-23 12:54:39 +05:30
committed by GitHub
parent 6a1fb3c5ad
commit d7733698de
11 changed files with 57 additions and 27 deletions

1
test/docker/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
bin

View File

@@ -0,0 +1,14 @@
# Ubuntu 20.04 + HotPocket
FROM ubuntu:focal
COPY libblake3.so /usr/local/lib/
RUN apt-get update && apt-get install -y \
libssl1.1 \
sqlite3 \
fuse3
RUN mkdir /usr/local/bin/hotpocket
COPY hpcore hpfs hpws appbill /usr/local/bin/hotpocket/
ENTRYPOINT ["/usr/local/bin/hotpocket/hpcore"]

View File

@@ -0,0 +1,7 @@
# HotPocket (Ubuntu 20.04) + NodeJs 14.x
FROM hotpocketdev/hotpocket:ubt.20.04
RUN apt-get install -y curl
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs

14
test/docker/build.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
hpcoredir=$(realpath ../..)
repo=hotpocketdev/hotpocket
# Build base Ubuntu image.
mkdir -p bin
cp $hpcoredir/build/{hpcore,appbill} $hpcoredir/test/bin/{hpfs,hpws,libblake3.so} ./bin/
strip ./bin/hpcore
docker build -t $repo:ubt.20.04 -f ./Dockerfile.ubt.20.04 ./bin
rm -r bin
# NodeJs image.
docker build -t $repo:ubt.20.04-njs.14 -f ./Dockerfile.ubt.20.04-njs.14 .

7
test/docker/push.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
repo=hotpocketdev/hotpocket
./build.sh
docker push $repo:ubt.20.04
docker push $repo:ubt.20.04-njs.14