Coder Social home page Coder Social logo

Comments (3)

ericdill avatar ericdill commented on May 31, 2024 1

It is not possible right now with the conda-mirror CLI. To have this functionality internally we wrap the conda-mirror cli with this:

for platform in linux-64 win-64 osx-64;
do
  source "/opt/continuum/anaconda/bin/activate" "/opt/envs/conda-mirror" && \
    conda-mirror \
      --config /opt/tools/conda-mirror-config.yaml \
      --upstream-channel https://conda.anaconda.org/conda-forge \
      --target-directory /opt/data/conda/www/upstream-conda-forge \
      --num-threads 7 \
      --platform $platform -vv 2>> /var/log/condaserver/mirror_conda_conda-forge.log
done

from conda-mirror.

jakirkham avatar jakirkham commented on May 31, 2024 1

Are PRs welcome for this sort of functionality?

from conda-mirror.

ericdill avatar ericdill commented on May 31, 2024

Short answer, yes.

Long answer, I'm at a fork in the road for how to maintain conda-mirror long term. I think it needs some re-architecting. There are a handful of people that I know of that use conda-mirror in different ways. All want conda-mirror to support their use case (#48: rapid validation, #64: incremental initial sync, skipping validation: #62, and this issue). I totally understand the desire here, but this code base has already grown the concurrent validation appendage and other unwieldy appendages are looming on the horizon.

The way that we use conda-mirror internally is to use this open source version as the starting point and fold in additional functionality like hipchat integration and sending metrics to graphite, to call out a couple. I think that this is a model that will make conda-mirror generically usable for most people while minimizing the maintenance burden of the open-source version. As such, I've been wanting to find some time for a few months now to implement v2 of the mirror strictly as:

  1. A library of reusable functions for interacting with anaconda.org
  2. A reference implementation of a CLI to support mirroring internally
  3. Drop the notion of parallel-validation and don't support anything more complicated than simple, serial download/validation.

I think this let's our internal implementation remain just that: An internal, mostly gross wrapping of conda-mirror that solves our internal needs while keeping the annoying parts of interacting with anaconda.org out in the open. I think that other people that use conda-mirror should adopt the same philosophy: Use conda-mirror for interacting with anaconda.org and make any local optimizations that are necessary for your specific infrastructure.

Now, with that said, it is unclear if/when I will ever have time to reimplement a simplified version of conda-mirror as I just described above 😢. So, in the mean time, you're welcome to submit a PR that adds something like --platform linux-64,win-64,osx-64 (or whatever API you were thinking) and I'll merge it once we agree on the functionality/implementation 😀

from conda-mirror.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.