Skip to content

Commit

Permalink
Init new service framework (CrowdDotDev#1697)
Browse files Browse the repository at this point in the history
  • Loading branch information
loicsaintroch authored Oct 17, 2023
1 parent 1999744 commit ac34669
Show file tree
Hide file tree
Showing 48 changed files with 20,107 additions and 8 deletions.
25 changes: 25 additions & 0 deletions scripts/scaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,31 @@ services:
networks:
- crowd-bridge

kafka:
image: bitnami/kafka:latest
restart: always
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
ports:
- '9092:9092'
networks:
- crowd-bridge

temporal:
build:
context: scaffold/temporal
restart: always
ports:
- '7233:7233'
- '8233:8233'
networks:
- crowd-bridge

networks:
crowd-bridge:
external: true
Expand Down
10 changes: 10 additions & 0 deletions scripts/scaffold/temporal/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM alpine:latest

RUN apk add curl
RUN curl -sSf https://temporal.download/cli.sh | sh

ENV PATH /root/.temporalio/bin:$PATH

EXPOSE 7233 8233

ENTRYPOINT ["temporal", "server", "start-dev", "--ip", "0.0.0.0"]
21 changes: 21 additions & 0 deletions services/apps/template_consumer/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
plugins: ['@typescript-eslint', 'prettier'],
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
},
env: {
es6: true,
node: true,
},
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
}
3 changes: 3 additions & 0 deletions services/apps/template_consumer/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
.eslintrc.cjs
.prettierrc.cjs
7 changes: 7 additions & 0 deletions services/apps/template_consumer/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
singleQuote: true,
arrowParens: 'always',
printWidth: 100,
trailingComma: 'all',
semi: false,
}
Loading

0 comments on commit ac34669

Please sign in to comment.