Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 2.19 KB

README.md

File metadata and controls

45 lines (31 loc) · 2.19 KB

Supported tags and Dockerfile links

Tags correspond to the docker-compose version used in the image

DOCKER-COMPOSE-ALPINE

Extremely small Docker-Compose image built with Alpine:Latest that's only 40M.

GitHub Repo: https://github.com/robpco/docker-compose-alpine

Docker Hub Image: https://hub.docker.com/r/robpco/docker-compose-alpine

USING THIS IMAGE AS LOCAL COMMAND

Pull the image with:

docker pull robpco/docker-compose-alpine

Configure your system to use this image as a local command by creating an alias in .bashrc:

alias docker-compose='docker run --rm -t $(tty &>/dev/null && echo "-i") robpco/docker-compose-alpine'

ADVANCED CONFIGURATION

To use a specific version of docker-compose (that's not available via an image tag):

  • clone this repo locally
  • edit the Dockerfile and set DOCKER_COMPOSE_VERSION to the required version
    • note: the version specified must be available on PyPi
  • build your adjusted Dockerfile with a unique tag: docker build -t docker-compose-alpine:${UNIQUE_VERSION} .
  • use as described above, but use your unique tag when defining the alias