Ian Campbell
9558740c11
Add cpu and mem profiling options
...
Following https://golang.org/pkg/runtime/pprof/ . When attempting to build
images in https://github.com/linuxkit/kubernetes CI the process is mysteriously
being SIGKILL'd, which I think might be down to OOMing due to the resource
limits placed on the build container.
I haven't done so yet but I'm intending to use these options to investigate and
they seem potentially useful in any case, even if this turns out to be a
red-herring.
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-12-06 15:54:48 +00:00
Justin Cormack
656bd87fd2
Merge pull request #189 from ijc/image-config-substruct
...
Split config-related fields of Image into a substruct.
2017-11-28 11:59:25 +00:00
Ian Campbell
f9893d9a9b
Fixup test after Image → ImageConfig split.
...
The syntax used for the yaml definitions is changed by the need to include the
substruct in the struct literal.
For the label switch to `ImageConfig` directly, which is actually more correct
in that it avoids spurious `name` and `image` fields in the label.
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-27 14:47:21 +00:00
Ian Campbell
aec82c4cdf
Split config-related fields of Image into a substruct.
...
Where "config-related" here means "ones you might find in the
"org.mobyproject.config" label on an image.
By making this new struct an anonymous member of the existing Image struct the
Go json parser does the right thing (i.e. inlines into the parent) when parsing
a complete image (from a yml assembly) by default. The Go yaml library which we
use requires a tag on the anonymous field to achieve the same.
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-27 14:16:59 +00:00
Justin Cormack
63a5dedd28
Merge pull request #188 from justincormack/make-tmp-dir
...
Create tmp dir in case required
2017-11-20 16:59:27 +00:00
Justin Cormack
3389f89c44
Create tmp dir in case required
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-20 16:50:58 +00:00
Justin Cormack
ad2fda5769
Merge pull request #187 from justincormack/build-improvements
...
Make easier to use as a library
2017-11-20 14:05:25 +00:00
Justin Cormack
6395e339b9
Do not error if cache/config directory not specified
...
Just use the default. Easier to use as an external library.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-20 13:52:53 +00:00
Justin Cormack
e3a7739f42
Make easier to embed in LinuxKit
...
Split out util file in same way.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-20 12:04:08 +00:00
Justin Cormack
6ba3288963
Merge pull request #186 from gesellix/fix-docker-build-cmd
...
Fix docker format build example
2017-11-19 10:11:16 +00:00
Tobias Gesellchen
5aebd207d0
Fix docker format build example
...
Signed-off-by: Tobias Gesellchen <tobias@gesellix.de>
2017-11-18 22:22:33 +01:00
Justin Cormack
315e5f80e8
Merge pull request #185 from justincormack/fix-make
...
Stop make test from removing binary
2017-11-17 15:21:08 +00:00
Justin Cormack
f85e019d2e
Merge pull request #183 from ijc/static-builds
...
Build a static binary
2017-11-17 14:43:08 +00:00
Justin Cormack
8f75b635ec
Stop make test from removing binary
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-17 14:40:49 +00:00
Ian Campbell
532b41ff8b
Disable CGO so as to build a static binary
...
https://github.com/linuxkit/kubernetes/pull/1#issuecomment-345253075 lead to
https://circleci.com/gh/linuxkit/kubernetes/15
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-17 14:39:19 +00:00
Justin Cormack
eceb6d11f8
Merge pull request #181 from justincormack/runtime-cgroups
...
Add Cgroups to runtime config
2017-11-17 14:12:08 +00:00
Justin Cormack
c9bb1ecdf1
Add Cgroups to runtime config
...
This will create the list of cgroups specified
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-17 13:22:38 +00:00
Justin Cormack
91311b9de8
Merge pull request #178 from tristanls/master
...
Prob: Files section does not work for /var dir
2017-11-16 17:20:33 +00:00
Justin Cormack
7c3e0e87b2
Merge pull request #182 from ijc/circleci-artefacts
...
Tweak circleci config to try and fix artifact upload
2017-11-16 17:19:58 +00:00
Ian Campbell
c180946fb4
Publish a checksum of the binaries.
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-16 17:15:06 +00:00
Ian Campbell
fff4f0ce79
Try and put dist artifacts at the top level.
...
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-16 17:13:41 +00:00
Ian Campbell
e6bdd72158
Tweak circleci config to try and fix artifact upload
...
It appears that the `$GOPATH` in `working_directory` is being treated as a literal
`GOPATH` at least when processing the `state_artifacts.path`. Inlining it seems
to have worked, at the cost of some duplication.
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-11-16 17:13:11 +00:00
Tristan Slominski
11c90c4cdb
Prob: Files section does not work for /var dir
...
Solv: Updated documentation to point out limits of
files section regarding /var, /run, and /tmp dirs.
Signed-off-by: Tristan Slominski <tristan.slominski@gmail.com>
2017-11-14 15:08:07 -06:00
Justin Cormack
a14db39956
Merge pull request #180 from ehazlett/poule-config
...
Initial poule config
2017-11-14 17:20:38 +00:00
Evan Hazlett
36c5bf55ed
add initial poule config
...
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2017-11-14 12:16:54 -05:00
Justin Cormack
b262aaa058
Merge pull request #177 from arm64b/docker-efi-images
...
EFI image hash value update
2017-11-14 16:04:34 +00:00
Dennis Chen
90f1582988
EFI image hash value update
...
Update the hash value of EFI-* docker image
Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2017-11-10 08:10:22 +00:00
Justin Cormack
76035cec2f
Merge pull request #176 from justincormack/sirupsen
...
Update dependencies to use sirupsen not Sirupsen
2017-11-01 15:23:10 +00:00
Justin Cormack
45333d2480
Update dependencies to use sirupsen not Sirupsen
...
That entailed a few other fixes, eg small Notary API changes.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-11-01 15:14:58 +00:00
Justin Cormack
99480b5dd0
Merge pull request #175 from deitch/fix-prereqs
...
Fix prereqs in output.go
2017-10-31 10:37:55 +00:00
Avi Deitcher
31187652ce
Fix prereqs, raw images with correct calcs
...
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2017-10-31 10:51:55 +02:00
Justin Cormack
3b03f76cd4
Merge pull request #174 from justincormack/no-gopath
...
Add a build target which works when GOPATH is not set or correct
2017-10-30 14:44:08 +00:00
Justin Cormack
a7158e1cb2
Add a build target which works when GOPATH is not set or correct
...
Getting Homebrew to work with a GOPATH is horrible...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-10-30 14:39:59 +00:00
Justin Cormack
df201350c0
Merge pull request #172 from justincormack/fix-clean
...
rm -rf for clean
2017-10-30 13:36:25 +00:00
Justin Cormack
71dfe66ee1
rm -rf for clean
...
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-10-30 13:31:33 +00:00
Justin Cormack
a12e954d92
Merge pull request #173 from justincormack/lint-fix
...
Fix some lint errors with error checking
2017-10-30 13:31:11 +00:00
Justin Cormack
14ed0953cd
Fix some lint errors with error checking
...
This is due to lack of rebase after linter changes.
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-10-30 13:25:22 +00:00
Justin Cormack
4a95c04300
Merge pull request #169 from deitch/add-raw-efi-bios-rename-aws
...
Add raw file formats, rename raw to aws and qcow2 to qcow2-bios
2017-10-30 11:28:53 +00:00
Justin Cormack
626b41fd30
Merge pull request #162 from ebriand/init-processing-logging
...
Add back init image processing logging
2017-10-30 11:24:53 +00:00
Justin Cormack
4ed9d49d3a
Merge pull request #168 from dnephin/improve-the-build
...
Improvements to Makefile, linting, and circleci.yml
2017-10-30 11:24:24 +00:00
Avi Deitcher
60c1ce5156
Add raw file formats, rename raw to aws and qcow2 to qcow2-bios
...
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2017-10-23 20:27:47 -04:00
Justin Cormack
57c6720356
Merge pull request #171 from ijc/pull-before-run
...
Do an explicit docker pull before docker run.
2017-10-20 17:26:16 +02:00
Ian Campbell
d9d6b56153
Do an explicit docker pull before docker run.
...
This avoids https://github.com/docker/cli/issues/631
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-10-20 15:51:47 +01:00
Daniel Nephin
ec741857ef
Remove unnecessary vendor.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-10-17 17:32:05 -04:00
Daniel Nephin
a224547540
Fix lint errors
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-10-17 17:30:47 -04:00
Daniel Nephin
e009b670f3
Improve makefile and circleci config
...
Use gometalinter for linting
put build artifact in dist/
store artifacts in circleci
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2017-10-17 17:30:44 -04:00
Justin Cormack
b23d883ca5
Merge pull request #167 from rn/fix
...
Fix mkimage-iso-bios hash
2017-10-16 13:59:10 +02:00
Rolf Neugebauer
67ce80d213
Fix mkimage-iso-bios hash
...
Looks like a6b89f1137
("Update linuxkit/mkimage-*") updated to a
non-existing tag.
linuxkit pkg show-tag tools/mkimage-iso-bios
linuxkit/mkimage-iso-bios:165b051322578cb0c2a4f16253b20f7d2797a502
and docker pull of that image works.
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
2017-10-16 12:52:02 +02:00
ebriand
0754e4d662
Add back init image processing logging
...
Signed-off-by: ebriand <eric.briand@gmail.com>
2017-10-16 11:00:19 +02:00
Justin Cormack
2fea21c0d7
Merge pull request #166 from rn/rpi3
...
output: Add support for creating Raspberry Pi images
2017-10-14 08:33:13 +01:00