Skip to content

Commit

Permalink
DEV - Extend compose to include target for local UI (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
trallard authored Oct 22, 2024
1 parent dc1134f commit 2104c45
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/new-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Release captain responsible - <@gh_username>
- [ ] Update the [conda-forge feedstock version](https://github.com/conda-forge/conda-store-feedstock) through a PR or review and merge the regro-bot PR.
- [ ] If needed - update `meta.yaml` or `recipe.yaml` and re-render the feedstock.
- [ ] Open a follow-up PR to bump `conda-store` and `conda-store-server` versions to the next dev-release number (for example `2024.10.1`).
- [ ] Open a follow-up PR to bump the `conda-store-server` version in the [`conda-store-ui` compose file](https://github.com/conda-incubator/conda-store-ui/blob/main/docker-compose.yml).
- [ ] Celebrate, you're done! 🎉
[^github-activity]: If you wish, use [`github-activity` to generate a Changelog](https://github.com/choldgraf/github-activity), e.g. `github-activity conda-incubator/conda-store --since 2024.9.1 --until 2023.10.1`.
18 changes: 18 additions & 0 deletions conda-store-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,21 @@ RUN which python && \

WORKDIR /var/lib/conda-store
# ---------------------------------------------------------------------------------

# ---------------------------------------------------------------------------------
# sometimes we need to install the conda-store-server in editable mode with a
# local bundle of the UI
FROM base AS ui-dev

ARG UI_PATH=./conda_store_server/_internal/server/static/conda-store-ui
ENV LOCAL_UI=${UI_PATH}

WORKDIR /opt/conda-store-server

COPY ${UI_PATH}/ /opt/conda-store-server/conda_store_server/UI/dist

RUN which python && \
python -m pip install -e . --no-cache-dir

WORKDIR /var/lib/conda-store
# ---------------------------------------------------------------------------------
31 changes: 31 additions & 0 deletions docker-compose.ui.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
services:
conda-store-worker:
build:
context: conda-store-server
target: ui-dev
extends:
file: docker-compose.yaml
service: conda-store-worker

conda-store-server:
build:
context: conda-store-server
target: ui-dev
extends:
file: docker-compose.yaml
service: conda-store-server

minio:
extends:
file: docker-compose.yaml
service: minio

postgres:
extends:
file: docker-compose.yaml
service: postgres

redis:
extends:
file: docker-compose.yaml
service: redis

0 comments on commit 2104c45

Please sign in to comment.