Difference between revisions of "WOCE Build Environment"

From WebOS-Ports
Jump to: navigation, search
Line 32: Line 32:
  
 
===OSX===
 
===OSX===
 +
 
This section is a work in progress
 
This section is a work in progress
  
 +
===Setting up NFS===
  
===Setting up NFS===
 
 
Host:
 
Host:
 +
 
Open /System/Library/LaunchDaemons/com.apple.nfsd.plist (requires superuser)
 
Open /System/Library/LaunchDaemons/com.apple.nfsd.plist (requires superuser)
 +
 
Scroll down to the line that reads '<string>/sbin/nfsd</string>
 
Scroll down to the line that reads '<string>/sbin/nfsd</string>
 +
 
Add a new line below it that reads <string>-N</string>
 
Add a new line below it that reads <string>-N</string>
 +
 
Save the file, close it
 
Save the file, close it
 +
 
Open /etc/exports for editing (requires superuser)
 
Open /etc/exports for editing (requires superuser)
 +
 
Add the following:
 
Add the following:
 +
 
/path/to/shared/dir -mapall=501
 
/path/to/shared/dir -mapall=501
 +
 
Save and close it
 
Save and close it
 +
 
Open Terminal.app and run the following:
 
Open Terminal.app and run the following:
 +
 
sudo nfsd enable
 
sudo nfsd enable
 +
 
sudo nfsd checkexports
 
sudo nfsd checkexports
 +
 
showmount -e
 
showmount -e
Your share's path should be printed to stdout
+
 
 +
Your share's path should be printed to stout
 +
 
  
 
Client:
 
Client:
 +
 
Run 'sudo nano /etc/fstab' (or use whatever editor you like)
 
Run 'sudo nano /etc/fstab' (or use whatever editor you like)
Modify the bottom line, replacing /PATH/TO/HOST/SHARE with the location of woce-build
+
 
on your host machine
+
Modify the bottom line, replacing /PATH/TO/HOST/SHARE with the location of woce-build on your host machine
Save and close the fstab
+
 
 +
Save and close the stab
 +
 
 
Run 'sudo mount /srv/share' (Subject to change if using the host's WOCE folder)
 
Run 'sudo mount /srv/share' (Subject to change if using the host's WOCE folder)

Revision as of 18:37, 1 July 2012

This is a Work in Progress


WOCE Self-Contained Development Environment

Introduction

The WOCE SDE uses Vagrant and Virtualbox to create a self-contained development and build environment for use on Windows, OSX and Linux Hosts.

Our goal is to create a consistent setup for developers so that if there are issues with development we can know that we all are singing off the same sheet of music.

Installation

Minimum Requirements

x86 based computer running Windows(XP minimum), OSX(10.5 minimum) or Linux(32bit or 64bit).

Enough resources to allot:

  • 1 "Virtual CPU"
  • 1GB "Virtual RAM"
  • 20GB "Virtual HD"

Procedure

1. From your development host go to Vagrant Downloads and download the latest version for your host.

2. From your development host go to Virtualbox Downloads and download the latest version for your host.

3.

OSX

This section is a work in progress

Setting up NFS

Host:

Open /System/Library/LaunchDaemons/com.apple.nfsd.plist (requires superuser)

Scroll down to the line that reads '<string>/sbin/nfsd</string>

Add a new line below it that reads <string>-N</string>

Save the file, close it

Open /etc/exports for editing (requires superuser)

Add the following:

/path/to/shared/dir -mapall=501

Save and close it

Open Terminal.app and run the following:

sudo nfsd enable

sudo nfsd checkexports

showmount -e

Your share's path should be printed to stout


Client:

Run 'sudo nano /etc/fstab' (or use whatever editor you like)

Modify the bottom line, replacing /PATH/TO/HOST/SHARE with the location of woce-build on your host machine

Save and close the stab

Run 'sudo mount /srv/share' (Subject to change if using the host's WOCE folder)