Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Latest commit

 

History

History
41 lines (27 loc) · 1.09 KB

Readme.md

File metadata and controls

41 lines (27 loc) · 1.09 KB

PHP 5.6 CLI Docker image

This is a command-line image that can be used for your projects. All shell commands should be run from here.

Image is built on Debian jessie.

The software packages installed are:

  • PHP 5.6
  • ImageMagick 6.7
  • Composer
  • GIT
  • Curl
  • Vim
  • Mysql client
  • JAVA (OpenJDK 7)

Your SSH key is passed through to the server as well so you can use your normal GIT operations if necessary when using composer install|update.

The user account you should use to run any operation within the container is: 'user'.

``` sh
docker exec -ti <id of the container> su site
```

The root directory of the site is '/var/www/'.

How to run the container

You can run the container with the docker run command :

``` sh
docker run klabs/cli_php56
```

But is is strongly recommended to use docker-compose with the stack.sh script provided in ezdocker-stack repository.