Skip to content

Commit 443643c

Browse files
Update readme for artemis docs (#34)
* add vertx * add working version * add websocket working version * add websocket working version * Refactor * Artemis
1 parent 861459d commit 443643c

File tree

2 files changed

+20
-50
lines changed

2 files changed

+20
-50
lines changed

README.md

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -20,50 +20,14 @@ XSender server necesita:
2020
- [PostgreSQL](https://www.postgresql.org/)
2121
- [Keycloak](https://www.keycloak.org/)
2222
- [Amazon S3](https://aws.amazon.com/s3/) o [Minio](https://min.io/)
23-
- [Apache kafka](https://kafka.apache.org/)
23+
- [ActiveMQ Artemis](https://activemq.apache.org/components/artemis/)
2424

2525
Puedes iniciar los servicios requeridos utilizando `docker-compose.yml`:
2626

2727
```shell
2828
docker-compose up
2929
```
3030

31-
### Configura Kafka-connect
32-
33-
Una vez que todas las dependencias fueron iniciadas usando `docker-compose.yml` debes de configurar `Kafka connect`.
34-
35-
Atre un terminal y ejecuta el siguiente comando:
36-
37-
```shell
38-
curl 'localhost:8083/connectors/' -i -X POST -H "Accept:application/json" \
39-
-H "Content-Type:application/json" \
40-
-d '{
41-
"name":"postgresql-connector",
42-
"config":{
43-
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
44-
"tasks.max": "1",
45-
"database.hostname": "xsender-db",
46-
"database.port": "5432",
47-
"database.user": "xsender_username",
48-
"database.password": "xsender_password",
49-
"database.dbname": "xsender_db",
50-
"database.server.name": "dbserver1",
51-
"schema.include.list": "public",
52-
"table.include.list": "public.outboxevent",
53-
"tombstones.on.delete": "false",
54-
"transforms": "outbox",
55-
"transforms.outbox.type": "io.debezium.transforms.outbox.EventRouter",
56-
"transforms.outbox.table.fields.additional.placement": "type:header:eventType",
57-
"transforms.outbox.route.topic.replacement": "outbox.event.${routedByValue}",
58-
"transforms.outbox.table.field.event.timestamp": "timestamp",
59-
"key.converter": "org.apache.kafka.connect.json.JsonConverter",
60-
"key.converter.schemas.enable": "false",
61-
"value.converter": "org.apache.kafka.connect.json.JsonConverter",
62-
"value.converter.schemas.enable": "false"
63-
}
64-
}'
65-
```
66-
6731
### Inicia el servidor
6832

6933
Puedes iniciar el servidor en modo desarrollo usando el comando:

docker-compose.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,6 @@
1818
version: "3"
1919

2020
services:
21-
xsender-db:
22-
image: debezium/postgres:12
23-
ports:
24-
- 5432:5432
25-
environment:
26-
- POSTGRES_USER=xsender_username
27-
- POSTGRES_PASSWORD=xsender_password
28-
- POSTGRES_DB=xsender_db
29-
healthcheck:
30-
test: [ "CMD-SHELL", "pg_isready -U xsender_username -d xsender_db" ]
31-
interval: 2s
32-
timeout: 20s
33-
retries: 10
3421

3522
keycloak:
3623
image: quay.io/keycloak/keycloak:12.0.4
@@ -58,6 +45,11 @@ services:
5845
environment:
5946
ARTEMIS_USERNAME: openubl
6047
ARTEMIS_PASSWORD: openubl
48+
healthcheck:
49+
test: [ "CMD", "curl", "-f", "http://localhost:8161/console" ]
50+
interval: 10s
51+
timeout: 5s
52+
retries: 5
6153

6254
minio:
6355
image: minio/minio:RELEASE.2021-03-17T02-33-02Z
@@ -78,5 +70,19 @@ services:
7870
keycloak:
7971
condition: service_healthy
8072

73+
xsender-db:
74+
image: debezium/postgres:12
75+
ports:
76+
- 5432:5432
77+
environment:
78+
- POSTGRES_USER=xsender_username
79+
- POSTGRES_PASSWORD=xsender_password
80+
- POSTGRES_DB=xsender_db
81+
healthcheck:
82+
test: [ "CMD-SHELL", "pg_isready -U xsender_username -d xsender_db" ]
83+
interval: 2s
84+
timeout: 20s
85+
retries: 10
86+
8187
volumes:
8288
minio-data:

0 commit comments

Comments
 (0)