Skip to content

Commit

Permalink
Improved distribution script
Browse files Browse the repository at this point in the history
  • Loading branch information
spoto committed Apr 20, 2024
1 parent fe65ff0 commit 439dc81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ scripts/*_node_info/
.settings/
.project
hotmoka.log*
spring.log.*
tendermint.log
moka_*.tar.gz

# IntelliJ
out/
Expand Down
10 changes: 7 additions & 3 deletions build_and_docker.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash

# This Maven invocation will compile and install all Hotmoka and Takamaka
# This Maven invocation will compile and install all Hotmoka
# jars in your local Maven repository. Remove -DskipTests if you
# what to run the tests as well. Modules get compiled and
# distributed inside the modules/ directory.
# what to run the tests as well.
# Docker images are created at the end and pushed to DockerHub
# (you must have the right to do that)
# A moka_VERSION.tar.gz archive get created containing all modules.
# for running the moka script.


if [ -z $1 ]
then
Expand All @@ -29,3 +31,5 @@ DOCKER_FILE_HOTMOKA=dockerfiles/tendermint-node/tendermint-node-arm64
DOCKER_FILE_BLUEKNOT=dockerfiles/tendermint-node/blueknot-tendermint-node-arm64
docker buildx build --push --platform linux/arm64 -t ${DOCKER_IMAGE_HOTMOKA} -f ${DOCKER_FILE_HOTMOKA} .
#docker buildx build --push --platform linux/arm64 -t ${DOCKER_IMAGE_BLUEKNOT} -f ${DOCKER_FILE_BLUEKNOT} .

tar -cvf moka_${VERSION}.tar --directory io-hotmoka-moka modules moka moka.bat; gzip moka_${VERSION}.tar

0 comments on commit 439dc81

Please sign in to comment.