From 374976d445b605f2ea1618cc6d2c5006d046fa28 Mon Sep 17 00:00:00 2001 From: Dan Duvall Date: Mon, 6 Aug 2018 10:40:03 -0700 Subject: Refactor builder to support file requirements and run pre-install The builder configuration has proven useful for supporting generic pre-entrypoint commands such as dependency managers not otherwise supported by specific Blubber configuration. Adding additional `builder.requirements` config expands support for such commands by allowing the user to specify files that should be copied into the image before the builder command runs. To support this extra configuration, `builder` had to be changed from a simple string to a mapping. The builder command must now by given as `builder.command`. The pattern of creating parent directories, copying files, and executing one or more commands prior to the entrypoint has become a common one. Some of the implementation of this pattern was moved from `PythonConfig` into shared build macros `build.SortFilesByDir` and `build.SyncFiles`. All config types that must have requirements files copied over independently of the entire source tree (`PythonConfig`, `BuilderConfig`, `NodeConfig`) now delegate to these functions. Change-Id: I67f33034f22cee2851ec866cfb07ab20c23eba8c --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 810b847..71cd850 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,9 @@ version: v2 base: debian:jessie apt: packages: [libjpeg, libyaml] -runs: +lives: in: /srv/service - as: runuser - uid: 666 - gid: 666 +runs: environment: FOO: bar BAR: baz -- cgit v1.2.1