We're performing interactive steps adding small things one at a time!
- node 18
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", |
//... | |
eleventyConfig | |
.addFilter('yearTags', posts => { | |
const yearsList = posts.map(p => p.data.date.getFullYear()) | |
const yearsCount = {} | |
yearsList.forEach(y => { | |
if (!yearsCount[y]) yearsCount[y] = 1 | |
else yearsCount[y]++ | |
}); | |
return Object.keys(yearsCount) |
const pluginWebc = require("@11ty/eleventy-plugin-webc"); | |
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); | |
module.exports = function (eleventyConfig) { | |
eleventyConfig.addPassthroughCopy({ | |
"src/assets": "assets", | |
// "node_modules/prism-themes/themes/prism-a11y-dark.min.css": "assets/prism-theme.css" | |
// "node_modules/prism-themes/themes/prism-atom-dark.min.css": "assets/prism-theme.css" | |
// "node_modules/prism-themes/themes/prism-base16-ateliersulphurpool.light.min.css": "assets/prism-theme.css" |
// very hacky | |
// not production-ready by any means | |
import fs from "fs" | |
import AWS from "aws-sdk" | |
import mime from "mime-types" | |
import {exec} from "child_process" | |
if(!process.env.AWS_BUCKET_NAME | |
|| !process.env.HQ_DIST_SITE_FOLDER | |
|| !process.env.AWS_REGION |