For a local virtual machine environment:
- vagrant >=1.5
- ansible >=1.5
- virtualbox or vmware (fusion or workstation)
For an AWS environment:
To run a local virtual machine evironment change directory to vagrant
cd vagrantRunning make or make vmware will:
- build a base vagrant box image
- create a cluster of virtual machines
- provision each machine with a role
- set an entry for
fxa.localin/etc/hosts
The fxa-content-server should now be accessible from a browser at http://fxa.local
To pull code changes from github:
make update-codeTo update other provisioning changes:
make updateTo run on AWS change directory to aws
cd aws- Set the
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYenvironment variables - create a
environments/foo.ymlfile ('foo' can be anything) a) seeenvironments/EXAMPLE.ymlfor a base reference - run
make foo
To updated the stack just run make foo again.
You can ssh into the EC2 instance with ssh ec2-user@{{ whatever you configured in foo.yml }}
- fxa sources are in
/data/fxa-* - node processes are run by supervisord
- config in
/etc/supervisor.d - run
sudo supervisorctl statusfor info
- config in
- nginx is the web frontend
- config in
/etc/nginx/conf.d
- config in
- node process logs are in
/var/log/fxa-*
- logs: https://latest.dev.lcip.org/logs/
- heka: https://latest.dev.lcip.org/heka/
- content server: https://latest.dev.lcip.org
- auth server: https://latest.dev.lcip.org/auth/
- oauth server: https://oauth-latest.dev.lcip.org
- demo oauth site: https://123done-latest.dev.lcip.org