diff --git a/core/scripts/build-services.sh b/core/scripts/build-services.sh index f17784c7c39..3537bb4bd0b 100755 --- a/core/scripts/build-services.sh +++ b/core/scripts/build-services.sh @@ -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 diff --git a/core/scripts/computing-unit-managing-service.sh b/core/scripts/computing-unit-managing-service.sh new file mode 100755 index 00000000000..68c87c7fcfe --- /dev/null +++ b/core/scripts/computing-unit-managing-service.sh @@ -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 \ No newline at end of file diff --git a/core/scripts/config-service.sh b/core/scripts/config-service.sh new file mode 100755 index 00000000000..4aa8c95549a --- /dev/null +++ b/core/scripts/config-service.sh @@ -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 \ No newline at end of file diff --git a/core/scripts/deploy-daemon.sh b/core/scripts/deploy-daemon.sh index 96ff3447540..90d270704b3 100755 --- a/core/scripts/deploy-daemon.sh +++ b/core/scripts/deploy-daemon.sh @@ -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}" diff --git a/core/scripts/gui-dev.sh b/core/scripts/gui-dev.sh new file mode 100644 index 00000000000..14b20644ab6 --- /dev/null +++ b/core/scripts/gui-dev.sh @@ -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 \ No newline at end of file diff --git a/core/scripts/terminate-daemon.sh b/core/scripts/terminate-daemon.sh index 0d87b6f3e94..c517701d5a3 100755 --- a/core/scripts/terminate-daemon.sh +++ b/core/scripts/terminate-daemon.sh @@ -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}"