-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:latchbio/latch into kenny/nextflow
- Loading branch information
Showing
11 changed files
with
173 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Advanced Configuration | ||
|
||
```{toctree} | ||
:maxdepth: 2 | ||
configuration/resources.md | ||
configuration/registries.md | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Private Container Registries | ||
|
||
When executing Snakemake workflows in containers, the container images may exist in a private registry that the Latch cloud cannot access. Downloading images from private registries at runtime requires two steps: | ||
|
||
1. Upload your private container registry's password/access token to the Latch platform. See [Storing and using Secrets](../basics/adding_secrets.md). | ||
2. Add the `docker_metadata` field to your workflow's `SnakemakeMetadata` object so the workflow engine knows where to pull your credentials. For example: | ||
|
||
``` | ||
# latch_metadata.py | ||
from latch.types.metadata import SnakemakeMetadata, SnakemakeFileParameter, DockerMetadata | ||
from latch.types.directory import LatchDir | ||
from latch.types.metadata import LatchAuthor, LatchMetadata, LatchParameter | ||
from pathlib import Path | ||
SnakemakeMetadata( | ||
display_name="snakemake_tutorial_workflow", | ||
author=LatchAuthor( | ||
name="latchbio", | ||
), | ||
env_config=EnvironmentConfig( | ||
use_conda=False, | ||
use_container=True, | ||
), | ||
docker_metadata=DockerMetadata( | ||
username="user0", | ||
secret_name="LATCH_SECRET_NAME", | ||
), | ||
... | ||
) | ||
``` | ||
|
||
**Note**: the `secret_name` field specifies the name of the Latch Secret uploaded in step #1, NOT the actual registry password. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.