Developer guide: Difference between revisions

From LPI Wiki
Jump to navigationJump to search
BenDupuis (talk | contribs)
BenDupuis (talk | contribs)
Line 45: Line 45:
  p4 sync
  p4 sync


===Setup Docker Image===
===Load Docker Image===
tbd
 
* Load linux image from $xamdev/docker/rick/rick/xamdev
* Run scripts to install needed packages.
 
===Run xamdev web app===
through docker terminal
use ip address to connect to server through browser
 
===Run Regression Tests===
 
cd $xamdev
prove -v t

Revision as of 14:32, 22 October 2015

Introduction

This is a quick start guide.

Steps

Install Docker

Install docker:

https://docs.docker.com/linux/started/

You may have to do this step.

Add user to docker group:

usermod -a -G docker $USER

Install Perforce

Install perforce client from: http://www.perforce.com/downloads/helix

sudo cp ~/Downloads/p4 /usr/local/bin
sudo chmod +x /usr/local/bin/p4

Create new folder in Home directory.

mkdir -p p4/xamnet

Create new file in this folder called .p4settings
Include in this file:

P4PORT=p4.lpi.org:1666
P4USER=<username>
P4PASSWD=<password>
P4CLIENT=<username>-dev

Edit .bashrc file to include:

xamdev=$HOME/p4/xamnet/dev/dev/pde/mojo
xamman=$HOME/p4/xamnet/man/dev/pde/mojo
export P4CONFIG=.p4settings

This one time source .bashrc:

. .bashrc

Create Your Perforce Workspace

tbd

and:

p4 sync

Load Docker Image

tbd

  • Load linux image from $xamdev/docker/rick/rick/xamdev
  • Run scripts to install needed packages.

Run xamdev web app

through docker terminal

use ip address to connect to server through browser

Run Regression Tests

cd $xamdev
prove -v t