MetaCell / MetaCell/cloud-harness

Allow to clone an external repo before the build

Open
#552 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement scope:deployment
Dominant language
Python
Stars
19
Forks
5
Avg merge
3d 18h
Merged PRs (30d)
3

Description

In order to use code from a different repo we need to clone the repo from inside the docker image.

There are two main limitations of this approach as it's currently done:
- the tag/branch is hardcoded in the dockerfile (not configurable)
- if the repo is updated, the changes are not taken due to the docker cache, so we need to add ugly commands to override the cache such as `RUN echo "cache 2021-11-24"`

One nice way would be to add a new kind of dependency:

```yaml
harness:
dependencies:
hard:
soft:
build:
git:
- url: https://github.com/MetaCell/nwb-explorer.git
branch_tag: master
path: /git
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how cloud-harness currently clones external repositories inside the Docker build and how the YAML dependency sections are parsed. Compare that flow with the proposed git dependency fields, then verify that branch or tag selection, destination path, and repository updates are configurable and no longer rely on manual cache-busting commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, git, python, yaml
Domain
build-system, devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.