Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1f75d20e
Commit
1f75d20e
authored
Nov 10, 2014
by
Brendan Burns
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2263 from jbeda/clean-volumes
Clean out data volumes for real
parents
a60a01c3
a94e8a3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common.sh
build/common.sh
+3
-3
No files found.
build/common.sh
View file @
1f75d20e
...
...
@@ -172,7 +172,7 @@ function kube::build::clean_output() {
fi
echo
"+++ Removing data container"
docker
rm
"
${
KUBE_BUILD_DATA_CONTAINER_NAME
}
"
>
/dev/null 2>&1
||
true
docker
rm
-v
"
${
KUBE_BUILD_DATA_CONTAINER_NAME
}
"
>
/dev/null 2>&1
||
true
echo
"+++ Cleaning out local _output directory"
rm
-rf
"
${
LOCAL_OUTPUT_ROOT
}
"
...
...
@@ -405,13 +405,13 @@ function kube::build::run_build_command() {
docker run
"
${
docker_run_opts
[@]
}
"
"
${
KUBE_BUILD_IMAGE
}
"
)
# Remove the container if it is left over from some previous aborted run
docker
rm
"
${
KUBE_BUILD_CONTAINER_NAME
}
"
>
/dev/null 2>&1
||
true
docker
rm
-v
"
${
KUBE_BUILD_CONTAINER_NAME
}
"
>
/dev/null 2>&1
||
true
"
${
docker_cmd
[@]
}
"
"
$@
"
# Remove the container after we run. '--rm' might be appropriate but it
# appears that sometimes it fails. See
# https://github.com/docker/docker/issues/3968
docker
rm
"
${
KUBE_BUILD_CONTAINER_NAME
}
"
>
/dev/null 2>&1
||
true
docker
rm
-v
"
${
KUBE_BUILD_CONTAINER_NAME
}
"
>
/dev/null 2>&1
||
true
}
# Test if the output directory is remote (and can only be accessed through
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment