Loading src/policy/.gitlab-ci.yml +19 −19 Original line number Diff line number Diff line # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # 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. Loading Loading @@ -79,21 +79,21 @@ unit_test policy: - manifests/${IMAGE_NAME_POLICY}service.yaml - .gitlab-ci.yml ## Deployment of policy service in Kubernetes Cluster #deploy policy: # stage: deploy # needs: # - build policy # - unit_test policy # script: # - kubectl version # - kubectl get all # - kubectl delete --ignore-not-found=true -f "manifests/policyservice.yaml" # - kubectl apply -f "manifests/policyservice.yaml" # - kubectl delete pods --selector app=policyservice # - kubectl get all # rules: # - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' # when: manual # - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"' # when: manual No newline at end of file # Deployment of policy service in Kubernetes Cluster deploy policy: stage: deploy needs: - build policy - unit_test policy script: - kubectl version - kubectl get all - kubectl delete --ignore-not-found=true -f "manifests/policyservice.yaml" - kubectl apply -f "manifests/policyservice.yaml" - kubectl delete pods --selector app=policyservice - kubectl get all rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' when: manual - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"' when: manual No newline at end of file src/policy/mvnw 100644 → 100755 +0 −0 File mode changed from 100644 to 100755. View file src/policy/pom.xml +1 −1 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) 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. Loading src/policy/src/main/docker/Dockerfile.multistage.jvm +2 −1 Original line number Diff line number Diff line # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # 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. Loading Loading @@ -51,6 +51,7 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \ && chmod 540 /deployments/run-java.sh \ && echo "securerandom.source=file:/dev/urandom" >> /etc/alternatives/jre/conf/security/java.security ENV QUARKUS_LAUNCH_DEVMODE="true" # Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size. ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager" # We make four distinct layers so if there are application changes the library layers can be re-used Loading src/policy/src/main/java/eu/teraflow/policy/PolicyGateway.java +1 −1 Original line number Diff line number Diff line /* * Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) * 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. Loading Loading
src/policy/.gitlab-ci.yml +19 −19 Original line number Diff line number Diff line # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # 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. Loading Loading @@ -79,21 +79,21 @@ unit_test policy: - manifests/${IMAGE_NAME_POLICY}service.yaml - .gitlab-ci.yml ## Deployment of policy service in Kubernetes Cluster #deploy policy: # stage: deploy # needs: # - build policy # - unit_test policy # script: # - kubectl version # - kubectl get all # - kubectl delete --ignore-not-found=true -f "manifests/policyservice.yaml" # - kubectl apply -f "manifests/policyservice.yaml" # - kubectl delete pods --selector app=policyservice # - kubectl get all # rules: # - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' # when: manual # - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"' # when: manual No newline at end of file # Deployment of policy service in Kubernetes Cluster deploy policy: stage: deploy needs: - build policy - unit_test policy script: - kubectl version - kubectl get all - kubectl delete --ignore-not-found=true -f "manifests/policyservice.yaml" - kubectl apply -f "manifests/policyservice.yaml" - kubectl delete pods --selector app=policyservice - kubectl get all rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' when: manual - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"' when: manual No newline at end of file
src/policy/pom.xml +1 −1 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) 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. Loading
src/policy/src/main/docker/Dockerfile.multistage.jvm +2 −1 Original line number Diff line number Diff line # Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) # 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. Loading Loading @@ -51,6 +51,7 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \ && chmod 540 /deployments/run-java.sh \ && echo "securerandom.source=file:/dev/urandom" >> /etc/alternatives/jre/conf/security/java.security ENV QUARKUS_LAUNCH_DEVMODE="true" # Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size. ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager" # We make four distinct layers so if there are application changes the library layers can be re-used Loading
src/policy/src/main/java/eu/teraflow/policy/PolicyGateway.java +1 −1 Original line number Diff line number Diff line /* * Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) * 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. Loading