https://github.com/snowplow-archive/dev-environment
Vagrant-based Snowplow development environment with Ansible playbooks to install common tools
https://github.com/snowplow-archive/dev-environment
Last synced: about 1 month ago
JSON representation
Vagrant-based Snowplow development environment with Ansible playbooks to install common tools
- Host: GitHub
- URL: https://github.com/snowplow-archive/dev-environment
- Owner: snowplow-archive
- Archived: true
- Created: 2013-12-31T15:07:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T15:42:40.000Z (over 7 years ago)
- Last Synced: 2025-03-12T16:15:51.423Z (2 months ago)
- Language: Shell
- Homepage: http://snowplowanalytics.com
- Size: 436 KB
- Stars: 11
- Watchers: 15
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE-2.0.txt
Awesome Lists containing this project
README
# Snowplow Development Environment
[Vagrant] [vagrant]-based development environment with [Ansible] [ansible] playbooks to install common tools, including:
* The JVM ecosystem
* Ruby
* PostgresWorks fine on Linux, Mac and Windows hosts.
Used as the development environment for all [Snowplow Analytics] [snowplow] projects.
## Installation
### Dependencies
To use this development environment, you need to have [Vagrant] [vagrant-install] and [VirtualBox] [virtualbox-install] installed.
We also recommend installing vagrant-vbguest to prevent the VirtualBox Guest Additions from getting out of sync:
$ vagrant plugin install vagrant-vbguest
### Starting Vagrant
First, clone the repo, including `ansible-playbooks` submodule:
$ git clone --recursive https://github.com/snowplow/dev-environment.git
$ cd dev-environmentBy default the development environment is configured with 2 GB of RAM. You can adjust this by running the `configure.sh` script, e.g. for 5 GB try:
$ ./scripts/configure.sh 5
Now you can build the VM:
$ vagrant up
And SSH into it:
$ vagrant ssh
### Installing software
The guest VM has Ansible installed. This means you can run the different [Ansible playbooks] [ansible-playbooks] directly, thus:
```
$ ansible-playbook /vagrant/ansible-playbooks/{{PLAYBOOK_NAME}}.yml \
--inventory-file=/vagrant/home/ansible/ansible_hosts --connection=local
```For example, to install the development environment for working on the Snowplow batch-based enrichment process:
```
$ ansible-playbook /vagrant/ansible-playbooks/snowplow-batch-pipeline.yml \
--inventory-file=/home/vagrant/ansible_hosts --connection=local
```To simply install Java-7:
```
$ ansible-playbook /vagrant/ansible-playbooks/java-7.yml \
--inventory-file=/home/vagrant/ansible_hosts --connection=local
```A whole host of playbooks can be found in the [ansible-playbooks] (https://github.com/snowplow/ansible-playbooks). Playbooks in the root of the project can be run directly - these are composed of [roles] (https://github.com/snowplow/ansible-playbooks/tree/master/roles) that individually install specific components of development environments. For more information on composing your own development environments out of the individual roles, see the [ansible-playbooks README] (https://github.com/snowplow/ansible-playbooks).
### Starting developing
We recommend removing git tracking from the dev environment before starting coding. You can do these either from the host or the guest VM:
$ rm -rf .git*
Now you can safely pull down the codebase you want to work on e.g:
$ git clone https://github.com/snowplow/snowplow.git
## Available playbooks
Please see our [Ansible playbooks] [ansible-playbooks] repository for the full list.
## Copyright and license
Snowplow Development Environment is copyright 2014 Snowplow Analytics Ltd.
Licensed under the [Apache License, Version 2.0] [license] (the "License");
you may not use this software except in compliance with the License.Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.[vagrant]: http://vagrantup.com
[vagrant-install]: http://docs.vagrantup.com/v2/installation/index.html
[virtualbox]: https://www.virtualbox.org
[virtualbox-install]: https://www.virtualbox.org/wiki/Downloads
[ansible]: http://www.ansibleworks.com/[snowplow]: http://snowplowanalytics.com
[ansible-playbooks]: https://github.com/snowplow/ansible-playbooks
[license]: http://www.apache.org/licenses/LICENSE-2.0