Loading ecoc22 0 → 120000 +1 −0 Original line number Diff line number Diff line src/tests/ecoc22/ No newline at end of file manifests/webuiservice.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ spec: image: registry.gitlab.com/teraflow-h2020/controller/webui:latest imagePullPolicy: Always ports: - containerPort: 8004 # TODO: define the real port - containerPort: 8004 env: - name: LOG_LEVEL value: "DEBUG" Loading my_deploy.sh +1 −8 Original line number Diff line number Diff line # Set the URL of your local Docker registry where the images will be uploaded to. export TFS_REGISTRY_IMAGE="http://localhost:32000/tfs/" # Set the list of components, separated by comas, you want to build images for, and deploy. # Set the list of components, separated by spaces, you want to build images for, and deploy. # Supported components are: # context device automation policy service compute monitoring webui # interdomain slice pathcomp dlt Loading @@ -11,12 +10,6 @@ export TFS_COMPONENTS="context device automation service compute monitoring webu # Set the tag you want to use for your images. export TFS_IMAGE_TAG="dev" # Set the name of the Kubernetes namespace to deploy to. export TFS_K8S_NAMESPACE="tfs" # Set additional manifest files to be applied after the deployment export TFS_EXTRA_MANIFESTS="manifests/nginx_ingress_http.yaml" # Set the neew Grafana admin password export TFS_GRAFANA_PASSWORD="admin123+" scripts/dump_logs.sh 0 → 100755 +37 −0 Original line number Diff line number Diff line #!/bin/bash # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # # Licensed 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. ######################################################################################################################## # Define your deployment settings here ######################################################################################################################## # If not already set, set the name of the Kubernetes namespace to deploy to. export TFS_K8S_NAMESPACE=${TFS_K8S_NAMESPACE:-"tfs"} ######################################################################################################################## # Automated steps start here ######################################################################################################################## mkdir -p tmp/exec_logs/$TFS_K8S_NAMESPACE/ rm tmp/exec_logs/$TFS_K8S_NAMESPACE/* PODS=$(kubectl get pods --namespace $TFS_K8S_NAMESPACE --no-headers --output=custom-columns=":metadata.name") for POD in $PODS; do CONTAINERS=$(kubectl get pods --namespace $TFS_K8S_NAMESPACE $POD -o jsonpath='{.spec.containers[*].name}') for CONTAINER in $CONTAINERS; do kubectl --namespace $TFS_K8S_NAMESPACE logs pod/${POD} --container ${CONTAINER} \ > tmp/exec_logs/$TFS_K8S_NAMESPACE/$POD\_\_$CONTAINER.log done done scripts/run_tests_locally-service.sh +1 −0 Original line number Diff line number Diff line Loading @@ -21,4 +21,5 @@ RCFILE=$PROJECTDIR/coverage/.coveragerc # Run unitary tests and analyze coverage of code at same time coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \ service/tests/test_unitary_task_scheduler.py \ service/tests/test_unitary.py Loading
ecoc22 0 → 120000 +1 −0 Original line number Diff line number Diff line src/tests/ecoc22/ No newline at end of file
manifests/webuiservice.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ spec: image: registry.gitlab.com/teraflow-h2020/controller/webui:latest imagePullPolicy: Always ports: - containerPort: 8004 # TODO: define the real port - containerPort: 8004 env: - name: LOG_LEVEL value: "DEBUG" Loading
my_deploy.sh +1 −8 Original line number Diff line number Diff line # Set the URL of your local Docker registry where the images will be uploaded to. export TFS_REGISTRY_IMAGE="http://localhost:32000/tfs/" # Set the list of components, separated by comas, you want to build images for, and deploy. # Set the list of components, separated by spaces, you want to build images for, and deploy. # Supported components are: # context device automation policy service compute monitoring webui # interdomain slice pathcomp dlt Loading @@ -11,12 +10,6 @@ export TFS_COMPONENTS="context device automation service compute monitoring webu # Set the tag you want to use for your images. export TFS_IMAGE_TAG="dev" # Set the name of the Kubernetes namespace to deploy to. export TFS_K8S_NAMESPACE="tfs" # Set additional manifest files to be applied after the deployment export TFS_EXTRA_MANIFESTS="manifests/nginx_ingress_http.yaml" # Set the neew Grafana admin password export TFS_GRAFANA_PASSWORD="admin123+"
scripts/dump_logs.sh 0 → 100755 +37 −0 Original line number Diff line number Diff line #!/bin/bash # Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) # # Licensed 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. ######################################################################################################################## # Define your deployment settings here ######################################################################################################################## # If not already set, set the name of the Kubernetes namespace to deploy to. export TFS_K8S_NAMESPACE=${TFS_K8S_NAMESPACE:-"tfs"} ######################################################################################################################## # Automated steps start here ######################################################################################################################## mkdir -p tmp/exec_logs/$TFS_K8S_NAMESPACE/ rm tmp/exec_logs/$TFS_K8S_NAMESPACE/* PODS=$(kubectl get pods --namespace $TFS_K8S_NAMESPACE --no-headers --output=custom-columns=":metadata.name") for POD in $PODS; do CONTAINERS=$(kubectl get pods --namespace $TFS_K8S_NAMESPACE $POD -o jsonpath='{.spec.containers[*].name}') for CONTAINER in $CONTAINERS; do kubectl --namespace $TFS_K8S_NAMESPACE logs pod/${POD} --container ${CONTAINER} \ > tmp/exec_logs/$TFS_K8S_NAMESPACE/$POD\_\_$CONTAINER.log done done
scripts/run_tests_locally-service.sh +1 −0 Original line number Diff line number Diff line Loading @@ -21,4 +21,5 @@ RCFILE=$PROJECTDIR/coverage/.coveragerc # Run unitary tests and analyze coverage of code at same time coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \ service/tests/test_unitary_task_scheduler.py \ service/tests/test_unitary.py