Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI #69

Open
ivomarino opened this issue Mar 27, 2017 · 2 comments
Open

CI #69

ivomarino opened this issue Mar 27, 2017 · 2 comments

Comments

@ivomarino
Copy link
Member

ivomarino commented Mar 27, 2017

We want to be able to test latest AppFlow code based on Continuous Integration via Jenkins.
The basic idea is to run Jenkins inside a Docker container or a FreeBSD Jail and trigger the build/test process on each git commit to master or a specific testing branch via pipeline.

The stages of the pipeline process (thanks to @sneaker for suggestions on this), should run in parallel and perform this specific tasks:

We should trigger the LXC/VM creation via API, like pvesh on Proxmox and vm on FreeNAS Corral, we also could use curl REST API calls.

@ivomarino
Copy link
Member Author

ivomarino commented Mar 27, 2017

For proxmox we can also consider using proxmoxer but we would need to write some Python code in that case.

@ivomarino
Copy link
Member Author

ivomarino commented Apr 1, 2017

this allows self-provisioning agains mrrobot using local connection:
root@ubuntu:/tmp/appflow# ansible-playbook -e conf_env=development --skip-tags hosts --limit local -i examples/appflow-mrrobot/development/inventory playbooks/generic.yml -- works inside a Docker container.

This also works in case we want to simulate atlantis:

echo "127.0.0.1 atlantis" > /etc/hosts
root@ubuntu-14:/tmp/appflow# ansible-playbook -e ansible_connection=local --skip-tags hosts --limit atlantis -i examples/appflow-mrrobot/development/inventory playbooks/generic.yml

In case we don't have ansible on the Jenkins node we could trigger remote self-provisioning directly on the Docker container, LXC or VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants