diff --git a/pyproject.toml b/pyproject.toml index a6cc87f..7c51f3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ namespaces = true # ----------------------------------------- Project Metadata ------------------------------------- # [project] -version = "0.0.0.dev403" +version = "0.0.0.dev404" name = "ControlMan" dependencies = [ "packaging >= 23.2, < 24", diff --git a/src/controlman/_data/schema/main.yaml b/src/controlman/_data/schema/main.yaml index 31433ec..642656d 100644 --- a/src/controlman/_data/schema/main.yaml +++ b/src/controlman/_data/schema/main.yaml @@ -3461,10 +3461,10 @@ properties: type: string enum: [ auto, disabled ] default: auto - docker: + binder: type: object additionalProperties: false - required: [ name, artifact, env, action ] + required: [ name, env, action, path ] default: { } properties: name: @@ -3503,6 +3503,37 @@ properties: type: string enum: [ auto, disabled ] default: auto + path: + type: object + additionalProperties: false + required: [ config ] + properties: + config: + description: | + Path to the configuration directory + containing the environment files to build the docker image. + Note that this path cannot be the root directory, `.binder`, or `binder`. + default: .docker + $ref: https://jsonschemata.repodynamics.com/path/posix/absolute-from-cwd + dockerfile: + description: | + Path to configuration directory + containing the Dockerfile. + Note that this path can only be the root directory, `.binder`, or `binder`, + as these are the only locations recognized by `mybinder`. + type: string + enum: [ ".", ".binder", "binder" ] + if: + required: [ dockerfile ] + then: + not: + properties: + config: + enum: [ ".", ".binder", "binder" ] + else: + properties: + config: + enum: [ ".", ".binder", "binder" ] image: description: | Refs: @@ -3521,6 +3552,8 @@ properties: org.opencontainers.image.title: '${{ name }}$ {{ version }}' additionalProperties: type: string + test_script: + type: string publish: type: object additionalProperties: false