Ken Cochrane
7dafc3be01
Added more AWS metadata to /var/config
...
Signed-off-by: Ken Cochrane <kencochrane@gmail.com >
2017-06-10 10:54:43 -04:00
Ken Cochrane
60d099176c
Added AWS provider to metadata package
...
Signed-off-by: Ken Cochrane <kencochrane@gmail.com >
2017-06-01 16:44:58 -04:00
Justin Cormack
d9aada88dc
Update for new default namespaces
...
See https://github.com/moby/tool/pull/56
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-05-30 15:06:30 +01:00
Rolf Neugebauer
6d59041daa
pkg: Update the metadata package to multi-stage build and alpine base
...
- Use the alpine base to compile the go program
- Use a multi-stage build
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-05-29 17:30:57 +01:00
Riyaz Faizullabhoy
05f1c282d5
Update images that have been newly setup for signing to use content trust on push
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2017-05-25 11:06:08 -07:00
Rolf Neugebauer
d2c32e2e38
pkg: Make Hub org/repository build time configurable
...
Update the Makefiles of the remaining packages.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-05-18 18:55:22 +01:00
Ian Campbell
800badea42
metadata: Allow simple string keys
...
If a file is a simple string (as opposed to a map) then write it with the
default perms. This makes for slightly terser metadata when creating a simple
datafile.
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2017-05-11 01:39:03 +01:00
Ian Campbell
8fd1a3cbdb
metadata: Fix parsing of JSON
...
`ok` was not assigned when type casting to `map[string]interface{}` so the
subsequent check was testing a stale value.
Also, the error message upon failure had the wrong sense.
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2017-05-10 17:37:45 +01:00
Riyaz Faizullabhoy
3d91a7be86
Bump go-compile with ineffassign
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2017-04-12 16:54:51 -07:00
Rolf Neugebauer
0a0786d49e
pkg: Update packages to push to linuxkit hub org
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-12 21:28:17 +01:00
Rolf Neugebauer
a06e6bbb37
build: Switch using go-compile from linuxkit hub org
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-12 21:28:17 +01:00
Rolf Neugebauer
105cb48ad6
metadata: Simplify the GCP SSH code
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-12 16:19:24 +01:00
Rolf Neugebauer
a21c566777
metadata: Make sure the ssh directory exists before writing to it
...
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-12 15:39:08 +01:00
Rolf Neugebauer
ce52c28cf6
metadata: Write the provider to /var/config/provider
...
This will be useful for testing.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-12 15:39:08 +01:00
Rolf Neugebauer
b0a0b4ceb7
metadata: Make JSON parser more robust
...
Make sure the type conversions are OK.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-12 15:39:08 +01:00
Rolf Neugebauer
626f02def2
metadata: Improve logging
...
Implementing a String() interface for each provider makes it
easier for users to prefix log strings with the provider.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-12 15:39:08 +01:00
Rolf Neugebauer
766e1d95d3
pkg: Add a generic metadata package
...
This package handles meta and user data for different cloud
and other platforms. It should be easy to extend to new
platforms.
Currently, it handles GCP metadata and a simple CDROM userdata
provider.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com >
2017-04-11 15:32:17 +01:00