diff --git a/.gitignore b/.gitignore index 39d0e24..76d0386 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ !/patches/ !/README.md !/tools/ +!/workspace.yml diff --git a/Makefile b/Makefile deleted file mode 100644 index 5d33bd9..0000000 --- a/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -default: init - -app-install: copy-required-files - docker-compose run --rm php vendor/bin/drush site:install -y \ - --existing-config \ - --site-name="Stream Demo" \ - --account-pass=admin123 - -copy-required-files: vendor - cp .env.example .env - cp .docker.env.example .docker.env - -init: copy-required-files start app-install - -start: copy-required-files - docker-compose up -d - -stop: - docker-compose down --remove-orphans - -vendor: composer.json composer.lock - docker-compose run --rm composer validate - docker-compose run --rm composer install diff --git a/workspace.yml b/workspace.yml new file mode 100644 index 0000000..35c62bd --- /dev/null +++ b/workspace.yml @@ -0,0 +1,40 @@ +command('composer %'): | + #!bash|= + passthru "docker-compose run --rm composer ={ input.argument('%') }" + +command('console'): | + #!bash + passthru "docker-compose run --rm php bash" + +command('disable'): | + #!bash + run "docker-compose down --remove-orphans" + +command('destroy'): | + #!bash + run "docker-compose down --remove-orphans -v" + +command('drush %'): + env: + DRUSH_OPTIONS_URI: = @('app.url') + exec: | + #!bash|= + passthru "docker-compose run --rm -e DRUSH_OPTIONS_URI php vendor/bin/drush ={ input.argument('%') }" + +command('enable'): | + #!bash + run "docker-compose up -d" + +command('install'): | + #!bash|@ + run "cp .docker.env.example .docker.env" + run "cp .env.example .env" + run "ws composer validate" + run "ws composer install" + run "ws drush site:install -y --existing-config --account-pass=@('admin.password')" + +attributes: + admin: + password: secret + app: + url: http://stream-demo.docker.localhost