-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install hugegraph from source with specified commit id (#120)
Change-Id: I122d10d2b89b2a24fdc4fd402106129fd8dd95ed
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
set -ev | ||
|
||
if [[ $# -ne 1 ]]; then | ||
echo "Must pass base branch name of pull request" | ||
exit 1 | ||
fi | ||
|
||
CLIENT_BRANCH=$1 | ||
HUGEGRAPH_BRANCH=${CLIENT_BRANCH} | ||
HUGEGRAPH_GIT_URL="https://github.com/hugegraph/hugegraph.git" | ||
|
||
git clone --depth 100 ${HUGEGRAPH_GIT_URL} | ||
cd hugegraph | ||
git checkout ${COMMIT_ID} | ||
mvn package -DskipTests | ||
mv hugegraph-*.tar.gz ../ | ||
cd ../ | ||
rm -rf hugegraph | ||
tar -zxvf hugegraph-*.tar.gz | ||
|
||
HTTPS_SERVER_DIR="hugegraph_https" | ||
mkdir ${HTTPS_SERVER_DIR} | ||
cp -r hugegraph-*/. ${HTTPS_SERVER_DIR} | ||
cd hugegraph-* | ||
cp ../$TRAVIS_DIR/conf/* conf | ||
# start HugeGraphServer with http protocol | ||
echo -e "pa" | bin/init-store.sh || exit 1 | ||
bin/start-hugegraph.sh || exit 1 | ||
|
||
cd ../${HTTPS_SERVER_DIR} | ||
REST_SERVER_CONFIG="conf/rest-server.properties" | ||
GREMLIN_SERVER_CONFIG="conf/gremlin-server.yaml" | ||
sed -i "s?http://127.0.0.1:8080?https://127.0.0.1:8443?g" "$REST_SERVER_CONFIG" | ||
sed -i "s/#port: 8182/port: 8282/g" "$GREMLIN_SERVER_CONFIG" | ||
echo "gremlinserver.url=http://127.0.0.1:8282" >> ${REST_SERVER_CONFIG} | ||
|
||
# start HugeGraphServer with https protocol | ||
bin/init-store.sh | ||
bin/start-hugegraph.sh | ||
cd ../ |
File renamed without changes.