Skip to content

Commit f4f05b4

Browse files
authored
DEVOPS-1129: scilla-server migration to gcp (#309)
* feat: DEVOPS-1129 scilla-server migration to gcp * feat: DEVOPS-1129 scilla-server migration to gcp * feat: DEVOPS-1129 scilla-server migration to gcp * feat: DEVOPS-1129 scilla-server migration to gcp * feat: DEVOPS-1129 scilla-server migration to gcp * feat: DEVOPS-1129 scilla-server migration to gcp
1 parent 84a6ea0 commit f4f05b4

Some content is hidden

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

51 files changed

+11781
-46
lines changed

.github/workflows/cicd-prd.yml

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
governance-api,
3131
governance-snapshot,
3232
neo-savant,
33+
scilla-server,
3334
zillion,
3435
zilliqa-isolated-server,
3536
]
@@ -74,6 +75,11 @@ jobs:
7475
path: products/neo-savant
7576
tag_length: 8
7677
tag_latest: false
78+
- application: scilla-server
79+
image_name: scilla-server
80+
path: products/scilla-server
81+
tag_length: 8
82+
tag_latest: false
7783
- application: zillion
7884
image_name: zillion
7985
path: products/zillion

.github/workflows/cicd-stg.yml

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
governance-api,
3030
governance-snapshot,
3131
neo-savant,
32+
scilla-server,
3233
zillion,
3334
zilliqa-isolated-server,
3435
]
@@ -68,6 +69,11 @@ jobs:
6869
path: products/pdt
6970
tag_length: 8
7071
tag_latest: false
72+
- application: scilla-server
73+
image_name: scilla-server
74+
path: products/scilla-server
75+
tag_length: 8
76+
tag_latest: false
7177
- application: zillion
7278
image_name: zillion
7379
path: products/zillion

.trunk/trunk.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ lint:
3939
- products/devex/public/*.js
4040
- products/governance-api/**
4141
- products/governance-snapshot/**
42+
- products/scilla-server/**
4243
- products/zillion/**
4344
- .devcontainer/*
4445
- .devcontainer/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: networking.gke.io/v1beta1
2+
kind: FrontendConfig
3+
metadata:
4+
name: devex-apollo
5+
spec:
6+
redirectToHttps:
7+
enabled: true
8+
responseCodeName: RESPONSE_CODE

products/devex-apollo/cd/overlays/production/kustomization.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ kind: Kustomization
44
resources:
55
- ../../base
66
- certificate.yaml
7+
- frontend-config.yaml
78

89
patches:
910
- target:
@@ -21,6 +22,7 @@ patches:
2122
kubernetes.io/ingress.class: gce
2223
kubernetes.io/ingress.global-static-ip-name: devex-apollo-zilliqa-com
2324
networking.gke.io/managed-certificates: devex-apollo
25+
networking.gke.io/v1beta1.FrontendConfig: devex-apollo
2426
2527
patchesStrategicMerge:
2628
- configmap.yaml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: networking.gke.io/v1beta1
2+
kind: FrontendConfig
3+
metadata:
4+
name: devex-apollo
5+
spec:
6+
redirectToHttps:
7+
enabled: true
8+
responseCodeName: RESPONSE_CODE

products/devex-apollo/cd/overlays/staging/kustomization.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ kind: Kustomization
44
resources:
55
- ../../base
66
- certificate.yaml
7+
- frontend-config.yaml
78

89
patches:
910
- target:
@@ -22,6 +23,7 @@ patches:
2223
kubernetes.io/ingress.class: gce
2324
kubernetes.io/ingress.global-static-ip-name: devex-apollo-zilstg-dev
2425
networking.gke.io/managed-certificates: devex-apollo
26+
networking.gke.io/v1beta1.FrontendConfig: devex-apollo
2527
- target:
2628
kind: Deployment
2729
name: devex-apollo

products/scilla-server/.env_dev

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export NODE_PORT="4000"
2+
export NODE_HOST="0.0.0.0"
3+
export NODE_ENV=production
4+
export SCILLA_VERSION=0

products/scilla-server/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

products/scilla-server/Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM zilliqa/scilla:v0.12.0rc1
2+
3+
ARG DEPLOY_ENV="dev"
4+
5+
# Install node.js
6+
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
7+
RUN apt-get -y install nodejs
8+
9+
COPY . /scilla-server
10+
11+
WORKDIR /scilla-server
12+
RUN npm install
13+
RUN npm run build
14+
15+
EXPOSE 4000
16+
17+
ENV DEPLOY_ENV=${DEPLOY_ENV}
18+
ENTRYPOINT ["sh", "run_server.sh"]
19+
#ENTRYPOINT NODE_ENV=production SCILLA_VERSION=0 npm run start

0 commit comments

Comments
 (0)