mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Updating docker image tags with version number (#372)
This commit is contained in:
committed by
GitHub
parent
42cf454396
commit
0c8c5aa0e3
@@ -12,12 +12,12 @@ cp $hpcoredir/build/hpcore $hpcoredir/test/bin/{hpfs,hpws,libblake3.so} $tmp/
|
||||
strip $tmp/hpcore
|
||||
|
||||
# Remove the revision component from hp version to make up the image version.
|
||||
# hpversion=$($tmp/hpcore version | head -n 1)
|
||||
# imgversion=$(echo "${hpversion%.*}")
|
||||
imgversion="latest"
|
||||
hpversion=$($tmp/hpcore version | head -n 1)
|
||||
imgversion=$(echo "${hpversion}")
|
||||
# imgversion="latest"
|
||||
|
||||
# Ubuntu base image
|
||||
docker build -t $img:$imgversion-ubt.20.04 -f ./$basefile $tmp/
|
||||
docker build -t $img:$imgversion-ubt.20.04 -t $img:latest-ubt.20.04 -f ./$basefile $tmp/
|
||||
rm -r $tmp/*
|
||||
|
||||
# NodeJs image
|
||||
@@ -27,6 +27,6 @@ tar -xvJf $tmp/nodejs.tar.xz --strip-components=2 -C $tmp/ node-v16.14.0-linux-x
|
||||
rm $tmp/nodejs.tar.xz
|
||||
cp ./$njsfile $tmp/
|
||||
sed -i "s/%ver%/$imgversion/g" $tmp/$njsfile
|
||||
docker build -t $img:$imgversion-ubt.20.04-njs.16 -f $tmp/$njsfile $tmp
|
||||
docker build -t $img:$imgversion-ubt.20.04-njs.16 -t $img:latest-ubt.20.04-njs.16 -f $tmp/$njsfile $tmp
|
||||
|
||||
rm -r $tmp
|
||||
Reference in New Issue
Block a user