Skip to content

Commit

Permalink
3.x: Update Dockerfiles (#50)
Browse files Browse the repository at this point in the history
* Remove Dockerfiles from non-quickstart examples
* Use base images from container-registry.oracle.com
  • Loading branch information
barchetta authored May 10, 2024
1 parent f81f0f8 commit 303a5cc
Show file tree
Hide file tree
Showing 24 changed files with 103 additions and 752 deletions.
44 changes: 0 additions & 44 deletions examples/integrations/cdi/datasource-hikaricp/Dockerfile

This file was deleted.

16 changes: 0 additions & 16 deletions examples/integrations/cdi/datasource-hikaricp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,6 @@ javax.sql.DataSource.example.dataSource.password = Oracle

## Build and run

With Docker:
```shell
docker build -t helidon-examples-integrations-datasource-hikaricp .
docker run --rm -d \
--link oracle \
-e javax_sql_DataSource_example_dataSource_url="jdbc:oracle:thin:@oracle:1521:ORCL" \
--name helidon-examples-integrations-datasource-hikaricp \
-p 8080:8080 helidon-examples-integrations-datasource-hikaricp:latest
```
OR

With Maven:
```shell
mvn package
Expand All @@ -78,8 +67,3 @@ Try the endpoint:
```shell
curl http://localhost:8080/tables
```

Stop the docker containers:
```shell
docker stop oracle helidon-examples-integrations-datasource-hikaricp
```
44 changes: 0 additions & 44 deletions examples/integrations/cdi/jedis/Dockerfile

This file was deleted.

34 changes: 2 additions & 32 deletions examples/integrations/cdi/jedis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,8 @@
```shell
docker run --rm --name redis -d -p 6379:6379 redis
```

## Build and run

With Docker:
```shell
docker build -t helidon-examples-integrations-cdi-jedis .
docker run --rm -d \
--link redis
--name helidon-examples-integrations-cdi-jedis \
-p 8080:8080 helidon-examples-integrations-cdi-jedis:latest
```

With Java:
```shell
mvn package
Expand All @@ -29,27 +19,7 @@ curl -X PUT -H "Content-Type: text/plain" http://localhost:8080/jedis/foo -d 'b
curl http://localhost:8080/jedis/foo
```

## Run with Kubernetes (docker for desktop)

```shell
docker build -t helidon-examples-integrations-cdi-jedis .
kubectl apply \
-f https://raw.githubusercontent.com/kubernetes/ingress-nginx/ingress-nginx-3.15.2/deploy/static/provider/cloud/deploy.yaml \
-f app.yaml
```

Try the endpoint:
```shell
curl -X PUT -H "Content-Type: text/plain" http://localhost/helidon-cdi-jedis/jedis/foo -d 'bar'
curl http://localhost/helidon-cdi-jedis/jedis/foo
```

Stop the docker containers:
```shell
docker stop redis helidon-examples-integrations-cdi-jedis
```

Delete the Kubernetes resources:
Stop the docker container:
```shell
kubectl delete -f app.yaml
docker stop redis
```
44 changes: 0 additions & 44 deletions examples/integrations/neo4j/neo4j-mp/Dockerfile

This file was deleted.

41 changes: 0 additions & 41 deletions examples/integrations/neo4j/neo4j-mp/Dockerfile.jlink

This file was deleted.

57 changes: 0 additions & 57 deletions examples/integrations/neo4j/neo4j-mp/Dockerfile.native

This file was deleted.

Loading

0 comments on commit 303a5cc

Please sign in to comment.