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
4d63e13c
Unverified
Commit
4d63e13c
authored
Aug 25, 2017
by
Christoph Blecker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to copy output when running the build shell
parent
68232c32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
run.sh
build/run.sh
+10
-1
shell.sh
build/shell.sh
+1
-4
No files found.
build/run.sh
View file @
4d63e13c
...
...
@@ -25,10 +25,19 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
$KUBE_ROOT
/build/common.sh"
KUBE_RUN_COPY_OUTPUT
=
"
${
KUBE_RUN_COPY_OUTPUT
:-
y
}
"
kube::build::verify_prereqs
kube::build::build_image
if
[[
${
KUBE_RUN_COPY_OUTPUT
}
=
~ ^[yY]
$
]]
;
then
kube::log::status
"Output from this container will be rsynced out upon completion. Set KUBE_RUN_COPY_OUTPUT=n to disable."
else
kube::log::status
"Output from this container will NOT be rsynced out upon completion. Set KUBE_RUN_COPY_OUTPUT=y to enable."
fi
kube::build::run_build_command
"
$@
"
if
[[
${
KUBE_RUN_COPY_OUTPUT
:-
y
}
=
~ ^[yY]
$
]]
;
then
if
[[
${
KUBE_RUN_COPY_OUTPUT
}
=
~ ^[yY]
$
]]
;
then
kube::build::copy_output
fi
build/shell.sh
View file @
4d63e13c
...
...
@@ -24,8 +24,5 @@ set -o pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
source
"
${
KUBE_ROOT
}
/build/common.sh"
source
"
${
KUBE_ROOT
}
/build/lib/release.sh"
kube::build::verify_prereqs
kube::build::build_image
kube::build::run_build_command bash
||
true
KUBE_RUN_COPY_OUTPUT
=
"
${
KUBE_RUN_COPY_OUTPUT
:-
n
}
"
"
${
KUBE_ROOT
}
/build/run.sh"
bash
"
$@
"
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