Skip to content

Commit 63c49fe

Browse files
committed
Updated Dockerfile
Added Spanner image Added flag to Bigquery image to make it runnable on M Macs Updated getImage helper to allow flags
1 parent b917c5d commit 63c49fe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/modules/gcloud/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:529.0.0-emulators
1+
FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:529.0.0-emulators
22
FROM fsouza/fake-gcs-server:1.52.2
3-
FROM ghcr.io/goccy/bigquery-emulator:0.6.6
3+
FROM --platform=linux/amd64 ghcr.io/goccy/bigquery-emulator:0.6.6
4+
FROM gcr.io/cloud-spanner-emulator/emulator:1.5.37

packages/testcontainers/src/utils/test-helper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export const getImage = (dirname: string, index = 0): string => {
1414
return fs
1515
.readFileSync(path.resolve(dirname, "..", "Dockerfile"), "utf-8")
1616
.split("\n")
17-
[index].split(" ")[1];
17+
[index].replace(/^from /i, "")
18+
.trim();
1819
};
1920

2021
export const checkContainerIsHealthy = async (container: StartedTestContainer): Promise<void> => {

0 commit comments

Comments
 (0)