Giter Club home page Giter Club logo

arvie's People

Contributors

javierbertoli avatar nicocesar avatar

Watchers

 avatar  avatar  avatar

Forkers

isabella232

arvie's Issues

Include cwl compliance tests in shell ready to run

Every time I want to try CWL :

apt-get update
apt-get install python3-setuptools git python3-wheel python3-pip
pip3 install cwltest
git clone https://github.com/common-workflow-language/cwl-v1.2/  

and to run the test the following is neede (maybe this could be MOTD when you login to shell for the first time)

cd cwl-v1.2
# copy this from from token information
HISTIGNORE=$HISTIGNORE:'export ARVADOS_API_TOKEN=*'
export ARVADOS_API_TOKEN=....
export ARVADOS_API_HOST=test1.arv.local:8000
export ARVADOS_API_HOST_INSECURE=true
./run_test.sh RUNNER=arvados-cwl-runner EXTRA="--api=containers --compute-checksum --disable-reuse"

keepproxy (and probably all go based images) need to have arvados repo configured

I solved this by doing

apt-get update
apt-get --no-install-recommends install gnupg
/usr/bin/apt-key adv --keyserver pool.sks-keyservers.net --recv 1078ECD7
echo "deb http://apt.arvados.org/buster buster main" | tee /etc/apt/sources.list.d/arvados.list
apt-get update

but is a nice to have for quick instalation / upgrade for things that don't come with arvie

Use cache dirs for gems, go, pip and npm

To reduce build time and image sizes, we can try to use dir caches.

While using buildkit caches can help improve buildtimes, the RoR images are too big and they need to run bundler commands or rake tasks at run time, to either add npm packages that require the configuration in place, or update the container gems.

As during build time we can't mount volumes, I'm thinking that resourcing to some process can be done, like:

  1. When building the images
    1.1- Create a cache dir
    1.2- Copy from the host to the cache their contents
    1.3- Build in a builder container
    1.4- Copy the gems/npms/other data that to the host. (see https://stackoverflow.com/a/51186557)
    1.5- Build a slimmer version of the image, without all those files

  2. When running the instances
    2.1- Mount the cache dirs
    2.2- Run the scripts to update the images
    2.3- Launch the process

This way, step 2.2 will run faster if 1.4 happened, and step 1.3 will run faster because of the host caching done in 2.1 and 2.2

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.