summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-19 01:59:52 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-19 02:08:14 +0100
commit72648326ea6d3e68cdb0b5890df737047d031a41 (patch)
tree951f4f2d744a03f24f67b03b1b7d59e3c2d0eb5a /Makefile.am
parentdca59f62666c2d37d1a68ed332ba7985c1141f82 (diff)
import: add new minimal tool "systemd-import" for pulling down foreign containers and install them locally
This adds a simply but powerful tool for downloading container images from the most popular container solution used today. Use it like this: # systemd-import pull-dck mattdm/fedora # systemd-nspawn -M fedora This will donwload the layers for "mattdm/fedora", and make them available locally as /var/lib/container/fedora. The tool is pretty complete, as long as it's only about pulling down images, or updating them. Pushing or searching is not supported yet.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 5a41ba647c..2cc19a9c54 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5094,6 +5094,32 @@ libnss_mymachines_la_LIBADD = \
lib_LTLIBRARIES += \
libnss_mymachines.la
+
+if HAVE_LIBCURL
+
+bin_PROGRAMS += \
+ systemd-import
+
+systemd_import_SOURCES = \
+ src/import/import.c \
+ src/import/import-dck.c \
+ src/import/import-dck.h \
+ src/import/curl-util.c \
+ src/import/curl-util.h \
+ src/import/aufs-util.c \
+ src/import/aufs-util.h
+
+systemd_import_CFLAGS = \
+ $(AM_CFLAGS) \
+ $(LIBCURL_CFLAGS)
+
+systemd_import_LDADD = \
+ libsystemd-internal.la \
+ libsystemd-shared.la \
+ $(LIBCURL_LIBS) \
+ -lm
+endif
+
endif
# ------------------------------------------------------------------------------