This service stores static grid data, like CIM CGMES network descriptions, for other SOGNO services.
$ go mod tidy
$ go build
The docker build uses the file "minio.config" to store the s3 details. You will need to make sure this matches your setup.
$ docker build -t sogno-file-service .
$ docker run -p 8080:8080 sogno-file-service
# Ensure your Go bin directory is on your path (default: ~/go/bin)
swag init
# For example:
mkdir -p ~/.config/sogno-file-service
echo '{"minio_endpoint": "s3.amazonaws.com", "minio_bucket": "'$SOGNO_FILE_SERVICE_BUCKET'"}' > ~/.config/sogno-file-service/config.json
go run main.go
Visit localhost:8080 in your web browser to view the HTML version of
the API documentation. You can also view docs/swagger.yaml
in the
repo.
Currently, the only tests are integration tests and they require a running S3-compatible object storage server.
go test