Loading manifests/pathcompservice.yaml +12 −21 Original line number Diff line number Diff line Loading @@ -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 Loading src/pathcomp/.gitignore 0 → 100644 +1 −0 Original line number Diff line number Diff line backend/wireshark src/pathcomp/.gitlab-ci.yml +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading src/pathcomp/backend/Dockerfile +1 −1 Original line number Diff line number Diff line Loading @@ -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" ] src/pathcomp/backend/Dockerfile-gdb +1 −1 Original line number Diff line number Diff line Loading @@ -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
manifests/pathcompservice.yaml +12 −21 Original line number Diff line number Diff line Loading @@ -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 Loading
src/pathcomp/.gitignore 0 → 100644 +1 −0 Original line number Diff line number Diff line backend/wireshark
src/pathcomp/.gitlab-ci.yml +3 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
src/pathcomp/backend/Dockerfile +1 −1 Original line number Diff line number Diff line Loading @@ -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" ]
src/pathcomp/backend/Dockerfile-gdb +1 −1 Original line number Diff line number Diff line Loading @@ -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" ]