infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vijay Anand Devarajan (JIRA)" <j...@apache.org>
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

    [ https://issues.apache.org/jira/browse/INFRA-17411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16797455#comment-16797455
] 

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
server.

Thanks,
Vijay Anand D





> Configure the openwhisk VMs for Jenkins, including openwhisk1, openwhisk2 and openwhisk3
> ----------------------------------------------------------------------------------------
>
>                 Key: INFRA-17411
>                 URL: https://issues.apache.org/jira/browse/INFRA-17411
>             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
else.
> 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 https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
> sudo apt-key fingerprint 0EBFCD88
> sudo add-apt-repository "deb [arch=$(uname -m | sed -e 's/x86_64/amd64/g')] https://download.docker.com/linux/ubuntu
$(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://0.0.0.0:4243 -H unix:///var/run/docker.sock
--storage-driver=aufs"'\'' >> /etc/default/docker'
> sudo apt-get install docker.io
> # 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
(v7.6.3#76005)

Mime
View raw message