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
df455d12
Commit
df455d12
authored
Jun 27, 2016
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
node e2e: install nsenter on trusty images
This is required to run kubelet with kubenet.
parent
e7f7a49b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
setup_host.sh
test/e2e_node/environment/setup_host.sh
+19
-0
No files found.
test/e2e_node/environment/setup_host.sh
View file @
df455d12
...
...
@@ -62,6 +62,25 @@ if [ $? -ne 0 ]; then
rm
-r
etcd-v2.2.5-linux-amd64
*
fi
# Install nsenter for ubuntu images
cat
/etc/
*
-release
|
grep
"ID=ubuntu"
if
[
$?
-eq
0
]
;
then
if
!
which nsenter
>
/dev/null
;
then
echo
"Do not find nsenter. Install it."
mkdir
-p
/tmp/nsenter-install
cd
/tmp/nsenter-install
curl https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.tar.gz |
tar
-zxf-
sudo
apt-get update
sudo
apt-get
--yes
install
make
sudo
apt-get
--yes
install
gcc
cd
util-linux-2.24
./configure
--without-ncurses
make nsenter
sudo cp
nsenter /usr/local/bin
rm
-rf
/tmp/nsenter-install
fi
fi
# Install docker
hash
docker 2>/dev/null
if
[
$?
-ne
0
]
;
then
...
...
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