mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
vagrant: initial commit
Vagrant environment to do GStreamer development, debugging and testing.
This commit is contained in:
parent
6c4b51dd5c
commit
a12444be21
7 changed files with 90 additions and 0 deletions
15
vagrant/Vagrantfile
vendored
Normal file
15
vagrant/Vagrantfile
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# -*- mode: ruby -*-
|
||||||
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
|
Vagrant.configure("2") do |config|
|
||||||
|
config.vm.box = "saucy64"
|
||||||
|
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box"
|
||||||
|
config.vm.network :private_network, ip: "192.168.33.11"
|
||||||
|
config.vm.synced_folder "../..", "/gst"
|
||||||
|
config.vm.provision :ansible do |ansible|
|
||||||
|
ansible.playbook = "playbook.yml"
|
||||||
|
ansible.inventory_file = "ansible_hosts"
|
||||||
|
ansible.verbose = true
|
||||||
|
ansible.ask_sudo_pass = true
|
||||||
|
end
|
||||||
|
end
|
2
vagrant/ansible_hosts
Normal file
2
vagrant/ansible_hosts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[vagrant]
|
||||||
|
192.168.33.11
|
10
vagrant/gst-streaming-server-git.yml
Normal file
10
vagrant/gst-streaming-server-git.yml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
- name: Get GStreamer Streaming Server from git
|
||||||
|
git: repo=git://anongit.freedesktop.org/gstreamer/{{ item }} dest=/tmp/{{ item }}
|
||||||
|
with_items:
|
||||||
|
- gst-streaming-server
|
||||||
|
|
||||||
|
- name: Install GStreamer Streaming Server into a temporary prefix
|
||||||
|
action: shell cd /tmp/{{ item }} ; ./autogen.sh --prefix=/usr && make && make install
|
||||||
|
with_items:
|
||||||
|
- gst-streaming-server
|
38
vagrant/gstreamer-git.yml
Normal file
38
vagrant/gstreamer-git.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
---
|
||||||
|
- name: Ensure Python gobject-introspection and some helper stuff is installed
|
||||||
|
apt: pkg={{ item }} state=present
|
||||||
|
with_items:
|
||||||
|
- python3-gi
|
||||||
|
- python-gi
|
||||||
|
- autoconf
|
||||||
|
- automake
|
||||||
|
- libtool
|
||||||
|
|
||||||
|
- name: Add multiverse into ubuntu
|
||||||
|
apt_repository: repo="deb http://archive.ubuntu.com/ubuntu saucy multiverse"
|
||||||
|
|
||||||
|
- name: Ensure GStreamer dependencies are installed
|
||||||
|
action: shell apt-get -y update && apt-get -y build-dep gstreamer1.0-tools gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav
|
||||||
|
|
||||||
|
- name: Get GStreamer from git
|
||||||
|
git: repo=git://anongit.freedesktop.org/gstreamer/{{ item }} dest=/tmp/{{ item }}
|
||||||
|
with_items:
|
||||||
|
- gstreamer
|
||||||
|
- gst-plugins-base
|
||||||
|
- gst-plugins-good
|
||||||
|
- gst-plugins-ugly
|
||||||
|
- gst-plugins-bad
|
||||||
|
- gst-libav
|
||||||
|
|
||||||
|
- name: Uninstall system gstreamer
|
||||||
|
action: shell apt-get -y remove libgstreamer1.0 gstreamer1.0-plugins-base
|
||||||
|
|
||||||
|
- name: Install gstreamer into a temporary prefix
|
||||||
|
action: shell cd /tmp/{{ item }} ; ./autogen.sh --prefix=/usr && make && make install
|
||||||
|
with_items:
|
||||||
|
- gstreamer
|
||||||
|
- gst-plugins-base
|
||||||
|
- gst-plugins-good
|
||||||
|
- gst-plugins-ugly
|
||||||
|
- gst-plugins-bad
|
||||||
|
- gst-libav
|
13
vagrant/gstreamer.yml
Normal file
13
vagrant/gstreamer.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
- name: Ensure GStreamer is installed
|
||||||
|
apt: pkg={{ item }} state=present
|
||||||
|
with_items:
|
||||||
|
- python3-gi
|
||||||
|
- python-gi
|
||||||
|
- gstreamer1.0-tools
|
||||||
|
- gir1.2-gstreamer-1.0
|
||||||
|
- gir1.2-gst-plugins-base-1.0
|
||||||
|
- gstreamer1.0-plugins-good
|
||||||
|
- gstreamer1.0-plugins-bad
|
||||||
|
- gstreamer1.0-plugins-ugly
|
||||||
|
- gstreamer1.0-libav
|
6
vagrant/ipython.yml
Normal file
6
vagrant/ipython.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- name: Ensure ipython is installed
|
||||||
|
apt: pkg={{ item }} state=present
|
||||||
|
with_items:
|
||||||
|
- ipython
|
||||||
|
- ipython3
|
6
vagrant/playbook.yml
Normal file
6
vagrant/playbook.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- hosts: vagrant
|
||||||
|
tasks:
|
||||||
|
- include: ipython.yml
|
||||||
|
- include: gstreamer-git.yml
|
||||||
|
- include: gst-streaming-server-git.yml
|
Loading…
Reference in a new issue