mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Updated docker images. (#326)
This commit is contained in:
1
test/docker/.gitignore
vendored
Normal file
1
test/docker/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
bin
|
||||
14
test/docker/Dockerfile.ubt.20.04
Normal file
14
test/docker/Dockerfile.ubt.20.04
Normal 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"]
|
||||
7
test/docker/Dockerfile.ubt.20.04-njs.14
Normal file
7
test/docker/Dockerfile.ubt.20.04-njs.14
Normal 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
14
test/docker/build.sh
Executable 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
7
test/docker/push.sh
Executable 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
|
||||
Reference in New Issue
Block a user