Skip to content

Commit

Permalink
docs: indicate version for the Run function (testcontainers#2627)
Browse files Browse the repository at this point in the history
* docs: indicate version for the Run function

* docs(cockroachdb): move info message to the right section

* docs: proper info architecture
  • Loading branch information
mdelapenya authored Jul 5, 2024
1 parent ee9a148 commit 3f73722
Show file tree
Hide file tree
Showing 43 changed files with 344 additions and 50 deletions.
9 changes: 8 additions & 1 deletion docs/modules/artemis.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ go get github.com/testcontainers/testcontainers-go/modules/artemis
[Connecting to an Artemis container](../../modules/artemis/examples_test.go) inside_block:connectToArtemisContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Artemis module exposes one entrypoint function to create the Artemis container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/azurite.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/azurite
[Creating a Azurite container](../../modules/azurite/examples_test.go) inside_block:runAzuriteContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Azurite module exposes one entrypoint function to create the Azurite container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/cassandra.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/cassandra
[Creating a Cassandra container](../../modules/cassandra/examples_test.go) inside_block:runCassandraContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Cassandra module exposes one entrypoint function to create the Cassandra container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/chroma.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ go get github.com/testcontainers/testcontainers-go/modules/chroma
[Creating a Chroma container](../../modules/chroma/examples_test.go) inside_block:runChromaContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Chroma module exposes one entrypoint function to create the Chroma container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/clickhouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/clickhouse
[Test for a ClickHouse container](../../modules/clickhouse/examples_test.go) inside_block:runClickHouseContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The ClickHouse module exposes one entrypoint function to create the ClickHouse container, and this function receives three parameters:

Expand Down
15 changes: 11 additions & 4 deletions docs/modules/cockroachdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/cockroachdb
[Creating a CockroachDB container](../../modules/cockroachdb/examples_test.go) inside_block:runCockroachDBContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The CockroachDB module exposes one entrypoint function to create the CockroachDB container, and this function receives three parameters:

Expand All @@ -32,9 +39,6 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom
- `string`, the Docker image to use.
- `testcontainers.ContainerCustomizer`, a variadic argument for passing options.

!!!warning
When TLS is enabled there's a very small, unlikely chance that the underlying driver can panic when registering the driver as part of waiting for CockroachDB to be ready to accept connections. If this is repeatedly happening please open an issue.

### Container Options

When starting the CockroachDB container, you can pass options in a variadic way to configure it.
Expand Down Expand Up @@ -65,6 +69,9 @@ Internally CockroachDB requires a client certificate for the user to connect wit

A helper `cockroachdb.NewTLSConfig` exists to generate all of this for you.

!!!warning
When TLS is enabled there's a very small, unlikely chance that the underlying driver can panic when registering the driver as part of waiting for CockroachDB to be ready to accept connections. If this is repeatedly happening please open an issue.
### Container Methods
The CockroachDB container exposes the following methods:
Expand Down
9 changes: 8 additions & 1 deletion docs/modules/consul.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/consul
[Creating a Consul container](../../modules/consul/examples_test.go) inside_block:runConsulContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Consul module exposes one entrypoint function to create the Consul container, and this function receives three parameters:

Expand Down
7 changes: 7 additions & 0 deletions docs/modules/couchbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ go get github.com/testcontainers/testcontainers-go/modules/couchbase

## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Couchbase module exposes one entrypoint function to create the Couchbase container, and this function receives three parameters:

```golang
Expand Down
9 changes: 8 additions & 1 deletion docs/modules/dolt.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/dolt
[Creating a Dolt container](../../modules/dolt/examples_test.go) inside_block:runDoltContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Dolt module exposes one entrypoint function to create the Dolt container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/elasticsearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/elasticsearch
[Creating a Elasticsearch container](../../modules/elasticsearch/examples_test.go) inside_block:runElasticsearchContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Elasticsearch module exposes one entrypoint function to create the Elasticsearch container, and this function receives three parameters:

Expand Down
24 changes: 16 additions & 8 deletions docs/modules/gcloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,28 @@ It's important to set the target string of the `grpc.Dial` method using the cont

It's important to set the `option.WithEndpoint()` option using the container's URI, as shown in the Admin client example above.

## Module reference
## Module Reference

The GCloud module exposes one entrypoint function to create the different GCloud emulators, and each function receives two parameters:
### Run function

- 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>

!!!info
The `RunXXXContainer(ctx, opts...)` functions are deprecated and will be removed in the next major release of _Testcontainers for Go_.

The GCloud module exposes one entrypoint function to create the different GCloud emulators, and each function receives three parameters:

```golang
func RunBigQueryContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*BigQueryContainer, error)
func RunBigTableContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*BigTableContainer, error)
func RunDatastoreContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*DatastoreContainer, error)
func RunFirestoreContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*FirestoreContainer, error)
func RunPubsubContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*PubsubContainer, error)
func RunSpannerContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*SpannerContainer, error)
func RunBigQuery(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*BigQueryContainer, error)
func RunBigTable(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*BigTableContainer, error)
func RunDatastore(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*DatastoreContainer, error)
func RunFirestore(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*FirestoreContainer, error)
func RunPubsub(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*PubsubContainer, error)
func RunSpanner(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*SpannerContainer, error)
```

- `context.Context`, the Go context.
- `string`, the Docker image to use.
- `testcontainers.ContainerCustomizer`, a variadic argument for passing options.

### Container Options
Expand Down
9 changes: 8 additions & 1 deletion docs/modules/inbucket.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/inbucket
[Creating a Inbucket container](../../modules/inbucket/examples_test.go) inside_block:runInbucketContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Inbucket module exposes one entrypoint function to create the Inbucket container, and this function receives three parameters:

Expand Down
7 changes: 7 additions & 0 deletions docs/modules/influxdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ go get github.com/testcontainers/testcontainers-go/modules/influxdb

## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The InfluxDB module exposes one entrypoint function to create the container, and this function receives three parameters:

```golang
Expand Down
10 changes: 8 additions & 2 deletions docs/modules/k3s.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/k3s
[Test for a K3s container](../../modules/k3s/k3s_test.go) inside_block:runK3sContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The K3s module exposes one entrypoint function to create the K3s container, and this function receives three parameters:

Expand All @@ -32,7 +39,6 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom
- `string`, the Docker image to use.
- `testcontainers.ContainerCustomizer`, a variadic argument for passing options.


### Container Ports
These are the ports used by the K3s container:
<!--codeinclude-->
Expand Down
9 changes: 8 additions & 1 deletion docs/modules/k6.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ go get github.com/testcontainers/testcontainers-go/modules/k6
[Creating a K6 container](../../modules/k6/examples_test.go) inside_block:runK6Container
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The K6 module exposes one entrypoint function to run the K6 container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/kafka
[Creating a Kafka container](../../modules/kafka/examples_test.go) inside_block:runKafkaContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Kafka module exposes one entrypoint function to create the Kafka container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/localstack.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ Running LocalStack as a stand-in for multiple AWS services during a test:
Environment variables listed in [Localstack's README](https://github.com/localstack/localstack#configurations) may be used to customize Localstack's configuration.
Use the `testcontainers.WithEnv` option when creating the `LocalStackContainer` to apply those variables.

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The LocalStack module exposes one single function to create the LocalStack container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/mariadb.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/mariadb
[Creating a MariaDB container](../../modules/mariadb/examples_test.go) inside_block:runMariaDBContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The MariaDB module exposes one entrypoint function to create the MariaDB container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/milvus.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/milvus
[Creating a Milvus container](../../modules/milvus/examples_test.go) inside_block:runMilvusContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Milvus module exposes one entrypoint function to create the Milvus container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/minio.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/minio
[Creating a Minio container](../../modules/minio/examples_test.go) inside_block:runMinioContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The Minio module exposes one entrypoint function to create the Minio container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/mockserver.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/mockserver
[Creating a MockServer container](../../modules/mockserver/examples_test.go) inside_block:runMockServerContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The MockServer module exposes one entrypoint function to create the MockServer container, and this function receives three parameters:

Expand Down
9 changes: 8 additions & 1 deletion docs/modules/mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/mongodb
[Creating a MongoDB container](../../modules/mongodb/examples_test.go) inside_block:runMongoDBContainer
<!--/codeinclude-->

## Module reference
## Module Reference

### Run function

- 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>

!!!info
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.

The MongoDB module exposes one entrypoint function to create the MongoDB container, and this function receives three parameters:

Expand Down
Loading

0 comments on commit 3f73722

Please sign in to comment.