Discussion:
[jira] [Updated] (INCUBATOR-229) Configure the openwhisk VMs, including openwhisk1, openwhisk2 and openwhisk3
Vincent Hou (JIRA)
2018-12-10 17:33:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/INCUBATOR-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Hou updated INCUBATOR-229:
----------------------------------
Description:
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
sudo pip install docker==2.2.1    --ignore-installed  --force-reinstall
sudo pip install httplib2==0.9.2  --ignore-installed  --force-reinstall
sudo pip install requests==2.10.0 --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.
sudo usermod -a -G docker jenkins
sudo gpasswd -a jenkins docker
sudo service docker restart

At last but not least, restart the VM, making sure the change takes effect. Thank you very much.
Configure the openwhisk VMs, including openwhisk1, openwhisk2 and openwhisk3
----------------------------------------------------------------------------
Key: INCUBATOR-229
URL: https://issues.apache.org/jira/browse/INCUBATOR-229
Project: Incubator
Issue Type: Task
Reporter: Vincent Hou
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
sudo pip install docker==2.2.1    --ignore-installed  --force-reinstall
sudo pip install httplib2==0.9.2  --ignore-installed  --force-reinstall
sudo pip install requests==2.10.0 --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.
sudo usermod -a -G docker jenkins
sudo gpasswd -a jenkins 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: general-***@incubator.apache.org
For additional commands, e-mail: general-***@incubator.apache.org
Vincent Hou (JIRA)
2018-12-10 17:38:00 UTC
Permalink
[ https://issues.apache.org/jira/browse/INCUBATOR-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Hou updated INCUBATOR-229:
----------------------------------
Summary: Configure the openwhisk VMs for Jenkins, including openwhisk1, openwhisk2 and openwhisk3 (was: Configure the openwhisk VMs, including openwhisk1, openwhisk2 and openwhisk3)
Configure the openwhisk VMs for Jenkins, including openwhisk1, openwhisk2 and openwhisk3
----------------------------------------------------------------------------------------
Key: INCUBATOR-229
URL: https://issues.apache.org/jira/browse/INCUBATOR-229
Project: Incubator
Issue Type: Task
Reporter: Vincent Hou
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
sudo pip install docker==2.2.1    --ignore-installed  --force-reinstall
sudo pip install httplib2==0.9.2  --ignore-installed  --force-reinstall
sudo pip install requests==2.10.0 --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.
sudo usermod -a -G docker jenkins
sudo gpasswd -a jenkins 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: general-***@incubator.apache.org
For additional commands, e-mail: general-***@incubator.apache.org
Vincent Hou (JIRA)
2018-12-10 17:32:00 UTC
Permalink
Vincent Hou created INCUBATOR-229:
-------------------------------------

Summary: Configure the openwhisk VMs, including openwhisk1, openwhisk2 and openwhisk3
Key: INCUBATOR-229
URL: https://issues.apache.org/jira/browse/INCUBATOR-229
Project: Incubator
Issue Type: Task
Reporter: Vincent Hou






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: general-***@incubator.apache.org
For additional commands, e-mail: general-***@incubator.apache.org
Loading...