Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

dkd/docker-platformsh-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dkdde/platformsh-cli

Docker Data Volume Container platformsh-cli

This Docker image dkdde/platformsh-cli consists of

to be run as Docker Data Volume Container. PHP is not included.

Installation/Setup

Download latest Docker image:

$ docker pull dkdde/platformsh-cli

or a specific version (tag):

$ docker pull dkdde/platformsh-cli:v3.31.1

In this case v3.19.1 references a Git tag in the platformsh-cli repository. See list of available tags at the Docker Hub project page.

Usage

Create data volume container, name it platformsh-cli and expose /platformsh-cli:

$ docker create -v /platformsh-cli --name platformsh-cli dkdde/platformsh-cli:latest

Mount and run platformsh-cli executable (PHP v7.0):

$ docker run -it --volumes-from platformsh-cli php:7.0-cli /platformsh-cli/platform

Try another PHP version (e.g. v7.1):

$ docker run -it --volumes-from platformsh-cli php:7.1-cli /platformsh-cli/platform

Development

Clone project. Add and rename platform.phar into the project directory:

$ git clone https://github.com/dkd/docker-dkdde-platformsh-cli.git
$ cd docker-dkdde-platformsh-cli
$ mv platform.phar platform

Build image, tag appropriately and push to Docker Hub:

$ docker build . --tag dkdde/platformsh-cli 
$ docker push dkdde/platformsh-cli

About

Docker data volume container platformsh-cli

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors