Skip to content

Commit

Permalink
Updated some dev scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWittmann committed Jan 8, 2024
1 parent d13f962 commit a518db1
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 46 deletions.
47 changes: 2 additions & 45 deletions scripts/dev-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,62 +4,19 @@ set -e
BASE_DIR=`dirname $0`
cd $BASE_DIR
BASE_DIR=`pwd`
LOG_DIR=$BASE_DIR/.logs
WORK_DIR=$BASE_DIR/.work
cd ..
HUB_DIR=`pwd`

##
# Clone some repositories that we'll need
##
mkdir -p $WORK_DIR
mkdir -p $LOG_DIR
cd $WORK_DIR
if [ ! -d "apicurio-api-designer" ]; then
git clone [email protected]:Apicurio/apicurio-api-designer.git
else
cd $WORK_DIR/apicurio-api-designer
git stash
git pull origin main
fi
cd $WORK_DIR
if [ ! -d "apicurio-registry" ]; then
git clone [email protected]:Apicurio/apicurio-registry.git
else
cd $WORK_DIR/apicurio-registry
git stash
git pull origin main
fi
cd $WORK_DIR
if [ ! -d "microcks" ]; then
git clone [email protected]:microcks/microcks.git
else
cd $WORK_DIR/microcks
git stash
git pull
fi

source $BASE_DIR/dev-checkout.sh

##
# Do some software builds (be targeted to reduce time)
##
cd $WORK_DIR/apicurio-api-designer/ui
npm install
cd $WORK_DIR/apicurio-registry/ui
npm install
cd $WORK_DIR/apicurio-registry/client
mvn clean install
cd $HUB_DIR/hub/client
mvn clean install
cd $HUB_DIR/workflows/client
mvn clean install
cd $HUB_DIR/ui
npm install

cd $HUB_DIR/hub
mvn clean install
cd $HUB_DIR/workflows
mvn clean install
source $BASE_DIR/dev-build.sh


########################################################################
Expand Down
32 changes: 32 additions & 0 deletions scripts/dev-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh
set -e

BASE_DIR=`dirname $0`
cd $BASE_DIR
BASE_DIR=`pwd`
WORK_DIR=$BASE_DIR/.work
cd ..
HUB_DIR=`pwd`


##
# Do some software builds (be targeted to reduce time)
##
cd $WORK_DIR/apicurio-api-designer/ui
npm install
cd $WORK_DIR/apicurio-registry/ui
npm install
cd $WORK_DIR/apicurio-registry/client
mvn clean install
cd $HUB_DIR/hub/client
mvn clean install
cd $HUB_DIR/workflows/client
mvn clean install
cd $HUB_DIR/ui
npm install

cd $HUB_DIR/hub
mvn clean install
cd $HUB_DIR/workflows
mvn clean install

38 changes: 38 additions & 0 deletions scripts/dev-checkout.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/sh
set -e

BASE_DIR=`dirname $0`
cd $BASE_DIR
BASE_DIR=`pwd`
WORK_DIR=$BASE_DIR/.work
cd ..
HUB_DIR=`pwd`

##
# Clone or update some repositories that we'll need
##
mkdir -p $WORK_DIR
cd $WORK_DIR
if [ ! -d "apicurio-api-designer" ]; then
git clone [email protected]:Apicurio/apicurio-api-designer.git
else
cd $WORK_DIR/apicurio-api-designer
git stash
git pull origin main
fi
cd $WORK_DIR
if [ ! -d "apicurio-registry" ]; then
git clone [email protected]:Apicurio/apicurio-registry.git
else
cd $WORK_DIR/apicurio-registry
git stash
git pull origin main
fi
cd $WORK_DIR
if [ ! -d "microcks" ]; then
git clone [email protected]:microcks/microcks.git
else
cd $WORK_DIR/microcks
git stash
git pull
fi
1 change: 1 addition & 0 deletions scripts/dev-run-api-designer-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ WORK_DIR=$BASE_DIR/.work

# API Designer UI (dev mode) on port 8000
cd $WORK_DIR/apicurio-api-designer/ui/ui-app
source ./init-dev.sh
cp $BASE_DIR/configs/config-api-designer-ui.js config.js
export SERVER_PORT=8000
npm run dev
1 change: 0 additions & 1 deletion scripts/dev-run-microcks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -e
BASE_DIR=`dirname $0`
cd $BASE_DIR
BASE_DIR=`pwd`
LOG_DIR=$BASE_DIR/.logs
WORK_DIR=$BASE_DIR/.work
cd ..
HUB_DIR=`pwd`
Expand Down

0 comments on commit a518db1

Please sign in to comment.