Skip to content
Merged
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
6 changes: 6 additions & 0 deletions core/scripts/build-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ rm workflow-compiling-service/target/universal/workflow-compiling-service-0.1.0.
unzip file-service/target/universal/file-service-0.1.0.zip -d target/
rm file-service/target/universal/file-service-0.1.0.zip

unzip config-service/target/universal/config-service-0.1.0.zip -d target/
rm config-service/target/universal/config-service-0.1.0.zip

unzip computing-unit-managing-service/target/universal/computing-unit-managing-service-0.1.0.zip -d target/
rm computing-unit-managing-service/target/universal/computing-unit-managing-service-0.1.0.zip

unzip amber/target/universal/texera-0.1-SNAPSHOT.zip -d amber/target/
rm amber/target/universal/texera-0.1-SNAPSHOT.zip
18 changes: 18 additions & 0 deletions core/scripts/computing-unit-managing-service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

target/computing-unit-managing-service-0.1.0/bin/computing-unit-managing-service
18 changes: 18 additions & 0 deletions core/scripts/config-service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

target/config-service-0.1.0/bin/config-service
18 changes: 18 additions & 0 deletions core/scripts/deploy-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,24 @@ done
echo "${green}FileService launched at $(pgrep -f FileService)${reset}"
echo

echo "${green}Starting ConfigService in daemon...${reset}"
setsid nohup ./scripts/config-service.sh >/dev/null 2>&1 &
echo "${green}Waiting ConfigService to launch on 9094...${reset}"
while ! nc -z localhost 9094; do
sleep 0.1 # wait 100ms before check again
done
echo "${green}ConfigService launched at $(pgrep -f ConfigService)${reset}"
echo

echo "${green}Starting ComputingUnitManagingService in daemon...${reset}"
setsid nohup ./scripts/computing-unit-managing-service.sh >/dev/null 2>&1 &
echo "${green}Waiting ComputingUnitManagingService to launch on 8888...${reset}"
while ! nc -z localhost 8888; do
sleep 0.1 # wait 100ms before check again
done
echo "${green}ComputingUnitManagingService launched at $(pgrep -f ComputingUnitManagingService)${reset}"
echo

echo "${green}Starting WorkflowComputingUnit in daemon...${reset}"
setsid nohup ./scripts/workflow-computing-unit.sh >/dev/null 2>&1 &
echo "${green}Waiting WorkflowComputingUnit to launch on 8085...${reset}"
Expand Down
20 changes: 20 additions & 0 deletions core/scripts/gui-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

cd gui
ng serve
10 changes: 10 additions & 0 deletions core/scripts/terminate-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ kill -9 $(pgrep -f FileService)
echo "${green}Terminated.${reset}"
echo

echo "${red}Terminating ConfigService at $(pgrep -f ConfigService)...${reset}"
kill -9 $(pgrep -f ConfigService)
echo "${green}Terminated.${reset}"
echo

echo "${red}Terminating ComputingUnitManagingService at $(pgrep -f ComputingUnitManagingService)...${reset}"
kill -9 $(pgrep -f ComputingUnitManagingService)
echo "${green}Terminated.${reset}"
echo

echo "${red}Terminating TexeraWebApplication at $(pgrep -f TexeraWebApplication)...${reset}"
kill -9 $(pgrep -f TexeraWebApplication)
echo "${green}Terminated.${reset}"
Expand Down