Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
654c367c
Commit
654c367c
authored
7 years ago
by
Matt Kwong
Browse files
Options
Downloads
Patches
Plain Diff
Update VM creation scripts to update Linux kernel
parent
380c3a7e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/gce/linux_performance_worker_init.sh
+18
-5
18 additions, 5 deletions
tools/gce/linux_performance_worker_init.sh
tools/gce/linux_worker_init.sh
+10
-2
10 additions, 2 deletions
tools/gce/linux_worker_init.sh
with
28 additions
and
7 deletions
tools/gce/linux_performance_worker_init.sh
+
18
−
5
View file @
654c367c
...
...
@@ -40,11 +40,6 @@ sudo apt-get update
sudo
apt-get
install
-y
openjdk-8-jdk
sudo
apt-get
install
-y
unzip lsof
# Add pubkey of jenkins@grpc-jenkins-master to authorized keys of jenkins@
# This needs to happen as the last step to prevent Jenkins master from connecting
# to a machine that hasn't been properly setup yet.
cat
jenkins_master.pub |
sudo tee
--append
~jenkins/.ssh/authorized_keys
sudo
apt-get
install
-y
\
autoconf
\
autotools-dev
\
...
...
@@ -169,3 +164,21 @@ git clone -v https://github.com/brendangregg/FlameGraph ~/FlameGraph
# Install scipy and numpy for benchmarking scripts
sudo
apt-get
install
python-scipy python-numpy
# Update Linux kernel to 4.9
wget
\
kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.20/linux-headers-4.9.20-040920_4.9.20-040920.201703310531_all.deb
\
kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.20/linux-headers-4.9.20-040920-generic_4.9.20-040920.201703310531_amd64.deb
\
kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.20/linux-image-4.9.20-040920-generic_4.9.20-040920.201703310531_amd64.deb
sudo
dpkg
-i
linux-headers-4.9
*
.deb linux-image-4.9
*
.deb
rm
linux-
*
# Add pubkey of jenkins@grpc-jenkins-master to authorized keys of jenkins@
# This needs to happen as the last step to prevent Jenkins master from connecting
# to a machine that hasn't been properly setup yet.
cat
jenkins_master.pub |
sudo tee
--append
~jenkins/.ssh/authorized_keys
# Restart for VM to pick up kernel update
echo
'Successfully initialized the linux worker, going for reboot in 10 seconds'
sleep
10
sudo
reboot
This diff is collapsed.
Click to expand it.
tools/gce/linux_worker_init.sh
+
10
−
2
View file @
654c367c
...
...
@@ -59,19 +59,27 @@ sudo usermod -aG docker jenkins
# Use "overlay" storage driver for docker
# see https://github.com/grpc/grpc/issues/4988
echo
'DOCKER_OPTS="${DOCKER_OPTS} --
storage-driver
=
overlay"
'
|
sudo tee
--append
/etc/default/docker
printf
"{
\n\t\"
storage-driver
\"
:
\"
overlay
\"\n
}
"
|
sudo tee
/etc/docker/daemon.json
# Install RVM
# TODO(jtattermusch): why is RVM needed?
gpg
--keyserver
hkp://keys.gnupg.net
--recv-keys
409B6B1796C275462A1703113804BB82D39DC0E3
curl
-sSL
https://get.rvm.io | bash
-s
stable
--ruby
# Upgrade Linux kernel to 4.9
wget
\
kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.20/linux-headers-4.9.20-040920_4.9.20-040920.201703310531_all.deb
\
kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.20/linux-headers-4.9.20-040920-generic_4.9.20-040920.201703310531_amd64.deb
\
kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.20/linux-image-4.9.20-040920-generic_4.9.20-040920.201703310531_amd64.deb
sudo
dpkg
-i
linux-headers-4.9
*
.deb linux-image-4.9
*
.deb
rm
linux-
*
# Add pubkey of jenkins@grpc-jenkins-master to authorized keys of jenkins@
# This needs to happen as the last step to prevent Jenkins master from connecting
# to a machine that hasn't been properly setup yet.
cat
jenkins_master.pub |
sudo tee
--append
~jenkins/.ssh/authorized_keys
# Restart for docker to pickup the config changes.
# Restart for docker to pick
up the config changes.
echo
'Successfully initialized the linux worker, going for reboot in 10 seconds'
sleep
10
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment