Skip to main content

A tool to parse rockerc.yaml files and pass on the arguments onto rocker

Project description

rockerc

Continuous Integration Status

Ci Codecov GitHub issues GitHub pull-requests merged GitHub release PyPI - Downloads License Python Pixi Badge

Installation

pip install rockerc

Usage

#searches for rockerc.yaml and passes those arguments to rocker
rockerc 

Motivation

Rocker is an alternative to docker-compose that makes it easier to run containers with access to features of the local environment and add extra capabilities to existing docker images. However rocker has many configurable options and it can get hard to read or reuse those arguments. This is a naive wrapper that read a rockerc.yaml file and passes them to rocker. There are currently no plans to integrate docker-compose like functionalty directly into rocker so I made this as a proof of concept to see what the ergonomics of it would be like.

Caveats

I'm not sure this is the best way of implementing rockerc like functionality. It might be better to implmented it as a rocker extension, or in rocker itself. This was just the simplest way to get started. I may explore those other options in more detail in the future.

rocker.yaml configuration

You need to pass either a docker image, or a relative path to a dockerfile

rockerc.yaml

image: ubuntu:22.04

or

dockerfile: Dockerfile

will look for the dockerfile relative to the rockerc.yaml file

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

rockerc-0.5.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rockerc-0.5.0-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rockerc-0.5.0.tar.gz.

File metadata

  • Download URL: rockerc-0.5.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for rockerc-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2ddc065994e34fd216c1068bd0ea0e56b28f69d930fbd04e8c016af39a9da377
MD5 0a4f0617fbd5be5135e49a467bcb8457
BLAKE2b-256 af227ac3f3a229baf59325db241320a37db4357f4f5737bfc322c206710ab9ce

See more details on using hashes here.

File details

Details for the file rockerc-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: rockerc-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for rockerc-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bf119358453a769cee8a649e65323036bc246ea98ef7cefcf2c2f1db759e297d
MD5 16955a147a3f6bd3aea936d4cbae7f8b
BLAKE2b-256 2b26ecd5bdee4d5a8c908c77fbc656d02650a4d73e89002f0621a887517c83ab

See more details on using hashes here.

Supported by

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