Skip to content

Commit 91d7a40

Browse files
committed
fix: hardcode the exact docker image version
1 parent cffdc4d commit 91d7a40

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/cli/src/lib/build-strategies/strategies/DockerVMStrategy.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,19 @@ const DEFAULTS_DIR = path.join(
2929
export interface VMConfig {
3030
defaultIncludes: string[];
3131
baseImage: string;
32+
version: string;
3233
}
3334

3435
const CONFIGS: Record<BuildableLanguage, VMConfig> = {
3536
"wasm/rust": {
3637
defaultIncludes: ["Cargo.toml", "Cargo.lock"],
3738
baseImage: "polywrap/vm-base-rs",
39+
version: "0.2.0",
3840
},
3941
"wasm/assemblyscript": {
4042
defaultIncludes: ["package.json", "package-lock.json", "yarn.lock"],
4143
baseImage: "polywrap/vm-base-as",
44+
version: "0.1.0",
4245
},
4346
};
4447

@@ -194,7 +197,7 @@ export class DockerVMBuildStrategy extends BuildStrategy<void> {
194197
this._volumePaths.linkedPackages
195198
)}:/linked-packages`,
196199
cacheVolume,
197-
`${CONFIGS[language].baseImage}:${process.arch}`,
200+
`${CONFIGS[language].baseImage}:${process.arch}-${CONFIGS[language].version}`,
198201
"/bin/bash",
199202
"--verbose",
200203
"/project/polywrap-build.sh",
@@ -221,7 +224,7 @@ export class DockerVMBuildStrategy extends BuildStrategy<void> {
221224
`${path.resolve(
222225
this._volumePaths.linkedPackages
223226
)}:/linked-packages`,
224-
`${CONFIGS[language].baseImage}:${process.arch}`,
227+
`${CONFIGS[language].baseImage}:${process.arch}-${CONFIGS[language].version}`,
225228
"/bin/bash",
226229
"-c",
227230
'"chmod -R 777 /project && chmod -R 777 /linked-packages"',

0 commit comments

Comments
 (0)