infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vijay Anand Devarajan (JIRA)" <>
Subject [jira] [Commented] (INFRA-17411) Configure the openwhisk VMs for Jenkins, including openwhisk1, openwhisk2 and openwhisk3
Date Wed, 20 Mar 2019 19:00:00 GMT


Vijay Anand Devarajan commented on INFRA-17411:

Hi Vincent,

I am facing the issues to upload my public key into the server, servers
return session timeout error.
if you have any document or link to create key and how to upload in the key

Vijay Anand D

> Configure the openwhisk VMs for Jenkins, including openwhisk1, openwhisk2 and openwhisk3
> ----------------------------------------------------------------------------------------
>                 Key: INFRA-17411
>                 URL:
>             Project: Infrastructure
>          Issue Type: Task
>          Components: Jenkins
>            Reporter: Vincent Hou
>            Assignee: Gavin
>            Priority: Major
> Please run the following commands with root or root access to configure the OpenWhisk
nodes, including openwhisk1, openwhisk2 and openwhisk3.
> # 1. All the Install openjdk 8 and switch the Java environment to Java 8. Please switch
it to Java 8, since OpenWhisk only supports Java 8 for now.
> sudo apt-get update
> sudo apt-get install openjdk-8-jdk
> # By default, the path to open jdk 8 is /usr/lib/jvm/java-1.8.0-openjdk-amd64. You can
run the command 'sudo update-java-alternatives --list' to find the path, if it is something
> sudo update-java-alternatives --set /usr/lib/jvm/java-1.8.0-openjdk-amd64
> # 2. Install ntp git zip tzdata lsb-release, and start the services
> sudo apt-get update 
> sudo apt-get install ntp git zip tzdata lsb-release
> echo "Etc/UTC" | sudo tee /etc/timezone
> sudo dpkg-reconfigure --frontend noninteractive tzdata
> sudo service ntp restart
> sudo ntpq -c lpeer
> # 3. Install pip, setuptools, argcomplete and couchdb
> sudo apt-get install python-pip
> sudo pip install --upgrade setuptools pip
> sudo pip install argcomplete couchdb
> # 4. Install software-properties-common, python-dev libffi-dev libssl-dev, ansible, jinja2,
docker, httplib2 and requests
> sudo apt-get install software-properties-common
> sudo apt-add-repository ppa:ansible/ansible
> sudo apt-get update
> sudo apt-get install python-dev libffi-dev libssl-dev
> sudo pip install markupsafe
> sudo pip install ansible==2.5.2
> sudo pip install jinja2==2.9.6
> # No need to install docker by pip
> sudo pip install httplib2==0.9.2  --ignore-installed  --force-reinstall
> sudo pip uninstall requests
> sudo pip install requests==2.18.1 --ignore-installed  --force-reinstall
> # 5. Install and configure docker
> sudo apt-get  install apt-transport-https ca-certificates curl software-properties-common
> curl -fsSL | sudo apt-key add -
> sudo apt-key fingerprint 0EBFCD88
> sudo add-apt-repository "deb [arch=$(uname -m | sed -e 's/x86_64/amd64/g')]
$(lsb_release -cs) stable"
> sudo apt-get  update
> sudo apt-get purge lxc-docker || /bin/true
> sudo apt-cache policy docker-engine
> sudo -E bash -c 'echo '\''DOCKER_OPTS="-H tcp:// -H unix:///var/run/docker.sock
--storage-driver=aufs"'\'' >> /etc/default/docker'
> sudo apt-get install
> # The name 'jenkins' is the username that Jenkins environment uses to access other services.
> # The name "openwhisk" is used to access invoker nodes by ssh
> sudo usermod -a -G docker jenkins
> sudo gpasswd -a jenkins docker
> sudo usermod -a -G docker openwhisk
> sudo gpasswd -a openwhisk docker
> sudo service docker restart
> At last but not least, restart the VM, making sure the change takes effect. Thank you
very much.

This message was sent by Atlassian JIRA

View raw message