Skip to content
Snippets Groups Projects
Commit 235d54a1 authored by jurgenhaas's avatar jurgenhaas
Browse files

Produce a .gitkeep file in custom directories

Change the development image to L3D
parent 3188a11f
No related branches found
No related tags found
No related merge requests found
ahoyapi: v2 ahoyapi: v2
commands: commands:
exec: exec:
cmd: docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v ${PWD}:/drupal -v $SSH_AUTH_SOCK:/ssh-agent -v ${HOME}/.traefik:/root/.traefik -e SSH_AUTH_SOCK=/ssh-agent -w /drupal registry.lakedrops.com/docker/gitlab-drupal-ci "$@" cmd: docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v ${PWD}:/drupal -v $SSH_AUTH_SOCK:/ssh-agent -v ${HOME}/.traefik:/root/.traefik -e SSH_AUTH_SOCK=/ssh-agent -w /drupal registry.lakedrops.com/docker/l3d "$@"
hide: true hide: true
up: up:
cmd: ahoy dev exec /usr/bin/fish cmd: ahoy dev exec /usr/bin/fish
usage: Start container with all development tools usage: Start container with all development tools
update: update:
cmd: docker pull registry.lakedrops.com/docker/gitlab-drupal-ci cmd: docker pull registry.lakedrops.com/docker/l3d
usage: Update image with the latest development tools usage: Update image with the latest development tools
scaffold: scaffold:
cmd: ahoy dev exec composer lakedrops:scaffold cmd: ahoy dev exec composer lakedrops:scaffold
......
...@@ -55,6 +55,9 @@ class Handler extends BaseHandler { ...@@ -55,6 +55,9 @@ class Handler extends BaseHandler {
if (!$fs->exists($path)) { if (!$fs->exists($path)) {
$fs->mkdir($path, 0775); $fs->mkdir($path, 0775);
} }
if (!$fs->exists($path . '/.gitkeep')) {
$fs->touch($path . '/.gitkeep');
}
if ($options['chg-acl']) { if ($options['chg-acl']) {
$fs->chgrp($path, $options['webserver-groupname'], TRUE); $fs->chgrp($path, $options['webserver-groupname'], TRUE);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment