forked from garmin/pyrex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyrex.ini
122 lines (102 loc) · 3.92 KB
/
pyrex.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Pyrex User Configuration
#
# The following variables are made available as variable expansions when
# Pyrex is initialized:
# ${pyrex:pyrexroot} The absolute path to Pyrex (e.g. $PYREX_ROOT)
#
# Pyrex build information. Any changes to this section will require
# reinitializing the build environment to take effect.
[config]
# The version of Pyrex this config is written against. This option is required
# to be specified in the user config file
confversion = @CONFVERSION@
# A list of globs for commands that should be wrapped by Pyrex. Overrides the
# command set specified by the container itself when it was captured. Any path
# starting with a "!" will be excluded from being wrapped by Pyrex and will
# run directly in the host environment
#commands =
# ${env:PYREX_OEROOT}/bitbake/bin/*
# ${env:PYREX_OEROOT}/scripts/*
# !${env:PYREX_OEROOT}/scripts/runqemu*
# The Container engine executable (e.g. docker, podman) to use. If the path
# does not start with a "/", the $PATH environment variable will be searched
# (i.e. execvp rules)
%engine = docker
# The type of image to build
%imagetype = oe
# As a convenience, the name of a Pyrex provided image
# can be specified here
%image = ubuntu-22.04-${config:imagetype}
# As a convenience, the tag of the Pyrex provided image. Defaults to the
# Pyrex version.
%pyrextag = v${pyrex:version}
# The name of the tag given to the image. If you want to keep around different
# Pyrex images simultaneously, each should have a unique tag
%tag = garminpyrex/${config:image}:${config:pyrextag}
# If set to 1, the image is built up locally every time the environment is
# sourced. If set to 0, building the image will be skipped, which means that
# the container engine may attempt to download a prebuilt image from a
# repository
%buildlocal = 0
# The name of the registry where to find the image whose complete name is stored
# in tag variable. This variable is only used when buildlocal is set to 0.
%registry = docker.io
# A list of environment variables that should be imported as Pyrex
# configuration variables in the "env" section, e.g. ${env:HOME}. Note that
# environment variables accessed in this way must be set or an error will
# occur. Default values can be assigned by making an "env" section in this file
# and populating it with the default values. Also note that Pyrex will attempt
# to perform variable expansion on the environment variable values, so care
# should be taken
%envimport =
% HOME
% PYREX_BIND
[imagebuild]
# The command used to build container images
%buildcommand =
% ${config:engine} build
% -t ${config:tag}
% --network=host
% -f ${pyrex:pyrexroot}/image/Dockerfile
% --target=pyrex-${config:imagetype}
% --build-arg PYREX_BASE=${config:image}
% ${pyrex:pyrexroot}/image
# Build quietly?
%quiet = true
# Environment variables to set when building the image
%env =
% DOCKER_BUILDKIT=1
# Capture options. Changes in the section only affect when a Pyrex container is
# initialized
[capture]
%envvars =
% BDIR
% BITBAKEDIR
% OEROOT
# Runtime options. Changes in this section take effect the next time a Pyrex
# command is run
[run]
# A list of directories that should be bound when running in the container
%bind =
% ${env:PYREX_BIND}
# A list of environment variables that should be propagated to the container
# if set in the parent environment
%envvars =
% http_proxy
% https_proxy
% no_proxy
% SSH_AUTH_SOCK
# Environment variables that contain the path to a socket that should be
# proxied into the container (if set in the host environment)
%envsockproxy =
% SSH_AUTH_SOCK
# Extra arguments to pass when running the image. For example:
# --mount type=bind,src=${env:HOME}/.ssh,dst=${env:HOME}/.ssh,readonly
# --device /dev/kvm
%args =
# Prefix for all Pyrex commands. Useful for debugging. For example:
# strace -ff -ttt -o strace.log --
%commandprefix =
# Assign default values for environment variables in this section
[env]
%PYREX_BIND=