Commit e4e627ca authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Preparing for the release version and adding code coverage report.

parents 0ec7f963 04d5a299
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -12,13 +12,16 @@ stages:
include:
  - local: '/manifests/.gitlab-ci.yml'
  - local: '/src/monitoring/.gitlab-ci.yml'
  - local: '/src/centralizedattackdetector/.gitlab-ci.yml'
  - local: '/src/compute/.gitlab-ci.yml'
  - local: '/src/context/.gitlab-ci.yml'
  - local: '/src/device/.gitlab-ci.yml'
  - local: '/src/service/.gitlab-ci.yml'
  - local: '/src/webui/.gitlab-ci.yml'
  - local: '/src/tester_integration/.gitlab-ci.yml'
  - local: '/src/tester_functional/.gitlab-ci.yml'
  # - local: '/src/dbscanserving/.gitlab-ci.yml'
  # - local: '/src/opticalattackmitigator/.gitlab-ci.yml'
  # - local: '/src/opticalcentralizedattackdetector/.gitlab-ci.yml'
  #- local: '/src/tester_integration/.gitlab-ci.yml'
  #- local: '/src/tester_functional/.gitlab-ci.yml'
  - local: '/src/automation/.gitlab-ci.yml'
  - local: '/src/policy/.gitlab-ci.yml'
  
  # - local: '/src/l3_distributedattackdetector/.gitlab-ci.yml'
  # - local: '/src/l3_centralizedattackdetector/.gitlab-ci.yml'
  # - local: '/src/l3_attackmitigator/.gitlab-ci.yml'
+6 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ REGISTRY_IMAGE=""
#REGISTRY_IMAGE="http://my-container-registry.local/"

# Set the list of components you want to build images for, and deploy.
COMPONENTS="context device automation policy service compute monitoring centralizedattackdetector webui"
COMPONENTS="context device automation policy service compute monitoring dbscanserving opticalattackmitigator opticalcentralizedattackdetector webui"

# Set the tag you want to use for your images.
IMAGE_TAG="tf-dev"
@@ -38,6 +38,11 @@ kubectl delete namespace $K8S_NAMESPACE
kubectl create namespace $K8S_NAMESPACE
printf "\n"

# creating the secrets for the influxdb deployment
#TODO: make sure to change this when having a production deployment
kubectl create secret generic influxdb-secrets --namespace=$K8S_NAMESPACE --from-literal=INFLUXDB_DB="monitoring" --from-literal=INFLUXDB_ADMIN_USER="teraflow" --from-literal=INFLUXDB_ADMIN_PASSWORD="teraflow" --from-literal=INFLUXDB_HTTP_AUTH_ENABLED="True"
kubectl create secret generic monitoring-secrets --namespace=$K8S_NAMESPACE --from-literal=INFLUXDB_DATABASE="monitoring" --from-literal=INFLUXDB_USER="teraflow" --from-literal=INFLUXDB_PASSWORD="teraflow" --from-literal=INFLUXDB_HOSTNAME="localhost"

for COMPONENT in $COMPONENTS; do
    echo "Processing '$COMPONENT' component..."
    IMAGE_NAME="$COMPONENT:$IMAGE_TAG"
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ pip install --upgrade pip setuptools wheel pip-tools pylint pytest pytest-benchm
echo "" > requirements.in

#TODO: include here your component
COMPONENTS="compute context device monitoring centralizedattackdetector webui"
COMPONENTS="compute context device service monitoring opticalcentralizedattackdetector opticalattackmitigator dbscanserving webui"

# compiling dependencies from all components
for component in $COMPONENTS

manifests/.gitignore

0 → 100644
+4 −0
Original line number Diff line number Diff line
# Internal manifest used for local testings.

# CTTC section:
cttc-ols/
+10 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ spec:
        image: registry.gitlab.com/teraflow-h2020/controller/compute:latest
        imagePullPolicy: Always
        ports:
        - containerPort: 8080
        - containerPort: 9090
        env:
        - name: LOG_LEVEL
@@ -44,7 +45,12 @@ spec:
  selector:
    app: computeservice
  ports:
  - name: http
    protocol: TCP
    port: 8080
    targetPort: 8080
  - name: grpc
    protocol: TCP
    port: 9090
    targetPort: 9090
---
@@ -59,6 +65,10 @@ spec:
  selector:
    app: computeservice
  ports:
  - name: http
    protocol: TCP
    port: 8080
    targetPort: 8080
  - name: grpc
    protocol: TCP
    port: 9090
Loading