Skip to content

Commit c9027be

Browse files
committed
Add 'core.package_id:* : full_mode' stanzas to global.conf
1 parent f2d93a9 commit c9027be

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

docker/debian/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,14 @@ RUN <<EOF
140140
cat >> $(conan config home)/global.conf <<EOT
141141
tools.build:compiler_executables={"c": "${CC}", "cpp": "${CXX}"}
142142
tools.info.package_id:confs+=["Debian", "${DEBIAN_VERSION}"]
143+
core.package_id:default_build_mode=full_mode
144+
core.package_id:default_embed_mode=full_mode
145+
core.package_id:default_non_embed_mode=full_mode
143146
EOT
144147
EOF
145148

146149
# Print the Conan profile to verify the configuration.
147-
RUN conan profile show
150+
RUN conan profile show && conan config show 'core*'
148151

149152
# Test the image by compiling a simple C++ program.
150153
RUN --mount=type=bind,source=test,target=/test,readonly <<EOF
@@ -227,11 +230,14 @@ RUN <<EOF
227230
cat >> $(conan config home)/global.conf <<EOT
228231
tools.build:compiler_executables={"c": "${CC}", "cpp": "${CXX}"}
229232
tools.info.package_id:confs+=["Debian", "${DEBIAN_VERSION}"]
233+
core.package_id:default_build_mode=full_mode
234+
core.package_id:default_embed_mode=full_mode
235+
core.package_id:default_non_embed_mode=full_mode
230236
EOT
231237
EOF
232238

233239
# Print the Conan profile to verify the configuration.
234-
RUN conan profile show
240+
RUN conan profile show && conan config show 'core*'
235241

236242
# Test the image by compiling a simple C++ program.
237243
RUN --mount=type=bind,source=test,target=/test,readonly <<EOF

docker/rhel/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,14 @@ RUN <<EOF
108108
cat >> $(conan config home)/global.conf <<EOT
109109
tools.build:compiler_executables={"c": "${CC}", "cpp": "${CXX}"}
110110
tools.info.package_id:confs+=["RHEL", "${RHEL_VERSION}"]
111+
core.package_id:default_build_mode=full_mode
112+
core.package_id:default_embed_mode=full_mode
113+
core.package_id:default_non_embed_mode=full_mode
111114
EOT
112115
EOF
113116

114117
# Print the Conan profile to verify the configuration.
115-
RUN conan profile show
118+
RUN conan profile show && conan config show 'core*'
116119

117120
# Test the image by compiling a simple C++ program.
118121
RUN --mount=type=bind,source=test,target=/test,readonly <<EOF
@@ -180,11 +183,14 @@ RUN <<EOF
180183
cat >> $(conan config home)/global.conf <<EOT
181184
tools.build:compiler_executables={"c": "${CC}", "cpp": "${CXX}"}
182185
tools.info.package_id:confs+=["RHEL", "${RHEL_VERSION}"]
186+
core.package_id:default_build_mode=full_mode
187+
core.package_id:default_embed_mode=full_mode
188+
core.package_id:default_non_embed_mode=full_mode
183189
EOT
184190
EOF
185191

186192
# Print the Conan profile to verify the configuration.
187-
RUN conan profile show
193+
RUN conan profile show && conan config show 'core*'
188194

189195
# Test the image by compiling a simple C++ program.
190196
RUN --mount=type=bind,source=test,target=/test,readonly <<EOF

docker/ubuntu/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,14 @@ RUN <<EOF
124124
cat >> $(conan config home)/global.conf <<EOT
125125
tools.build:compiler_executables={"c": "${CC}", "cpp": "${CXX}"}
126126
tools.info.package_id:confs+=["Ubuntu", "${UBUNTU_VERSION}"]
127+
core.package_id:default_build_mode=full_mode
128+
core.package_id:default_embed_mode=full_mode
129+
core.package_id:default_non_embed_mode=full_mode
127130
EOT
128131
EOF
129132

130133
# Print the Conan profile to verify the configuration.
131-
RUN conan profile show
134+
RUN conan profile show && conan config show 'core*'
132135

133136
# Test the image by compiling a simple C++ program.
134137
RUN --mount=type=bind,source=test,target=/test,readonly <<EOF
@@ -207,11 +210,14 @@ RUN <<EOF
207210
cat >> $(conan config home)/global.conf <<EOT
208211
tools.build:compiler_executables={"c": "${CC}", "cpp": "${CXX}"}
209212
tools.info.package_id:confs+=["Ubuntu", "${UBUNTU_VERSION}"]
213+
core.package_id:default_build_mode=full_mode
214+
core.package_id:default_embed_mode=full_mode
215+
core.package_id:default_non_embed_mode=full_mode
210216
EOT
211217
EOF
212218

213219
# Print the Conan profile to verify the configuration.
214-
RUN conan profile show
220+
RUN conan profile show && conan config show 'core*'
215221

216222
# Test the image by compiling a simple C++ program.
217223
RUN --mount=type=bind,source=test,target=/test,readonly <<EOF

0 commit comments

Comments
 (0)