184 Commits

Author SHA1 Message Date
Thomas Hipp
c8d8bb8435
main: Fix formatting
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-06 11:12:11 +01:00
Thomas Hipp
5f4b4b25c5
*: Switch to cobra CLI
Resolves #13

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-05 17:49:56 +01:00
Stéphane Graber
c3d2bc0315
Merge pull request #25 from monstermunchkin/testing
generators: Fix Restore and add tests
2018-03-05 06:46:32 -05:00
Thomas Hipp
6d41725ead
generators: Add tests
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-05 12:06:23 +01:00
Thomas Hipp
9f78ca37b4
generators: Fix Restore
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-05 12:06:10 +01:00
Christian Brauner
9dd4b92d62
Merge pull request #24 from monstermunchkin/master
image: Convert int to string properly
2018-03-01 14:14:01 +01:00
Thomas Hipp
34d4d2817e
image: Convert int to string properly
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-01 13:24:19 +01:00
Christian Brauner
11c776100a
Merge pull request #22 from monstermunchkin/issues/15
Extend GPG support and add Suite option to Source
2018-03-01 10:03:38 +01:00
Thomas Hipp
d0c5cea944
shared: Remove missing keyserver test
The success of this test depends on the environment.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-01 09:18:54 +01:00
Thomas Hipp
e85a2eda7b
sources,shared: Add Suite option to Source
The Suite option is used by debootstrap, and will create a temporary
symlink in /usr/share/debootstrap/scripts. This allows realeased images
which aren't yet in debootstrap to be used.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-01 09:05:34 +01:00
Thomas Hipp
c9b245a820
shared: Allow empty URL
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-01 09:03:03 +01:00
Thomas Hipp
b6c1538356
sources: Add separate variant for downloaders
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-28 18:31:48 +01:00
Thomas Hipp
17bce64b03
util: Allow empty keyserver
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-28 18:31:48 +01:00
Thomas Hipp
1ffed3de3e
sources: Support GPG keys in debootstrap
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-28 18:31:47 +01:00
Thomas Hipp
19f788673f
shared: Create separate function for keyring creation
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-28 15:09:03 +01:00
Thomas Hipp
6c4c7ca7c6
shared: Allow omission of GPG keys
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-28 15:08:17 +01:00
Christian Brauner
4faff0b0df
Merge pull request #21 from monstermunchkin/issues/19
Add missing tests for lxc/lxd image generation
2018-02-28 11:23:38 +01:00
Thomas Hipp
5c34b91e6d
travis: Install squashfs-tools
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-28 11:19:13 +01:00
Thomas Hipp
92bb3540a7
image: Add LXC tests
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-28 11:03:56 +01:00
Thomas Hipp
d1946033d0
image: Add LXD tests
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-27 18:23:40 +01:00
Stéphane Graber
7ee7bb6bc6
Merge pull request #20 from monstermunchkin/issues/14
Add LXC Templating
2018-02-26 10:30:53 -05:00
Thomas Hipp
59d87ef199
image: Fix creation date in pongo context
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-26 14:40:12 +01:00
Thomas Hipp
17e68c5281
image: Add LXC templating
Resolves #14.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-26 14:36:37 +01:00
Stéphane Graber
5af4fca3b8
Merge pull request #16 from monstermunchkin/images
Add file generators and add lxc and lxd image output
2018-02-22 12:12:07 -05:00
Thomas Hipp
05e7c0c660
*: Implement expiry date
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 16:43:57 +01:00
Thomas Hipp
629f62715e
*: Don't redefine structs
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 16:43:57 +01:00
Thomas Hipp
3ee4993f42
generators: Copy files instead of moving them
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 16:43:57 +01:00
Thomas Hipp
5353fb62ca
*: Improve comments and error handling
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 16:43:57 +01:00
Thomas Hipp
dd9e9cbd7e
main: Build images
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 10:15:19 +01:00
Thomas Hipp
c748c3849a
generators: Add generators
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 10:15:19 +01:00
Thomas Hipp
6b6a27a341
image: Create LXC images
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 10:15:19 +01:00
Thomas Hipp
30c6fc12e8
image: Create LXD images
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 10:15:19 +01:00
Thomas Hipp
487633143d
shared: Add Pack function
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 10:15:18 +01:00
Thomas Hipp
f6958ee378
Merge pull request #18 from stgraber/master
chroot: Fix mount logic and symlink handling
2018-02-22 08:56:08 +01:00
Stéphane Graber
6db9481221
Merge pull request #17 from monstermunchkin/issues/12
*: Remove init() code
2018-02-21 13:32:54 -05:00
Stéphane Graber
3ed3b15cf7
chroot: Fix mount logic and symlink handling
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-21 13:31:48 -05:00
Thomas Hipp
6db895de08
*: Remove init() code
Resolves #12.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-21 19:28:28 +01:00
Thomas Hipp
11ad0b830b
Merge pull request #11 from stgraber/master
Various fixes and tweaks
2018-02-20 16:50:50 +01:00
Stéphane Graber
44aa5d1482
chroot: Two step mounts to handle symlink targets
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 04:12:11 -05:00
Stéphane Graber
ac30318b95
chroot: Cleanup mount options
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 03:54:35 -05:00
Stéphane Graber
4e2b66ab8b
debootstrap: Drop trailing whiteline
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 03:40:11 -05:00
Stéphane Graber
4b370aef30
Make code style more consistent with LXD
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 03:00:19 -05:00
Stéphane Graber
558f700301
tests: Run deadcode and vet
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 03:00:19 -05:00
Stéphane Graber
b1a1ff8157
Fix go vet warning
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 03:00:16 -05:00
Stéphane Graber
12e47a72a6
Properly identify errors
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 02:18:38 -05:00
Stéphane Graber
2538b49e07
Move check for root to Go
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 02:14:23 -05:00
Stéphane Graber
ce823c03c1
Don't depend on external distrobuilder branch
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 02:08:10 -05:00
Stéphane Graber
d0af63649b
Merge pull request #9 from monstermunchkin/validation
Add source verification
2018-02-16 17:31:19 -05:00
Thomas Hipp
ed8a6d2643
update README.md
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-16 17:17:25 +01:00
Thomas Hipp
4b91f650a4
*: add keys and keyserver to source
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-16 17:17:25 +01:00