Commit c5dd2aa6 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

PathComp-Backend component:

- Fix CI/CD pipeline
- Correct log argument to make it screen-only
- Remove old data files
- Activate health probes
parent a4d7b9eb
Loading
Loading
Loading
Loading
+12 −21
Original line number Diff line number Diff line
@@ -51,27 +51,18 @@ spec:
      - name: backend
        image: registry.gitlab.com/teraflow-h2020/controller/pathcomp-backend:latest
        imagePullPolicy: Always
        # not working; to be investigated
        #readinessProbe:
        #  exec:
        #    command:
        #      - curl -X POST -0
        #      - -H 'Expect:'
        #      - -H 'Content-Type:\ application/json'
        #      - -d '{}'
        #      - http://127.0.0.1:8081/pathComp/api/v1/compRoute
        #  initialDelaySeconds: 5
        #  timeoutSeconds: 5
        #livenessProbe:
        #  exec:
        #    command:
        #      - curl -X POST -0
        #      - -H 'Expect:'
        #      - -H 'Content-Type:\ application/json'
        #      - -d '{}'
        #      - http://127.0.0.1:8081/pathComp/api/v1/compRoute
        #  initialDelaySeconds: 5
        #  timeoutSeconds: 5
        readinessProbe:
          httpGet:
            path: /health
            port: 8081
          initialDelaySeconds: 5
          timeoutSeconds: 5
        livenessProbe:
          httpGet:
            path: /health
            port: 8081
          initialDelaySeconds: 5
          timeoutSeconds: 5
        resources:
          requests:
            cpu: 250m
+1 −0
Original line number Diff line number Diff line
backend/wireshark
+3 −0
Original line number Diff line number Diff line
@@ -62,6 +62,9 @@ build pathcomp-frontend:
      - src/common/**/*.py
      - proto/*.proto
      - src/$IMAGE_NAME/.gitlab-ci.yml
      - src/$IMAGE_NAME/backend/**/*.{c,h,conf}
      - src/$IMAGE_NAME/backend/Makefile
      - src/$IMAGE_NAME/backend/Dockerfile
      - src/$IMAGE_NAME/frontend/**/*.{py,in,yml}
      - src/$IMAGE_NAME/frontend/Dockerfile
      - src/$IMAGE_NAME/frontend/tests/*.py
+1 −1
Original line number Diff line number Diff line
@@ -71,4 +71,4 @@ COPY --from=builder /var/teraflow/config/pathcomp.conf ./config
COPY --from=builder /var/teraflow/tests/. ./tests

# release entrypoint:
ENTRYPOINT [ "./pathComp", "config/pathcomp.conf", "pathcomp.log" ]
ENTRYPOINT [ "./pathComp", "config/pathcomp.conf", "screen_only" ]
+1 −1
Original line number Diff line number Diff line
@@ -34,4 +34,4 @@ RUN make

EXPOSE 8081

ENTRYPOINT [ "gdb", "--args", "./pathComp", "config/pathcomp.conf", "pathcomp.log" ] 
ENTRYPOINT [ "gdb", "--args", "./pathComp", "config/pathcomp.conf", "screen_only" ] 
Loading