Skip to main content

A rocker plugin to help installing apt and pip dependencies

Project description

deps_rocker

This is a rocker extension for automating dependency installation. The aim is to allow a projects to define its development dependencies in a deps.yaml file which are added to the rocker container. The extension will recursivly search for deps.yaml files and run the install commands in several layers.

Layer order:

  • env

  • scripts_tools

  • apt_tools

  • pip_tools

  • scripts_base

  • apt_base

  • pip_base

  • scripts

  • apt

  • pip

  • pyproject_toml #reads from all pyproject.toml files

  • scripts_post

If rocker is used to launch from a folder that contains multple projects with deps.yaml it will create a container to enable development of all of them combined together.

example deps.yaml


env:
  - BASIC_ENV_VAR=1

apt_tools: #install basic development tools which almost never change
  - git
  - git-lfs
  - python3-pip

pip_tools: #install basic development tools which almost never change
  - pip #this updates pip to latest version
  - flit
  - pytest
  - ruff

pip: #project pip dependencies that may change on a more regular basis
  - pyyaml

run with:

rocker --deps-dependencies ubuntu:22.04

limitations/TODO

This has only been tested on the ubuntu base image. It assumes you have access to apt-get.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deps_rocker-0.1.3.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

deps_rocker-0.1.3-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page