Skip to content

Commit

Permalink
Keep origin install-hugegraph-from-tar.sh
Browse files Browse the repository at this point in the history
Change-Id: Ide5ab2ef23ac0be55db54761dbb537383e3c2f6f
  • Loading branch information
Linary committed Dec 11, 2020
1 parent 620f3f4 commit 39836b8
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ install: mvn compile -Dmaven.javadoc.skip=true | grep -v "Downloading\|Downloade

before_script:
- $TRAVIS_DIR/set-env.sh
- $TRAVIS_DIR/install-hugegraph.sh $TRAVIS_BRANCH | grep -v "Downloading\|Downloaded"
- $TRAVIS_DIR/install-hugegraph-from-source.sh $TRAVIS_BRANCH | grep -v "Downloading\|Downloaded"
- |
if [ "$SOURCE_TYPE" == "hdfs" ]; then
$TRAVIS_DIR/install-hadoop.sh
Expand Down
File renamed without changes.
53 changes: 53 additions & 0 deletions assembly/travis/install-hugegraph-from-tar.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/bash

set -ev

if [[ $# -ne 1 ]]; then
echo "Must pass server version of hugegraph"
exit 1
fi

VERSION=$1
HUGEGRAPH_LINK="https://github.com/hugegraph/hugegraph/releases/download/v${VERSION}/hugegraph-${VERSION}.tar.gz"

wget ${HUGEGRAPH_LINK} || exit 1

tar -zxvf hugegraph-${VERSION}.tar.gz

HTTPS_SERVER_DIR="hugegraph_https"

mkdir $HTTPS_SERVER_DIR

cp -r hugegraph-${VERSION}/. $HTTPS_SERVER_DIR

cd hugegraph-${VERSION}

bin/init-store.sh || exit 1

bin/start-hugegraph.sh || exit 1

cd ../

cd $HTTPS_SERVER_DIR

cp ../$TRAVIS_DIR/conf/server.keystore conf

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 "ssl.keystore_password=123456" >> ${REST_SERVER_CONFIG}

echo "ssl.keystore_file=conf/server.keystore" >> ${REST_SERVER_CONFIG}

echo "gremlinserver.url=http://127.0.0.1:8282" >> $REST_SERVER_CONFIG

bin/init-store.sh

bin/start-hugegraph.sh

cd ../

0 comments on commit 39836b8

Please sign in to comment.