mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-13 20:21:33 +00:00

- Fixed local mysql port conflict - Added temp files cleaning up - Changed ES doc name to Readme.md
25 lines
539 B
Bash
Executable File
25 lines
539 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
VERSION=$1
|
|
if [ -z "$VERSION" ]; then
|
|
echo "Usage: $0 <version>"
|
|
exit 0
|
|
fi
|
|
|
|
# Assumption: docker is already installed
|
|
# Also, you should be in the sudoers
|
|
|
|
# Build the application's distribution zip
|
|
(cd .. && ./gradlew dist)
|
|
|
|
# Build docker images
|
|
(cd wherehows-frontend && ./build.sh $VERSION)
|
|
(cd wherehows-backend && ./build.sh $VERSION)
|
|
(cd wherehows-mysql && ./build.sh $VERSION)
|
|
(cd wherehows-elasticsearch && ./build.sh $VERSION)
|
|
|
|
cd ..
|
|
echo "now run this to start the application:"
|
|
echo "docker-compose up"
|