File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
tests/AutoInstrumentation.IntegrationTests Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 2
2
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
3
// See the LICENSE file in the project root for more information
4
4
5
+ using System . Runtime . InteropServices ;
5
6
using DotNet . Testcontainers ;
6
7
using DotNet . Testcontainers . Builders ;
7
8
using DotNet . Testcontainers . Configurations ;
@@ -33,6 +34,13 @@ public ExampleApplicationContainer()
33
34
. WithDockerfileDirectory ( directory , string . Empty )
34
35
. WithDockerfile ( "examples/Example.AutoInstrumentation/Dockerfile" )
35
36
. WithLogger ( ConsoleLogger . Instance )
37
+ . WithBuildArgument ( "TARGETARCH" , RuntimeInformation . ProcessArchitecture switch
38
+ {
39
+ Architecture . Arm64 => "arm64" ,
40
+ Architecture . X64 => "x64" ,
41
+ Architecture . X86 => "x86" ,
42
+ _ => "unsupported"
43
+ } )
36
44
. Build ( ) ;
37
45
38
46
_output = Consume . RedirectStdoutAndStderrToStream ( new MemoryStream ( ) , new MemoryStream ( ) ) ;
You can’t perform that action at this time.
0 commit comments