Skip to content

Commit ac34669

Browse files
Init new service framework (#1697)
1 parent 1999744 commit ac34669

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+20107
-8
lines changed

scripts/scaffold.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,31 @@ services:
135135
networks:
136136
- crowd-bridge
137137

138+
kafka:
139+
image: bitnami/kafka:latest
140+
restart: always
141+
environment:
142+
- KAFKA_CFG_NODE_ID=0
143+
- KAFKA_CFG_PROCESS_ROLES=controller,broker
144+
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
145+
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
146+
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
147+
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
148+
ports:
149+
- '9092:9092'
150+
networks:
151+
- crowd-bridge
152+
153+
temporal:
154+
build:
155+
context: scaffold/temporal
156+
restart: always
157+
ports:
158+
- '7233:7233'
159+
- '8233:8233'
160+
networks:
161+
- crowd-bridge
162+
138163
networks:
139164
crowd-bridge:
140165
external: true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM alpine:latest
2+
3+
RUN apk add curl
4+
RUN curl -sSf https://temporal.download/cli.sh | sh
5+
6+
ENV PATH /root/.temporalio/bin:$PATH
7+
8+
EXPOSE 7233 8233
9+
10+
ENTRYPOINT ["temporal", "server", "start-dev", "--ip", "0.0.0.0"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:prettier/recommended',
7+
],
8+
plugins: ['@typescript-eslint', 'prettier'],
9+
parserOptions: {
10+
ecmaVersion: 2022,
11+
sourceType: 'module',
12+
},
13+
env: {
14+
es6: true,
15+
node: true,
16+
},
17+
rules: {
18+
'prettier/prettier': 'error',
19+
'@typescript-eslint/explicit-module-boundary-types': 'off',
20+
},
21+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
.eslintrc.cjs
3+
.prettierrc.cjs
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
singleQuote: true,
3+
arrowParens: 'always',
4+
printWidth: 100,
5+
trailingComma: 'all',
6+
semi: false,
7+
}

0 commit comments

Comments
 (0)