Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.demo.coriolis
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ FILECHECKER_IMAGE_TAG=develop

# External directories to mount to the container
FILECHECKER_SPEC_VOLUME=./file_checker_spec
FILECHECKER_INPUT_VOLUME=./demo/inputs/2903996_coriolis
FILECHECKER_OUTPUT_VOLUME=./demo/outputs/2903996_coriolis
FILECHECKER_INPUT_VOLUME=./demo/inputs/2903996
FILECHECKER_OUTPUT_VOLUME=./demo/outputs/2903996

# Variable specific to floats to check
DAC_NAME=coriolis
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/workflow-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,4 @@ jobs:
uses: ./.github/workflows/component-container-image.yml
with:
context: file_checker_exec
image-path: ghcr.io/OneArgo/ArgoFormatChecker/app
container-image-security:
needs: [container-image-build]
uses: ./.github/workflows/component-container-image-security.yml
with:
context: file_checker_exec
image-path: ghcr.io/OneArgo/ArgoFormatChecker/app
image-path: ghcr.io/OneArgo/ArgoFormatChecker/app
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
demo/outputs/*
*.filecheck
.env

!.gitkeep
32 changes: 32 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
include:
- component: $CI_SERVER_FQDN/dev-ops/templates/automatisation/ci-cd/pipeline-java-container-image@~latest
inputs:
container_image_build_context: "./file_checker_exec"
container_image_docker_file_path: "./file_checker_exec/Dockerfile"
java_builder_artifacts_path: "**/target/*.{war,jar}"
java_builder_build_command: "clean package -f file_checker_exec/pom.xml"
java_builder_maven_quality_enable: "false"
java_builder_maven_settings_path: "./file_checker_exec/settings.xml"
java_builder_publish_command: "deploy -f file_checker_exec/pom.xml"
java_builder_quality_command: "checkstyle:check -f file_checker_exec/pom.xml"
java_builder_tests_command: "test -f file_checker_exec/pom.xml"
java_publish_enable: "true"
pipeline_enable_sonarqube: "false"
lint_yamllint_enable: "false"

security:filesystem:scan 🛡️:
rules:
- when: always

check_container-image_scanning:
stage: security
image: alpine:latest
script:
- CRITICAL_COUNT=$(grep -o '<tr class="severity-CRITICAL">' scanning-report.html | wc -l || echo 0)
- echo "Number of critical vulnerabilities:${CRITICAL_COUNT}"
- if [ "$CRITICAL_COUNT" -gt 0 ]; then echo "Critical vulnerabilities detected"; exit 1; fi
needs:
- job: security:filesystem:scan 🛡️
artifacts: true
allow_failure: false
Empty file added demo/outputs/2903996/.gitkeep
Empty file.
Empty file added demo/outputs/3901945/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions file_checker_spec/ref_table-27
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// $Revision: 1327 $
// $Date: 2022-04-21 21:17:54 +0000 (Thu, 21 Apr 2022) $
// $Revision: 1328 $
// $Date: 2025-09-23 17:30:00 +0000 (Thu, 23 Sep 2025) $

//SENSOR_MODEL | SENSOR_MAKER | COMMENTS | SENSOR | <parameter_sensor_name> | update date | update comment | parameter status operational/pilot/obsolete

Expand Down
2 changes: 1 addition & 1 deletion file_checker_spec/ref_table-41
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $Revision: 0001 $
// $Revision: 0002 $
// $Date: 2025-23-09
//CODNAM

Expand Down
14 changes: 10 additions & 4 deletions run-file-checker-linux.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#!/bin/bash

# TODO : add when container can run as non root
# export DOCKER_UID=$UID
# export DOCKER_GID=$(id -g $UID)
export DOCKER_UID=$UID
export DOCKER_GID=$(id -g $UID)

# BODC file format checker
echo "----- File format checker for BODC 3901945 -----"
docker compose --env-file .env.demo.bodc down
docker compose --env-file .env.demo.bodc up
docker compose --env-file .env.demo.bodc up

# Coriolis file format checker
echo "----- File format checker for COriolis 2903996 -----"
docker compose --env-file .env.demo.coriolis down
docker compose --env-file .env.demo.coriolis up
Loading