File tree 3 files changed +9
-9
lines changed
main/java/org/testcontainers/pinecone
test/java/org/testcontainers/pinecone 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Pinecone
2
2
3
- Testcontainers module for [ Pinecone] ( https://github.com/orgs/pinecone-io/packages/container/package/pinecone-local ) .
3
+ Testcontainers module for [ Pinecone Local ] ( https://github.com/orgs/pinecone-io/packages/container/package/pinecone-local ) .
4
4
5
- ## PineconeContainer 's usage examples
5
+ ## PineconeLocalContainer 's usage examples
6
6
7
- You can start an Pinecone container instance from any Java application by using:
7
+ You can start a Pinecone container instance from any Java application by using:
8
8
9
9
<!-- codeinclude-->
10
- [ Pinecone container] ( ../../modules/pinecone/src/test/java/org/testcontainers/pinecone/PineconeContainerTest .java ) inside_block: container
10
+ [ Pinecone container] ( ../../modules/pinecone/src/test/java/org/testcontainers/pinecone/PineconeLocalContainerTest .java ) inside_block: container
11
11
<!-- /codeinclude-->
12
12
13
13
## Adding this module to your project dependencies
Original file line number Diff line number Diff line change 8
8
* <p>
9
9
* Exposed port: 5080
10
10
*/
11
- public class PineconeContainer extends GenericContainer <PineconeContainer > {
11
+ public class PineconeLocalContainer extends GenericContainer <PineconeLocalContainer > {
12
12
13
13
private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName .parse (
14
14
"ghcr.io/pinecone-io/pinecone-local"
15
15
);
16
16
17
17
private static final int PORT = 5080 ;
18
18
19
- public PineconeContainer (String dockerImageName ) {
19
+ public PineconeLocalContainer (String dockerImageName ) {
20
20
this (DockerImageName .parse (dockerImageName ));
21
21
}
22
22
23
- public PineconeContainer (DockerImageName dockerImageName ) {
23
+ public PineconeLocalContainer (DockerImageName dockerImageName ) {
24
24
super (dockerImageName );
25
25
dockerImageName .assertCompatibleWith (DEFAULT_IMAGE_NAME );
26
26
Original file line number Diff line number Diff line change 7
7
8
8
import static org .assertj .core .api .Assertions .assertThat ;
9
9
10
- public class PineconeContainerTest {
10
+ public class PineconeLocalContainerTest {
11
11
12
12
@ Test
13
13
public void testSimple () {
14
14
try ( // container {
15
- PineconeContainer container = new PineconeContainer ("ghcr.io/pinecone-io/pinecone-local:v0.7.0" )
15
+ PineconeLocalContainer container = new PineconeLocalContainer ("ghcr.io/pinecone-io/pinecone-local:v0.7.0" )
16
16
// }
17
17
) {
18
18
container .start ();
You can’t perform that action at this time.
0 commit comments