-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathpyrex.ini
More file actions
126 lines (107 loc) · 4.22 KB
/
pyrex.ini
File metadata and controls
126 lines (107 loc) · 4.22 KB
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
123
124
125
126
# 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 additional globs for commands that should be wrapped by Pyrex.
# Appends to 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. You will often want to
# root these with an environment variable, remembering to import it with envimport.
# $PYREX_CONFIG_BIND is usually a good choice here, but you can set and use
# your own variable if desired. As an example:
#
# ${env:PYREX_CONFIG_BIND}/bin/*
# !${env:PYREX_CONFIG_BIND}/bin/exclude_this
#
# Note that any command listed here will take precedence over a command with
# the same name specified by the container, and excludes take precedence over
# includes. Thus, you can override the containers decision to include or
# exclude a command by adding it here.
%commands =
# 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-24.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 = ghcr.io/garmin/pyrex-${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
# 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=