68 references to Run
Aspire.Hosting (1)
Ats\DockerfileBuilderExports.cs (1)
67
return stage.
Run
(command);
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
58
.
Run
("dotnet publish Gateway.cs -c Release -o /app/publish");
Aspire.Hosting.Go (4)
GoHostingExtensions.cs (4)
208
buildStage.
Run
("apk add --no-cache git");
268
.
Run
("apk --no-cache add ca-certificates tzdata")
270
.
Run
("addgroup -S app && adduser -S -G app app");
275
runtimeStage.
Run
("groupadd --system --gid 999 app && useradd --system --gid 999 --uid 999 --no-create-home app");
Aspire.Hosting.Java (2)
JavaDockerfileGenerator.cs (2)
255
buildStage.
Run
(
261
buildStage.
Run
(build.WarmToolCommand);
Aspire.Hosting.JavaScript (15)
JavaScriptHostingExtensions.cs (15)
232
.
Run
(BuildPackageScriptCommand(packageManager, buildCommand));
566
.
Run
(BuildPackageScriptCommand(packageManager, buildCommand));
617
prodDepsStage.
Run
($"--mount=type=cache,target={pm.CacheMount} {prodInstallCmd}");
621
prodDepsStage.
Run
(prodInstallCmd);
957
.
Run
(denoCacheCommand);
969
.
Run
(BuildPackageScriptCommand(packageManager, buildCommand));
1552
builderStage.
Run
($"--mount=type=cache,target={packageManager.CacheMount} {installCmd}");
1556
builderStage.
Run
(installCmd);
1728
dockerBuilder.
Run
(BuildPackageScriptCommand(packageManager, buildCommand));
1844
prodDepsStage.
Run
($"--mount=type=cache,target={packageManager.CacheMount} {prodInstallCmd}");
1848
prodDepsStage.
Run
(prodInstallCmd);
1876
.
Run
("mkdir .next")
1877
.
Run
("chown node:node .next")
2654
stage.
Run
($"archive=\"$(npm pack --json pnpm@{pnpmPackageManager.Version} --registry \"$NPM_REGISTRY\" | node -e 'const result = JSON.parse(require(\"fs\").readFileSync(0, \"utf8\")); process.stdout.write(result[0].filename)')\" && node -e 'const [algorithm, expected, file] = process.argv.slice(1); const actual = require(\"crypto\").createHash(algorithm).update(require(\"fs\").readFileSync(file)).digest(\"hex\"); if (actual !== expected) {{ console.error(\"Integrity check failed for \" + file); process.exit(1); }}' \"{integrity.Algorithm}\" \"{integrity.Hash}\" \"$archive\" && npm install --global --registry \"$NPM_REGISTRY\" \"./$archive\" && rm \"$archive\"");
2658
stage.
Run
($"npm install --global --registry \"$NPM_REGISTRY\" pnpm@{pnpmPackageManager.Version}");
Aspire.Hosting.Python (4)
PythonAppResourceBuilderExtensions.cs (4)
599
.
Run
("groupadd --system --gid 999 appuser && useradd --system --gid 999 --uid 999 --create-home appuser")
655
.
Run
("groupadd --system --gid 999 appuser && useradd --system --gid 999 --uid 999 --create-home appuser")
669
.
Run
(
692
.
Run
(
Aspire.Hosting.Rust (1)
RustDockerfileGenerator.cs (1)
157
runtimeStage.
Run
(CreateAppUserCommand);
Aspire.Hosting.Tests (40)
ApplicationModel\Docker\DockerfileBuilderCallbackAnnotationTests.cs (2)
102
.
Run
("apk add curl");
214
context.Builder.Stages[0].
Run
("apk add curl")
ApplicationModel\Docker\DockerfileBuilderCallbackContextTests.cs (1)
99
.
Run
("npm install");
ApplicationModel\Docker\DockerfileBuilderEdgeCasesTests.cs (4)
152
stage.
Run
("apt-get update");
153
stage.
Run
("apt-get install -y curl");
179
stage.
Run
(multiLineCommand);
220
stage.
Run
($"echo 'Statement {i}'");
ApplicationModel\Docker\DockerfileBuilderIntegrationTests.cs (7)
21
baseStage.
Run
("apt-get update && apt-get install -y --no-install-recommends git ca-certificates && rm -rf /var/lib/apt/lists/*");
23
baseStage.
Run
("npm ci --silent");
70
stage.
Run
("echo 'test'");
94
buildStage.
Run
("go mod download");
96
buildStage.
Run
("CGO_ENABLED=0 GOOS=linux go build -o /app/server ./cmd/server");
100
runtimeStage.
Run
("apk --no-cache add ca-certificates");
149
.
Run
("npm install")
ApplicationModel\Docker\DockerfileBuilderTests.cs (2)
119
stage.
Run
("npm install");
152
stage1.
Run
("npm ci --silent");
ApplicationModel\Docker\DockerfileStageTests.cs (12)
49
var result = stage.
Run
("npm install");
64
Assert.Throws<ArgumentException>(() => stage.
Run
(""));
65
Assert.Throws<ArgumentNullException>(() => stage.
Run
(null!));
268
.
Run
("npm ci")
316
stage.
Run
("echo hello");
350
stage.
Run
("echo hello");
386
stage.
Run
("echo hello");
417
stage.
Run
("echo hello");
457
stage.
Run
("echo first");
459
stage.
Run
("echo second");
494
.
Run
("npm ci")
517
stage.
Run
("apk add build-base");
ApplicationModel\Docker\DockerfileStatementsTests.cs (2)
76
var stage = builder.From("node").
Run
("npm install");
96
var stage = builder.From("ubuntu").
Run
(command);
ApplicationModel\Docker\WithDockerfileBuilderTests.cs (10)
86
.
Run
("apk add curl")
132
.
Run
("npm ci");
176
.
Run
("echo test");
243
.
Run
("npm ci")
245
.
Run
("npm run build");
328
.
Run
("npm ci")
365
.
Run
("apk add curl")
423
.
Run
("go mod download")
425
.
Run
("go build -o /app/server");
429
runtimeStage.
Run
("apk add ca-certificates")