Skip to content

Commit

Permalink
Merge branch 'main' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
trallard authored Jun 4, 2024
2 parents 657c5d9 + 0f4db01 commit b04a8ea
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 82 deletions.
31 changes: 0 additions & 31 deletions conda-store-server/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,3 @@ dependencies:
- python ==3.10
# conda environment builds
- conda ==23.5.2
- python-docker
- conda-docker >= 0.1.2
- conda-pack
- conda-lock >=1.0.5
- conda-package-handling
- conda-package-streaming
# web server
- celery
- flower
- redis-py
- sqlalchemy<=1.4.47
- alembic
- platformdirs >=4.0,<5.0a0
- psycopg2
- pymysql
- requests
- pyyaml
- uvicorn
- fastapi
- pydantic < 2.0
- traitlets
- yarl
- pyjwt
- filelock
- itsdangerous
- jinja2
- python-multipart
# artifact storage
- minio
# installer
- constructor
10 changes: 3 additions & 7 deletions conda-store-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ dependencies = [
"celery",
"fastapi",
"filelock",
"flower",
"itsdangerous",
"jinja2",
"pyjwt",
Expand All @@ -50,12 +51,10 @@ dependencies = [
"requests",
"pydantic<2",
"python-multipart",
"sqlalchemy<=1.4.47",
"sqlalchemy<2",
"traitlets",
"uvicorn",
"yarl",
# installer
"constructor",
# artifact storage
"minio",
"platformdirs >=4.0,<5.0a0"
Expand All @@ -75,15 +74,12 @@ dependencies = [
"build",
"docker-compose",
"docker-py<7",
"flower",
"playwright",
"pre-commit",
"pytest",
"pytest-celery",
"pytest-mock",
"pytest-playwright",
"twine>=5.0.0",
"pkginfo>=1.10",
"pkginfo>=1.10", # Needed to support metadata 2.3
]

[tool.hatch.envs.lint]
Expand Down
16 changes: 2 additions & 14 deletions conda-store/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@ name: conda-store
channels:
- conda-forge
dependencies:
- pip
- jupyterhub<2.0.0
- jupyterlab>=4.0.0
- nb_conda_kernels
# - nb_conda_store_kernels >=0.1.4
- nodejs=16
- nodejs=18
- yarn
# conda-store client dependencies
- yarl
- aiohttp>=3.8.1
- rich
- click
- ruamel.yaml
- pip:
- https://github.com/yuvipanda/jupyter-launcher-shortcuts/archive/refs/heads/master.zip
- jupyterlab-conda-store
- constructor # Runtime dependency, but must be conda-installed
13 changes: 9 additions & 4 deletions conda-store/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
]
dependencies = ["rich",
dependencies = [
"rich",
"click",
"yarl",
"aiohttp>=3.8.1",
"ruamel.yaml"]
"ruamel.yaml",
"jupyterhub<2.0.0",
"jupyterlab>=4.0.0",
"jupyter-launcher-shortcuts",
"jupyterlab-conda-store",
]
dynamic = ["version"]

[project.urls]
Expand All @@ -54,8 +60,7 @@ dependencies = [
"pre-commit",
"pytest",
"twine>=5.0.0",
"pkginfo >= 1.10",
"pytest-mock",
"pkginfo >= 1.10", # Needed to support metadata 2.3
]

[tool.hatch.envs.lint]
Expand Down
60 changes: 60 additions & 0 deletions docusaurus-docs/conda-store/how-tos/install-standalone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
sidebar_position: 1
description: How to install conda-store locally in standalone mode
---

# Standalone (local) installation

The standalone mode is an **experimental feature**, and the quickest way to start using conda-store.
It provisions a complete local setup with conda-store-server running in the background along with [conda-store UI][conda-store-ui] running on localhost.

This installation is recommend for individual users.

## 1. Install the library

:::note
The standalone mode is available in versions 2023.10.1 and later.
:::

Install conda-store-server with `conda` or `pip`:

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs>

<TabItem value="conda" label="conda" default>

```bash
conda install -c conda-forge conda-store-server
```
</TabItem>

<TabItem value="pip" label="pip" default>

```bash
pip install conda-store-server
```
</TabItem>

</Tabs>

## 2. Start in standalone mode

Run the following in the command line:

```bash
conda-store-server --standalone
```

Access conda-store UI at [`localhost:8080`](https://localhost:8080/) 🎉

## Next steps

Learn to use the [conda-store UI with these tutorials][conda-store-ui-tutorials].


<!-- Internal links -->

[conda-store-ui]: ../../conda-store-ui/introduction
[conda-store-ui-tutorials]: ../../conda-store-ui/tutorials
68 changes: 42 additions & 26 deletions docusaurus-docs/conda-store/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,62 @@ description: Introduction to conda-store (core) documentation
The [`conda-store` repository on GitHub][conda-store-repo] consists of two separate, yet related, packages:

- **`conda-store-server`**: web server and workers that together provide the `conda-store` "service" through a REST API
- **`conda-store`** (client): a client which interacts with the service to offer user-facing command line interface
- **`conda-store` (client)**: a client which interacts with the service to offer user-facing command line interface (CLI)

## Quickstart
## Get started ✨

1. Install conda-store with `conda` or `pip`:
The fastest way to get started with conda-store is with a [**local standalone installation**][standalone-install] and the [**conda-store UI**][conda-store-ui-tutorials].

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
Alternatively, you can use some features of conda-store through the [CLI commands][cli-ref] or as a [shebang][shebang].

<Tabs>
## Key concepts 🔖

<TabItem value="conda" label="conda" default>
Understand some useful terms and concepts to use conda-store effectively:

```bash
conda install -c conda-forge conda-store conda-store-server
```
</TabItem>
* [Essentials for users new to the conda packaging ecosystem][conda-concepts]
* [Concepts and vocabulary unique to conda-store][conda-store-concepts]
* [Descriptions for the artifacts created by conda-store][artifacts]

<TabItem value="pip" label="pip" default>
## Other installation options 💻

```bash
pip install conda-store conda-store-server
```
</TabItem>
conda-store can also be installed using:

</Tabs>
* [Docker][install-docker]
* [Kubernetes][install-kubernetes]
* [Vagrant][install-vagrant]

2. Start a standalone local instance and use the conda-store UI
## Deeper dive 📚

```bash
conda-store-server --standalone
```
Make the most of conda-store by learning about:

You can then access conda-store at `localhost:8080` of the machine running it.
* [Performance impact of conda-store components][performance]
* [Configuration options for customization][configuration]
* Internal architecture: [overview][ref-arch], [auth][ref-auth], and [database][ref-database]

3. Use the CLI
## Community and contributing 🌱

```bash
conda-store --help
```
Be a part of the conda-store community!
Check out the [Community documentation][community] for details.

<!-- Internal links -->

[standalone-install]: ./how-tos/install-standalone
[conda-store-ui-tutorials]: ../conda-store-ui/tutorials
[cli-ref]: ./references/cli
[shebang]: ./how-tos/shebang
[explanations]: ./explanations/
[conda-concepts]: ./explanations/conda-concepts
[conda-store-concepts]: ./explanations/conda-store-concepts
[artifacts]: ./explanations/artifacts
[install-docker]: ./how-tos/install-docker
[install-kubernetes]: ./how-tos/install-kubernetes
[install-vagrant]: ./how-tos/install-vagrant
[performance]: ./explanations/performance
[configuration]: ./references/configuration-options
[ref-arch]: ./references/architecture
[ref-auth]: ./references/database
[ref-database]: ./references/auth
[community]: ../community/introduction

<!-- External links -->

Expand Down

0 comments on commit b04a8ea

Please sign in to comment.