Loading .gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -9,11 +9,11 @@ health-check: - fab --version - fab -f . --list-format=nested --list tags: - docker-images - docker-generic sonarqube: image: ntdt/sonar-scanner:2.7 stage: quality script: - cd $CI_PROJECT_DIR && /opt/sonar-scanner/bin/sonar-scanner -Dsonar.host.url=$SONAR_HOST -Dsonar.login=$SONAR_TOKEN tags: - docker-images - docker-generic CHANGELOG.adoc +1 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ This project adheres to http://semver.org/[Semantic Versioning]. * Add a Patternlab command to build the static style guide: `fab patternlab.build`. * Add a Git command to verify repositories states and warn user if changes might be lost. * Add a docker.clean command to clean docker's workspace (removes container and image). == 2.0.0 - 2016/05/09 Loading docker.py +16 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ from __future__ import unicode_literals from fabric.api import task, roles, env, local, run, lcd from fabric.colors import red, green from fabric.contrib.console import confirm import helpers as h Loading Loading @@ -220,6 +221,21 @@ def image_remove(): print(red('Docker image {}/drupal was not found'.format(env.project_name))) @task @roles('local') def clean(): """ Clean docker workspace (removes container & images) """ if (confirm( red('This will stop, remove container and delete docker image ' + 'related to this project. Do you want to continue?'), default=False)): container_stop() container_remove() image_remove() @task @roles('docker') def update_host(): Loading Loading
.gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -9,11 +9,11 @@ health-check: - fab --version - fab -f . --list-format=nested --list tags: - docker-images - docker-generic sonarqube: image: ntdt/sonar-scanner:2.7 stage: quality script: - cd $CI_PROJECT_DIR && /opt/sonar-scanner/bin/sonar-scanner -Dsonar.host.url=$SONAR_HOST -Dsonar.login=$SONAR_TOKEN tags: - docker-images - docker-generic
CHANGELOG.adoc +1 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ This project adheres to http://semver.org/[Semantic Versioning]. * Add a Patternlab command to build the static style guide: `fab patternlab.build`. * Add a Git command to verify repositories states and warn user if changes might be lost. * Add a docker.clean command to clean docker's workspace (removes container and image). == 2.0.0 - 2016/05/09 Loading
docker.py +16 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ from __future__ import unicode_literals from fabric.api import task, roles, env, local, run, lcd from fabric.colors import red, green from fabric.contrib.console import confirm import helpers as h Loading Loading @@ -220,6 +221,21 @@ def image_remove(): print(red('Docker image {}/drupal was not found'.format(env.project_name))) @task @roles('local') def clean(): """ Clean docker workspace (removes container & images) """ if (confirm( red('This will stop, remove container and delete docker image ' + 'related to this project. Do you want to continue?'), default=False)): container_stop() container_remove() image_remove() @task @roles('docker') def update_host(): Loading