Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zaporylie/docker-drupal-utils


https://github.com/zaporylie/docker-drupal-utils

Last synced: 11 days ago
JSON representation

Awesome Lists containing this project

README

        

Drupal Docker Utils

# Available

## PHPCS

Check current folder against Drupal Coding standards:
```
docker run --rm -ti -v $(pwd):/var/www/html zaporylie/phpcs
```

## SSHD

Get access to /var/www/html from another php container:
```
docker run -dP --volumes-from= zaporylie/sshd
```

## GIT

### Auto

Automatically discover if repository exists and pull or clone (according to the result)
```
docker run --rm --ti --volumes-from= zaporylie/git
```

### Clone

Clone repository to /var/www/html:
```
docker run --rm --ti --volumes-from= zaporylie/git:clone
```

### Pull

Pull (fetch + merge) remote repository:
```
docker run --rm --ti --volumes-from= zaporylie/git:pull
```

## Backup

Backup public and private folders + database and store in current path:
```
docker run --rm --ti --volumes-from= --link=:db -v $(pwd):/var/backups zaporylie/backup
```