pip install rockerc
#searches for rockerc.yaml and passes those arguments to rocker
rockerc
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.
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.
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