We're performing interactive steps adding small things one at a time!
- node 18
#!/bin/sh | |
# need to run this to have a proper local cluster | |
sleep 5 ; echo yes | redis-cli --cluster create redis-7003:7003 redis-7001:7001 redis-7002:7002 --cluster-replicas 0 |
<!-- | |
Since the markup IS the application state, using data-* attributes to keep track of some specifics would be handy. | |
Luckily, HTMX is brutally easy to extend, so we can do that in no time! | |
--> | |
<article class="message task" | |
th:id="'task'+${task.id}" | |
th:data-task="${task.id}" | |
th:data-status="${task.status.id}" | |
th:hx-put="@{/task/{id}(id=${task.id})}" | |
hx-ext="hx-dataset-include" |
package sample.example | |
import org.hamcrest.CoreMatchers | |
import org.hamcrest.MatcherAssert | |
import org.junit.jupiter.api.Assertions | |
import org.junit.jupiter.api.Test | |
import org.springframework.beans.factory.annotation.Autowired | |
import org.springframework.boot.test.context.SpringBootTest | |
import org.springframework.context.annotation.Import | |
import org.springframework.data.domain.PageRequest |
version: "3.8" | |
services: | |
elasticsearch: | |
image: pelias/elasticsearch:7.16.1 | |
restart: always | |
ports: [ "127.0.0.1:9200:9200", "127.0.0.1:9300:9300" ] | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 |
export class Logging { | |
static async generalLogger (ctx, next) { | |
try { | |
await next() | |
} catch (err) { | |
console.log(err) | |
ctx.throw(err) | |
} | |
} | |
} |
# see https://gist.github.com/sombriks/c8e8979d80efaf02de6bf04ffe5805cc | |
FROM eclipse-temurin:17-jre-alpine | |
ARG SERVICE=my-service | |
ARG VERSION=0.0.1-SNAPSHOT | |
ENV SERVICE=$SERVICE | |
ENV VERSION=$VERSION | |
# for gradle |
name: Publish git tag as ECR image | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
REGISTRY_USER: ${{ secrets.REGISTRY_USER }} | |
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} |
{ | |
"serviceName": "log-broker-service", | |
"cluster": "log-broker-cluster", | |
"taskDefinition": "log-broker-task:8", | |
"desiredCount": 1, | |
"launchType": "FARGATE", | |
"platformVersion": "LATEST", | |
"networkConfiguration": { | |
"awsvpcConfiguration": { | |
"subnets": [ |
{ | |
"family": "teste", | |
"containerDefinitions": [ | |
{ | |
"name": "kafka", | |
"image": "public.ecr.aws/bitnami/kafka:3.5", | |
"cpu": 0, | |
"portMappings": [ | |
{ | |
"name": "kafka-9092-tcp", |