Commit 5bcfbb70 authored by Daniel P. Berrange's avatar Daniel P. Berrange

Add virt-sandbox-image

virt-sandbox-image.py is a python script that lets you download Docker
images easily. It is a proof of concept code and consumes Docker Rest API.
Signed-off-by: 's avatarDaniel P. Berrange <berrange@redhat.com>
parent d9b23148
......@@ -3,7 +3,8 @@ bin_PROGRAMS = virt-sandbox
libexec_PROGRAMS = virt-sandbox-service-util
bin_SCRIPTS = virt-sandbox-service
bin_SCRIPTS = virt-sandbox-service \
virt-sandbox-image
virtsandboxcompdir = $(datarootdir)/bash-completion/completions/
......
#!/usr/bin/python
# -*- coding: utf-8 -*-
from libvirt_sandbox.image import cli
import sys
if __name__ == '__main__':
sys.exit(cli.main())
......@@ -124,10 +124,12 @@ dnl Should be in m4/virt-gettext.m4 but intltoolize is too
dnl dumb to find it there
IT_PROG_INTLTOOL([0.35.0])
AM_PATH_PYTHON
AC_OUTPUT(Makefile
libvirt-sandbox/Makefile
libvirt-sandbox/tests/Makefile
libvirt-sandbox/image/Makefile
bin/Makefile
examples/Makefile
docs/Makefile
......
......@@ -98,7 +98,9 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_sysconfdir}/libvirt-sandbox/services
%{_bindir}/virt-sandbox
%{_bindir}/virt-sandbox-service
%{_bindir}/virt-sandbox-image
%{_libexecdir}/virt-sandbox-service-util
%{python_sitelib}/libvirt_sandbox
%{_mandir}/man1/virt-sandbox.1*
%{_mandir}/man1/virt-sandbox-service.1*
%{_mandir}/man1/virt-sandbox-service-*.1*
......
......@@ -2,7 +2,7 @@
EXTRA_DIST = libvirt-sandbox.sym
CLEANFILES =
SUBDIRS = tests
SUBDIRS = tests image
rundir = $(localstatedir)/run
......
pythonsandboxdir = $(pythondir)/libvirt_sandbox
pythonsandbox_DATA = __init__.py
pythonimagedir = $(pythondir)/libvirt_sandbox/image
pythonimage_DATA = __init__.py cli.py
EXTRA_DIST = $(pythonimage_DATA)
This diff is collapsed.
......@@ -11,3 +11,4 @@ libvirt-sandbox/libvirt-sandbox-context-interactive.c
libvirt-sandbox/libvirt-sandbox-init-common.c
libvirt-sandbox/libvirt-sandbox-rpcpacket.c
libvirt-sandbox/libvirt-sandbox-util.c
libvirt-sandbox/image/cli.py
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment