Skip to content

Commit 2a1ecce

Browse files
committed
Migrated finally to new backend, removed old backend
1 parent 6f00c27 commit 2a1ecce

65 files changed

Lines changed: 216 additions & 11461 deletions

Some content is hidden

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

backend/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM node:17
2+
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
3+
4+
# pnpm fetch does require only lockfile
5+
COPY pnpm-lock.yaml ./
6+
RUN pnpm fetch --prod
7+
8+
ADD . ./
9+
RUN pnpm install
10+
11+
RUN pnpm run build
12+
RUN mkdir -p /cache/metadata && mkdir -p /cache/fullmap
13+
#
14+
# If you need to compile your source, do it here.
15+
#
16+
CMD [ "node", "dist/src/main.js" ]
17+
18+
EXPOSE 3001
19+
20+
21+

old-backend/chart/templates/deployment.yaml renamed to backend/chart/templates/deployment.yaml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,31 @@ spec:
2424
{{- toYaml .Values.securityContext | nindent 12 }}
2525
image: "{{ .Values.image }}"
2626
env:
27-
- name: AWS_BUCKET_NAME
28-
value: "{{ .Values.AWS_BUCKET_NAME }}"
29-
- name: AWS_ID
30-
value: "{{ .Values.AWS_ID }}"
31-
- name: AWS_SECRET
32-
value: "{{ .Values.AWS_SECRET }}"
33-
- name: WEB3_URL
34-
value: "{{ .Values.WEB3_URL }}"
35-
- name: CONTRACT_ADDRESS
36-
value: "{{ .Values.CONTRACT_ADDRESS }}"
37-
- name: CONTRACT_WRAPPER_ADDRESS
38-
value: "{{ .Values.CONTRACT_WRAPPER_ADDRESS }}"
27+
- name: AWS_ACCESS_KEY_ID
28+
value: "{{ .Values.AWS_ACCESS_KEY_ID }}"
29+
- name: AWS_SECRET_ACCESS_KEY
30+
value: "{{ .Values.AWS_SECRET_ACCESS_KEY }}"
31+
- name: DATABASE_USERNAME
32+
value: "{{ .Values.DATABASE_USERNAME }}"
33+
- name: DATABASE_PASSWORD
34+
value: "{{ .Values.DATABASE_PASSWORD }}"
35+
- name: DATABASE_NAME
36+
value: "{{ .Values.DATABASE_NAME }}"
37+
- name: DATABASE_HOST
38+
value: "{{ .Values.DATABASE_HOST }}"
39+
- name: DISCORD_TOKEN
40+
value: "{{ .Values.DISCORD_TOKEN }}"
41+
- name: ETHERSCAN_API_KEY
42+
value: "{{ .Values.ETHERSCAN_API_KEY }}"
43+
- name: OPENSEA_API_KEY
44+
value: "{{ .Values.OPENSEA_API_KEY }}"
3945
imagePullPolicy: Always
4046
ports:
4147
- name: http
4248
containerPort: 3001
4349
protocol: TCP
4450
volumeMounts:
45-
- mountPath: "/app/cache"
51+
- mountPath: "/cache"
4652
name: backend-storage
4753
livenessProbe:
4854
httpGet:
@@ -52,4 +58,4 @@ spec:
5258
httpGet:
5359
path: /tiledata
5460
port: http
55-
initialDelaySeconds: 240
61+

0 commit comments

Comments
 (0)