-
Notifications
You must be signed in to change notification settings - Fork 0
Setup platform development machine
Note - work in progress: trying to find a solution for using the platform-dev hostname; this is currently giving problems when the Rancher network agent is started
-
Download Ubuntu Server 14.04 LTS: http://www.ubuntu.com/download/server
-
Create new VirtualBox virtual machine:
-
Type: Linux, Version: Ubuntu (64 bit)
-
Memory: 2GB+
-
Create a virtual hard drive, VDI, dynamically allocated, 16GB
- Update settings:
-
Storage > CD: select downloaded Ubuntu iso
-
Network > Adapter 1: attached to bridged adapter
- Start the virtual machine and install Ubuntu:
-
Set timezone to UTC
-
Install OpenSSH server
-
After reboot, login to check the assigned IP address
-
SSH into the freshly installed Ubuntu installation, and update:
sudo apt-get update sudo apt-get dist-upgrade
-
Download and run Docker installation script:
wget -qO- https://get.docker.com/ | sh
Also see: https://docs.docker.com/installation/ubuntulinux/
-
Shutdown the virtual machine.
-
Open the Snapshots view and click on 'Take Snapshot'.
-
Start the Rancher management server:
sudo docker run -d --restart=always -p 8080:8080 --name rancher-mgmt rancher/server:v0.25.0 -
Browse to the management interface: http://{{vm ip}}:8080
-
Enable Access Control
Also see: http://rancherio.github.io/rancher/docs/installing-rancher/installing-server/
-
Go to the add custom host page: <http://{[vm ip}}:8080/static/infrastructure/hosts/add/custom>
-
Add all labels:
mgmt=true platform=true backend=true frontend=true -
Copy-paste the docker run command from step 4 in an editor and add the following parameter:
-e CATTLE_AGENT_IP={{vm ip}} -
Run the amended command on the virtual machine.
-
Wait 1-2 minutes for the agent to finish the initial run.