Skip to content

Commit

Permalink
Migrate to Docker Compose v2 (#139)
Browse files Browse the repository at this point in the history
* Migrate to Docker Compose v2

* fix as2 example - CAMEL-19164: upgrade to http components 5.x
  • Loading branch information
johnpoth authored Jun 25, 2024
1 parent e30f6bd commit 304268e
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.apache.camel.Processor;
import org.apache.camel.component.as2.api.util.AS2Utils;
import org.apache.camel.component.as2.internal.AS2Constants;
import org.apache.http.HttpRequest;
import org.apache.http.protocol.HttpCoreContext;
import org.apache.hc.core5.http.HttpRequest;
import org.apache.hc.core5.http.protocol.HttpCoreContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
2 changes: 1 addition & 1 deletion as2/src/main/resources/META-INF/spring/camel-context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ UNZ+1+00000000000778'
</constant>
</transform>
<setHeader name="CamelAS2.ediMessageContentType">
<simple resultType="org.apache.http.entity.ContentType">application/edifact;charset=US-ASCII</simple>
<simple resultType="org.apache.hc.core5.http.ContentType">application/edifact;charset=US-ASCII</simple>
</setHeader>
<setHeader name="CamelAS2.ediMessageTransferEncoding">
<constant>7bit</constant>
Expand Down
4 changes: 2 additions & 2 deletions resume-api/resume-api-aws2-kinesis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Building the demo
To build the demo and the containers:

```shell
mvn clean package && docker-compose build
mvn clean package && docker compose build
```

Run
Expand All @@ -24,7 +24,7 @@ Run
To run the demo:

```shell
docker-compose up -d && docker-compose logs --no-log-prefix -f example ; docker-compose down
docker compose up -d && docker compose logs --no-log-prefix -f example ; docker compose down
```

Advanced / Manual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
## limitations under the License.
## ---------------------------------------------------------------------------

version: '3.4'
services:
kinesis:
image: localstack/localstack:latest
Expand Down
4 changes: 2 additions & 2 deletions resume-api/resume-api-cassandraql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Building the demo
To build the demo and the containers:

```shell
mvn clean package && docker-compose build
mvn clean package && docker compose build
```

Run
Expand All @@ -22,7 +22,7 @@ Run
To run the demo:

```shell
docker-compose up -d && docker-compose logs --no-log-prefix -f example ; docker-compose down
docker compose up -d && docker compose logs --no-log-prefix -f example ; docker compose down
```

Advanced / Manual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
## limitations under the License.
## ---------------------------------------------------------------------------

version: '3.4'
services:
cassandra:
image: cassandra:4
Expand Down
4 changes: 2 additions & 2 deletions resume-api/resume-api-file-offset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Building the demo
To build the demo and the containers:

```shell
mvn clean package && docker-compose build
mvn clean package && docker compose build
```


Expand All @@ -25,7 +25,7 @@ Run
To run the demo:

```shell
docker-compose up -d && docker-compose logs --no-log-prefix -f example ; docker-compose down
docker compose up -d && docker compose logs --no-log-prefix -f example ; docker compose down
```

Advanced / Manual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
## limitations under the License.
## ---------------------------------------------------------------------------

version: '3.4'
services:
zookeeper:
image: quay.io/strimzi/kafka:0.28.0-kafka-3.1.0
Expand Down
4 changes: 2 additions & 2 deletions resume-api/resume-api-fileset-clusterized/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Building the demo
To build the demo and the containers:

```shell
mvn clean package && docker-compose build
mvn clean package && docker compose build
```

Run
Expand All @@ -47,7 +47,7 @@ Run
To run the demo:

```shell
docker-compose up -d && docker-compose logs -f example-1 example-2 ; docker-compose down
docker compose up -d && docker compose logs -f example-1 example-2 ; docker compose down
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
## limitations under the License.
## ---------------------------------------------------------------------------

version: '3.4'
services:
zookeeper:
image: quay.io/strimzi/kafka:0.28.0-kafka-3.1.0
Expand Down
6 changes: 3 additions & 3 deletions resume-api/resume-api-fileset-wal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Building the demo
To build the demo and the containers:

```shell
mvn clean package && docker-compose build
mvn clean package && docker compose build
```

Run
Expand All @@ -23,7 +23,7 @@ Run
This demo runs manually. First, start the demo using the command:

```shell
docker-compose up -d && docker exec -it resume-api-fileset-wal-example-1 /bin/bash ; docker-compose down
docker compose up -d && docker exec -it resume-api-fileset-wal-example-1 /bin/bash ; docker compose down
```

This will take you to another shell. Open another window or terminal and leave that shell open for now.
Expand Down Expand Up @@ -59,7 +59,7 @@ docker network connect --alias kafka resume-api-fileset-wal_default resume-api-f
While running the demo, note how the application performs the recovery prior to starting the execution.


*Note*: it assumes docker-compose will create the containers using its default name pattern. If that's not the case,
*Note*: it assumes docker compose will create the containers using its default name pattern. If that's not the case,
please adjust the names accordingly.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
## limitations under the License.
## ---------------------------------------------------------------------------

version: '3.4'
services:
zookeeper:
image: quay.io/strimzi/kafka:0.28.0-kafka-3.1.0
Expand Down
4 changes: 2 additions & 2 deletions resume-api/resume-api-fileset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Building the demo
To build the demo and the containers:

```shell
mvn clean package && docker-compose build
mvn clean package && docker compose build
```

Run
Expand All @@ -23,5 +23,5 @@ Run
To run the demo:

```shell
docker-compose up -d && docker-compose logs --no-log-prefix -f example ; docker-compose down
docker compose up -d && docker compose logs --no-log-prefix -f example ; docker compose down
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
## limitations under the License.
## ---------------------------------------------------------------------------

version: '3.4'
services:
zookeeper:
image: quay.io/strimzi/kafka:0.28.0-kafka-3.1.0
Expand Down

0 comments on commit 304268e

Please sign in to comment.