add docker-compose image

This commit is contained in:
Ben Potter 2021-06-13 15:13:32 +00:00
parent bd1ed3fe66
commit fc174ff099
No known key found for this signature in database
GPG Key ID: C39EC065353E70F2
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,11 @@
FROM codercom/enterprise-base:centos
# Run everything as root
USER root
# Install docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
# Set back to coder user
USER coder

View File

@ -0,0 +1,11 @@
FROM codercom/enterprise-base:ubuntu
# Run everything as root
USER root
# Install docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
# Set back to coder user
USER coder

View File

@ -0,0 +1,14 @@
# Enterprise docker-compose
[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/enterprise-docker-compose?label=codercom%2Fenterprise-docker-compose)](https://hub.docker.com/r/codercom/docker-compose)
## Description
Wraps [enterprise-base](../base/README.md) with the basics for docker-compose.
> **Note:** Workspaces with this image must be running as a CVM
> for more info, read [our docs](https://coder.com/docs/workspaces/cvms)
## How To Use
Import the image `codercom/enterprise-docker-compose` in Coder.