ITISFoundation / cookiecutter-osparc-service

A cookiecutter for integrating services in oSparc simcore platform
MIT License
0 stars 5 forks source link

Is1884/using integration library #40

Closed pcrespov closed 2 years ago

pcrespov commented 3 years ago

What do these changes do?

Simplifies the service project resulting from this cookiecutter by delegating tooling and standard testing to osparc-simcore's service library or ooil in short.

We have moved most of the code in the cookiecutter to ooil library (which lives in osparc-simcore repo). The idea is that there is now a single source of truth : basically the metadata.yml and docker-compose-build.yml files. Then ooil can deduce everything from it.

Next iteration will introduce the .osparc folder approach (but one step at time :-) )

This leads to a much simpler layout! Just FYI, the resulting service project, compared to the previous version :

How to test

Could you please try this with one of your services? To create a service project using this cookiecutter + python 3.9 just

$ cookiecutter --checkout=is1884/using-integration-library gh:pcrespov/cookiecutter-osparc-service

Then cd the "baked" project and

$ ls -la
$ make devenv 
$ source .venv/bin/activate
$ ooil --version
$ make build
$ make tests

# then can try other recipes
$ make help
$ make VERSION
$ make replay

Related issue number

Checklist