Commit Graph

106 Commits

Author SHA1 Message Date
Thomas Hipp
016e09c445
shared: Add zypper
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2019-02-27 16:58:17 +01:00
Thomas Hipp
addeb7bc3e
shared: Add openSUSE
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2019-02-27 16:58:11 +01:00
Thomas Hipp
164decd43f
shared: Decrypt signed file
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2019-02-27 16:58:11 +01:00
Thomas Hipp
7bf831db43
*: Download to specific directory
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2019-02-27 10:54:02 +01:00
Thomas Hipp
36618194ae
shared: Add Oracle Linux
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2019-02-25 16:24:20 +01:00
Thomas Hipp
8b80b8840f
shared: Add Architecture to package set definition
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2019-02-15 08:24:32 +01:00
Thomas Hipp
071d0b9212
shared: Add Arch Linux mapping
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2019-02-13 13:05:35 +01:00
Stéphane Graber
369472bd92
shared: Tweak DownloadHash
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2019-02-10 00:58:50 -05:00
Stéphane Graber
56a1201f4f
shared: Add gentoo to list of valid mappings
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2019-02-10 00:03:21 -05:00
Stéphane Graber
f660bfd95e
shared: Add gentoo architecture entries
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2019-02-09 23:37:27 -05:00
Stéphane Graber
be0f1011c6
Allow dump generator to add LXC templates
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2019-01-12 12:52:22 +02:00
Daniele Rondina
13aadefee7
Add docker downloader
Signed-off-by: Daniele Rondina <geaaru@sabayonlinux.org>
2018-12-28 21:46:38 +01:00
Daniele Rondina
aeaad0a6db
Added sabayon amd64 support
Signed-off-by: Daniele Rondina <geaaru@sabayonlinux.org>
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-12-28 21:46:38 +01:00
Daniele Rondina
cbb9007f5d
Integrate repositories handler function
Signed-off-by: Daniele Rondina <geaaru@sabayonlinux.org>
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-12-28 21:46:38 +01:00
Daniele Rondina
d1e8bdc2d7 Permit definition of environment vars on image file
Signed-off-by: Daniele Rondina <geaaru@sabayonlinux.org>
2018-12-22 16:37:37 +01:00
Stéphane Graber
28e594456d
Fix hashing function
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-12-20 16:01:09 -05:00
Thomas Hipp
9f09f83c14
shared/net: Fix hash matching
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-12-20 20:59:34 +01:00
Stéphane Graber
663e5bff80
Merge pull request #117 from monstermunchkin/fixes/download-hash
Export function DownloadHash
2018-12-20 12:20:17 -05:00
Thomas Hipp
fdf56fc247
test: Test new package definition
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-12-20 15:27:41 +01:00
Thomas Hipp
bd4eabd4b3
Extend package definition
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-12-20 15:27:41 +01:00
Thomas Hipp
10b518a04d
shared/net: Export function DownloadHash
This removes the functions DownloadSha{256,512} in favor of DownloadHash
which lets you specify a hash function.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-12-20 10:14:45 +01:00
Stéphane Graber
7fb5fcfa83
Port to new DownloadFileHash
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-12-20 00:42:39 -05:00
Thomas Hipp
406605a24e
test: Update TestSetEnvVariables
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-12-19 19:10:56 +01:00
Thomas Hipp
547c572b65
shared: Use map for environment variables
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-12-19 19:10:56 +01:00
Thomas Hipp
cdac765d15
tests: Use testify
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-07-03 11:46:54 +02:00
Thomas Hipp
fb39a671f7
definition: Add Source.SkipVerification
This allows for the source verification to be skipped if needed.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-07-02 17:37:31 +02:00
Thomas Hipp
91598f1fa2
definition: Fix SetValue function
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-07-02 16:50:33 +02:00
Stéphane Graber
2e3d2075ed
Add support for Alpine edge
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-06-27 19:25:51 -04:00
Thomas Hipp
a15b067886
Merge pull request #95 from stgraber/master
Split source.Suite and source.SameAs
2018-05-22 16:38:18 +02:00
Stéphane Graber
ea0135df5a
Split source.Suite and source.SameAs
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-05-22 10:29:06 -04:00
Thomas Hipp
31d4cc34c7
tests: Fix flaky GPG tests
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-05-22 08:47:16 +02:00
Robbert Müller
aa2a36b8de
Renamed DefinitionTemplateSettings to DefinitionFileTemplate
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-19 13:39:37 +02:00
Robbert Müller
3d740e81a7
rename settings to template
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-15 21:17:07 +02:00
Robbert Müller
b366c2f18a
Rename dump-template to template
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-15 21:17:06 +02:00
Robbert Müller
00b7960175
Added properties and when for template settings
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-15 21:17:05 +02:00
Robbert Müller
5caea3a384
add dump-template generator to add templates to the image
This generator tries to follow to dump generator but for templates.

Changes:
- added name field `files: []` for the name of the template.
  .tpl is appended automaticly
- added dump-template to the generator code/definition

Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-15 21:17:04 +02:00
Thomas Hipp
5ad5059cbc
debootstrap: Add option to ignore image.release
Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
2018-05-09 12:29:44 +02:00
Thomas Hipp
d2685bcb1e
shared: Validate action trigger
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-04-04 12:50:59 +02:00
Thomas Hipp
d4e0bd1bf0
managers: Add portage
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-04-03 16:40:10 +02:00
Thomas Hipp
3a4d03ca82
sources: Add Gentoo
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-04-03 15:28:43 +02:00
Thomas Hipp
b47fd37762
shared,sources: Add functions DownloadSha{256,512}
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-04-03 12:34:12 +02:00
Thomas Hipp
d0444007c2
definition: Fix default name and definition template
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-27 12:57:42 +02:00
Thomas Hipp
d00cfc5b70
managers: Add dnf support
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-26 18:19:42 +02:00
Thomas Hipp
dbebec3c55
sources: Add Fedora support
Resolves #23

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-26 18:19:42 +02:00
Stéphane Graber
d6d7a73d20
definition: Fix typo
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-03-21 16:55:22 -04:00
Stéphane Graber
408ac337c3
definition: Set ArchitectureMapped, ArchitectureKernel and ArchitecturePersonality
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-03-21 15:32:28 -04:00
Stéphane Graber
b01f0a0416
definition: Use mapped architecture in name/description
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-03-21 14:57:22 -04:00
Thomas Hipp
02148a5918
tests: Fix tests
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-16 13:37:58 +01:00
Thomas Hipp
0612992b66
*: Move some functions to definition.go
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-16 13:37:57 +01:00
Thomas Hipp
02b0c9d899
*: Introduce MappedArchitecture field
Resolves #71

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-03-16 13:37:50 +01:00