Skip to content

Commit d5aaebd

Browse files
committed
Teams Connector PoC V0
1 parent a33d98a commit d5aaebd

34 files changed

+9
-16
lines changed

.dockerignore

100644100755
File mode changed.

.env.example

100644100755
File mode changed.

.github/workflows/ci-cd-ghcr.yml

100644100755
File mode changed.

.gitignore

100644100755
File mode changed.

Dockerfile

100644100755
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@ WORKDIR /app
1010
COPY --from=builder /app/dist ./dist
1111
COPY --from=builder /app/package.json ./package.json
1212
COPY --from=builder /app/package-lock.json ./package-lock.json
13+
1314
RUN npm ci --omit=dev && \
1415
npm cache clean --force && \
1516
rm -rf /usr/local/lib/node_modules/npm /usr/local/bin/npm /usr/local/bin/npx /usr/local/bin/corepack
17+
1618
EXPOSE 3000
17-
USER node
19+
20+
USER 1001
21+
22+
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=5 CMD wget -qO- http://localhost:3000/health || exit 1
23+
1824
CMD ["node", "dist/index.js"]

README.md

100644100755
Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Minimal TypeScript/Express proof-of-concept for posting notifications to Microso
44

55
## Scope
66

7-
Implemented in this PoC:
7+
Implemented:
88
- `POST /api/v1/messages`
99
- `GET /api/v1/health`
1010
- API key auth + required `X-User-Entra-Id` header
@@ -13,11 +13,8 @@ Implemented in this PoC:
1313
- `text`
1414
- `template` with `template=generic`
1515

16-
Deferred from this PoC:
17-
- `POST /messages/batch`
18-
- `GET /targets`
16+
Deferred:
1917
- Graph membership checks and cache
20-
- Alias resolution from YAML
2118
- Additional content kinds/templates
2219

2320
## Prerequisites
@@ -83,16 +80,6 @@ Run container:
8380
docker run --rm -p 3000:3000 --env-file .env teams-connector-poc
8481
```
8582

86-
## OpenShift and GitOps
87-
88-
Helm and Argo CD scaffolding is available in this repo:
89-
- Helm chart: `deploy/helm/teams-connector`
90-
- Argo CD manifests: `deploy/argocd`
91-
- GitOps repo templates: `deploy/gitops-example`
92-
93-
Deployment guide:
94-
- `docs/openshift-argocd-gitops.md`
95-
9683
### Docker Compose
9784

9885
Start with compose:

docker-compose.yml

100644100755
File mode changed.

package-lock.json

100644100755
File mode changed.

package.json

100644100755
File mode changed.

scripts/send-test-message.ts

100644100755
File mode changed.

0 commit comments

Comments
 (0)