Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always Set Project Dir as Working Dir #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions down-develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
export COMPOSE_PROJECT=codex-develop

CODEX_REPOS=${CODEX_REPOS:-"codex-keycloak,codex-feasibility-gui,codex-feasibility-backend,codex-flare"}
baseDir=$(pwd)

readlink "$0" > /dev/null
if [ $? -ne 0 ]; then
baseDir=$(dirname "$0")
else
baseDir=$(dirname "$(readlink "$0")")
fi


for repoName in ${CODEX_REPOS//,/ }
Expand Down Expand Up @@ -31,4 +37,4 @@ do
docker-compose -p $COMPOSE_PROJECT down
fi
fi
done
done
8 changes: 7 additions & 1 deletion gitUpdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

gitBase="https://github.com/num-codex/"
repos=("codex-feasibility-gui" "codex-feasibility-backend" "codex-keycloak" "codex-processes-ap2" "codex-aktin-broker" "codex-sq2cql" "num-knoten" "broker" "codex-flare")
baseDir=$(pwd)

readlink "$0" > /dev/null
if [ $? -ne 0 ]; then
baseDir=$(dirname "$0")
else
baseDir=$(dirname "$(readlink "$0")")
fi

echo "****updating base repo Develop****"
git pull
Expand Down
8 changes: 7 additions & 1 deletion rebuild-develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
export COMPOSE_PROJECT=codex-develop

CODEX_REPOS=${CODEX_REPOS:-"codex-keycloak,codex-feasibility-gui,codex-feasibility-backend,codex-flare"}
baseDir=$(pwd)

readlink "$0" > /dev/null
if [ $? -ne 0 ]; then
baseDir=$(dirname "$0")
else
baseDir=$(dirname "$(readlink "$0")")
fi


for repoName in ${CODEX_REPOS//,/ }
Expand Down
8 changes: 7 additions & 1 deletion start-develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

export COMPOSE_PROJECT=codex-develop

baseDir=$(pwd)
CODEX_REPOS=${CODEX_REPOS:-"codex-keycloak,codex-feasibility-gui,codex-feasibility-backend,codex-flare"}

readlink "$0" > /dev/null
if [ $? -ne 0 ]; then
baseDir=$(dirname "$0")
else
baseDir=$(dirname "$(readlink "$0")")
fi

export CODEX_CONCEPT_TREE_PATH=${CODEX_CONCEPT_TREE_PATH:-"$baseDir/ontology/codex-code-tree.json"}
export CODEX_TERM_CODE_MAPPING_PATH=${CODEX_TERM_CODE_MAPPING_PATH:-"$baseDir/ontology/term-code-mapping.json"}

Expand Down
8 changes: 7 additions & 1 deletion stop-develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
export COMPOSE_PROJECT=codex-develop

CODEX_REPOS=${CODEX_REPOS:-"codex-keycloak,codex-feasibility-gui,codex-feasibility-backend,codex-flare"}
baseDir=$(pwd)

readlink "$0" > /dev/null
if [ $? -ne 0 ]; then
baseDir=$(dirname "$0")
else
baseDir=$(dirname "$(readlink "$0")")
fi


for repoName in ${CODEX_REPOS//,/ }
Expand Down