You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/firebase.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,6 @@ go get github.com/testcontainers/testcontainers-go/modules/firebase
26
26
27
27
- Not available until the next release of testcontainers-go <ahref="https://github.com/testcontainers/testcontainers-go"><spanclass="tc-version">:material-tag: main</span></a>
28
28
29
-
!!!info
30
-
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
31
-
32
29
The Firebase module exposes one entrypoint function to create the Firebase container, and this function receives three parameters:
33
30
34
31
```golang
@@ -50,6 +47,24 @@ E.g. `Run(context.Background(), "ghcr.io/u-health/docker-firebase-emulator:13.29
50
47
51
48
{% include "../features/common_functional_options.md" %}
52
49
50
+
#### WithRoot
51
+
52
+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
53
+
54
+
If you need to set a different Firebase root directory, you can use the `WithRoot` option.
55
+
E.g. `firebase.Run(context.Background(), "ghcr.io/u-health/docker-firebase-emulator:13.29.2", firebase.WithRoot("testdata/firebase"))`.
56
+
57
+
!!! warning
58
+
The root directory must be a valid Firebase project directory, including the `firebase.json` file.
59
+
60
+
#### WithCache
61
+
62
+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
63
+
64
+
If you need to enable the Firebase cache, you can use the `WithCache` option, which enables the binary cache based on the TestcontainersSessionID (meaningful only when multiple tests are used).
65
+
66
+
E.g. `firebase.Run(context.Background(), "ghcr.io/u-health/docker-firebase-emulator:13.29.2", firebase.WithCache())`.
67
+
53
68
### ContainerMethods
54
69
55
70
The Firebase container exposes the following methods:
0 commit comments