-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(deployment): build push simple services * feat(workflow): created workflows for each service * feat(deployment): build push simple services * feat(deployment): kube files for all simple services * Feat/deployment (#28) * fix(mcq): fixed issue where only 1 MCQ was being generated by gpt * fix(client): minor qol fixes * fix(mcq): added additonal fixes * fix(profile): fixed cards * fix(subscribe): added blue box * feat(MCQ): added option to reorder, delete or add options --------- Co-authored-by: neilscallywag <neil.sharma.2022@scis.smu.edu.sg> Co-authored-by: Louis <64778758+iamlouisteo@users.noreply.github.com> * chore(upload-note): added env file * fix(docker): fixed docker file to add env file for upload note * chore(deployment): build push complex service images * feat(kubernetes): finished manifest * chore(kong): build and push kong image * chore(kong): added health check path * fix(user-storage): rebuild image * fix(subscriptions): rebuild image * fix(subscriptions): rebuild image * fix(payment): rebuild image * fix(contents): rebuild image * fix(notes & fileprocessor): rebuild image * fix(deployment): rebuild image * fix(handletempcontent): rebuild image * fix(makepayment & verifyuser): rebuild image * fix(kong): rebuild image * fix(userstorage & kong): temp fix * fix(contents): fix redis connection * fix(process-chunks): fix connection to aws mq * fix(deploy): fix connection * fix * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(upload-notes): fixed rabbit connection * fix(contents): fix redis connection * feat(terraform): resources creation done * feat(kubernetes): done * fix(user-storage): singass auth use random email * fix(user-storage): singass auth use random email --------- Co-authored-by: neilscallywag <neil.sharma.2022@scis.smu.edu.sg> Co-authored-by: Louis <64778758+iamlouisteo@users.noreply.github.com>
- Loading branch information
1 parent
ddf25ef
commit 17b29f1
Showing
118 changed files
with
1,991 additions
and
687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- feat/build-push | ||
paths: | ||
- 'backend/complex/process-chunks/**' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM developwithzt/esd-buf-healthprobe-base:go-1.0 as proto-base | ||
COPY buf.* . | ||
COPY api/ api/ | ||
RUN buf generate | ||
|
||
FROM golang:alpine3.19 AS builder | ||
WORKDIR /app | ||
|
||
# Install curl to fetch grpc_health_probe | ||
RUN apk --no-cache add curl | ||
|
||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
COPY --from=proto-base /app/pb/ pb/ | ||
COPY cmd/ cmd/ | ||
COPY internal/ internal/ | ||
RUN go build -o /app/build/server cmd/main.go | ||
|
||
# Download and install the gRPC health probe | ||
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.13 && \ | ||
curl -sLo /app/build/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-arm64 && \ | ||
chmod +x /app/build/grpc_health_probe | ||
|
||
FROM gcr.io/distroless/static-debian12 | ||
WORKDIR /app | ||
COPY --from=builder /app/build/grpc_health_probe /bin/grpc_health_probe | ||
COPY --from=builder /app/build/server . | ||
CMD ["./server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM developwithzt/esd-buf-healthprobe-base:go-1.0 as proto-base | ||
COPY buf.* . | ||
COPY api/ api/ | ||
RUN buf generate | ||
|
||
FROM golang:alpine3.19 AS builder | ||
WORKDIR /app | ||
|
||
# Install curl to fetch grpc_health_probe | ||
RUN apk --no-cache add curl | ||
|
||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
COPY --from=proto-base /app/pb/ pb/ | ||
COPY cmd/ cmd/ | ||
COPY internal/ internal/ | ||
RUN go build -o /app/build/server cmd/main.go | ||
|
||
# Download and install the gRPC health probe | ||
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.13 && \ | ||
curl -sLo /app/build/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-arm64 && \ | ||
chmod +x /app/build/grpc_health_probe | ||
|
||
FROM gcr.io/distroless/static-debian12 | ||
WORKDIR /app | ||
COPY --from=builder /app/build/grpc_health_probe /bin/grpc_health_probe | ||
COPY --from=builder /app/build/server . | ||
CMD ["./server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM developwithzt/esd-buf-healthprobe-base:general-1.0 as proto-base | ||
COPY buf.* . | ||
COPY protos/ protos/ | ||
RUN buf generate | ||
|
||
FROM python:3.11.7 as builder | ||
WORKDIR /app | ||
RUN pip install pyinstaller | ||
COPY requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
COPY --from=proto-base /app/pb/ /app/pb/ | ||
ENV PYTHONPATH /app/:/app/pb/:$PYTHONPATH | ||
COPY src/ src/ | ||
RUN pyinstaller --onefile src/main.py | ||
|
||
FROM debian:stable-slim | ||
WORKDIR /app | ||
|
||
# Install curl and other necessary utilities | ||
RUN apt-get update && \ | ||
apt-get install -y curl && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Download and install the gRPC health probe, used for checking the health of gRPC applications | ||
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.13 && \ | ||
curl -sLo /bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-arm64 && \ | ||
chmod +x /bin/grpc_health_probe | ||
|
||
COPY --from=builder /app/dist/main server | ||
CMD ["./server"] |
Oops, something went wrong.