Skip to content
Draft
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
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ FROM oven/bun:1.4.4@sha256:1d22548f177f4ff38e0c15baa3c2c46c6c2060ba2d1bc573bb472
WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1

# Install dependencies
# Install dependencies. TEMPORARY (I/O Schema proposal, krini#47): the
# Cloud Components come from the tarballs in `vendor/` until they are
# released; remove the `vendor` line with them
COPY package.json bun.lock ./
COPY vendor ./vendor
RUN bun install --frozen-lockfile

# No settings: all are read when the server starts (see
Expand Down
45 changes: 42 additions & 3 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions docs/development/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ Install the packages:
bun i
```

!!! note "Unreleased Cloud Components (I/O Schema proposal)"
On the proposal branch of krini#47, `@elixir-cloud/wes` and
`@elixir-cloud/design` come from tarballs in `vendor/cloud-components/`
(a `file:` dependency and an `overrides` entry in `package.json`),
built from the cloud-components proposal branches (#613, #614) at the
commit in their file names, as those versions aren't released yet. The
`Dockerfile` copies `vendor/` before installing. Once the components
are released, set both packages to the released version, remove the
`overrides` entry, `vendor/` and its line in the `Dockerfile`, and run
`bun i`.

Configure the app (see [Environment variables](#environment-variables)),
then start the development server:

Expand Down
29 changes: 29 additions & 0 deletions docs/operator-guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,35 @@ values yet: Krini sets their internal state (see
take it any more, "Use an example" shows an error instead of filling the
form, and Krini's end-to-end tests fail.

## Tool registries (proposal)

!!! warning "Proposal"
Workflows from I/O Schemas are a proposal (krini#47) on unreleased
Cloud Components; this section may change before they are released.

For workflows with a GA4GH I/O Schema (see
[Workflows from I/O Schemas](../user-guide/index.md#workflows-from-io-schemas)),
Krini uses the tool registries (GA4GH TRS services, type `trs`) of the
service registry. There is nothing to set; what to know:

- **Registration**: register a tool registry in the service registry to
offer its workflows. Without one, the panel **Workflow from a tool
registry** isn't shown and the workflow form works as before.
- **Outbound requests**: Krini's server reads tool versions and their
schemas from the registered tool registries (`https` only, no
redirects, 10 s timeout, 2 MiB per answer), as tool registries need not
allow cross-origin requests: allow that egress where a network policy
restricts it.
- **Schemas by URL**: a schema by URL is fetched by the user's browser,
from any `https` origin (Krini's Content Security Policy allows `https:`
in `connect-src`, see
[Security headers](deployment.md#security-headers)); a stricter policy
in front of Krini must allow it, or users upload the schema instead.
- **Demo**: **Use the demo workflow** is offered only with the built-in
workflow examples (`WORKFLOW_EXAMPLES` unset), as it names a tool in
the tool registry of ELIXIR On-Cloud (see
[Examples](#examples)).

## Env files

`.env.example` is the only env file in the repository; Git and the Docker
Expand Down
Loading