Skip to content

Conversation

@mrrobot47
Copy link
Member

@mrrobot47 mrrobot47 commented Oct 23, 2018

Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
…tings

Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
@mrrobot47 mrrobot47 self-assigned this Oct 23, 2018
@mrrobot47 mrrobot47 requested a review from mbtamuli October 23, 2018 08:27
$volume_prefix = \EE\Site\Utils\get_site_prefix( $site_url );
$finder = new Finder();
$finder->in( $volumes_dir );
$volumes_to_delete = $finder->directories()->name( $volume_prefix . '*' );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finding volume prefix and deleting them is unnecessary. Please create volumes using labels.

Example

docker volume create \
  --label "org.label-schema.vendor=EasyEngine" \
  --label "io.easyengine.site=one.test" \
  onetest_htdocs

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command will list the volumes with specific label

docker volume ls --filter="label=org.label-schema.vendor=EasyEngine" --filter="label=io.easyengine.site=one.test"

Adding the -q flag will only display the name

docker volume ls --filter="label=org.label-schema.vendor=EasyEngine" --filter="label=io.easyengine.site=one.test" -q

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker Root Dir - docker info 2> /dev/null | awk '/Docker Root Dir/ {print $4}'

Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
Copy link
Contributor

@mbtamuli mbtamuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except a few minor changes.

mbtamuli and others added 3 commits October 24, 2018 09:47
Co-Authored-By: mrrobot47 <riddheshsanghvi96@gmail.com>
Co-Authored-By: mrrobot47 <riddheshsanghvi96@gmail.com>
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
mbtamuli
mbtamuli previously approved these changes Oct 24, 2018
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
@rahulsprajapati rahulsprajapati merged commit 8a5d550 into EasyEngine:develop Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants