A setup scripts of openstf/stf with vagrant, docker, docker-compose, ansible, nginx, consul, consul-template and registrator.
- Vagrant (Tested on 1.7.2)
- Ansible (Tested on 1.9.1)
-
Generate Google OAuth2 Credential.
-
Open Google Developer Console.
-
Create project like "stf".
-
Enable APIs ->
Google+ APIandContacts API -
Consent screen -> Choose
Email addressand nameProduct name. -
Credential -> Create new Client ID -> Input your configurations.
property value Application type Web Application Authorized JavaScript Origin http://stf.example.org Authorized redirect URIs http://stf.example.org/auth/oauth/callback
-
-
Edit vars file to suit your environment. Replace
OAUTH_CLIENT_IDandOAUTH_CLIENT_SECRETgenerated in above.
vim ansible/vars/local.yml
use_ssl: no
app_scheme: http
app_domain: stf.example.org
app_url: "{{ app_scheme }}://{{ app_domain }}"
auth_method: "auth-oauth2"
env_values:
- { key: OAUTH_CLIENT_ID, value: "replace_it" }
- { key: OAUTH_CLIENT_SECRET, value: "replace_it" }
- Setup VM and Docker containers.
make install
- Ensure application is properly launched.
sudo sh -c "echo '172.17.8.101 stf.example.org' >> /etc/hosts"
then open http://stf.example.org/
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request