Skip to content

Commit

Permalink
DEVOPS-1129: scilla-server migration to gcp (#309)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
pavlops authored Dec 6, 2023
1 parent 84a6ea0 commit f4f05b4
Show file tree
Hide file tree
Showing 51 changed files with 11,781 additions and 46 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cicd-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
governance-api,
governance-snapshot,
neo-savant,
scilla-server,
zillion,
zilliqa-isolated-server,
]
Expand Down Expand Up @@ -74,6 +75,11 @@ jobs:
path: products/neo-savant
tag_length: 8
tag_latest: false
- application: scilla-server
image_name: scilla-server
path: products/scilla-server
tag_length: 8
tag_latest: false
- application: zillion
image_name: zillion
path: products/zillion
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/cicd-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
governance-api,
governance-snapshot,
neo-savant,
scilla-server,
zillion,
zilliqa-isolated-server,
]
Expand Down Expand Up @@ -68,6 +69,11 @@ jobs:
path: products/pdt
tag_length: 8
tag_latest: false
- application: scilla-server
image_name: scilla-server
path: products/scilla-server
tag_length: 8
tag_latest: false
- application: zillion
image_name: zillion
path: products/zillion
Expand Down
1 change: 1 addition & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ lint:
- products/devex/public/*.js
- products/governance-api/**
- products/governance-snapshot/**
- products/scilla-server/**
- products/zillion/**
- .devcontainer/*
- .devcontainer/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: networking.gke.io/v1beta1
kind: FrontendConfig
metadata:
name: devex-apollo
spec:
redirectToHttps:
enabled: true
responseCodeName: RESPONSE_CODE
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: Kustomization
resources:
- ../../base
- certificate.yaml
- frontend-config.yaml

patches:
- target:
Expand All @@ -21,6 +22,7 @@ patches:
kubernetes.io/ingress.class: gce
kubernetes.io/ingress.global-static-ip-name: devex-apollo-zilliqa-com
networking.gke.io/managed-certificates: devex-apollo
networking.gke.io/v1beta1.FrontendConfig: devex-apollo
patchesStrategicMerge:
- configmap.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: networking.gke.io/v1beta1
kind: FrontendConfig
metadata:
name: devex-apollo
spec:
redirectToHttps:
enabled: true
responseCodeName: RESPONSE_CODE
2 changes: 2 additions & 0 deletions products/devex-apollo/cd/overlays/staging/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: Kustomization
resources:
- ../../base
- certificate.yaml
- frontend-config.yaml

patches:
- target:
Expand All @@ -22,6 +23,7 @@ patches:
kubernetes.io/ingress.class: gce
kubernetes.io/ingress.global-static-ip-name: devex-apollo-zilstg-dev
networking.gke.io/managed-certificates: devex-apollo
networking.gke.io/v1beta1.FrontendConfig: devex-apollo
- target:
kind: Deployment
name: devex-apollo
Expand Down
4 changes: 4 additions & 0 deletions products/scilla-server/.env_dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export NODE_PORT="4000"
export NODE_HOST="0.0.0.0"
export NODE_ENV=production
export SCILLA_VERSION=0
2 changes: 2 additions & 0 deletions products/scilla-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
19 changes: 19 additions & 0 deletions products/scilla-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM zilliqa/scilla:v0.12.0rc1

ARG DEPLOY_ENV="dev"

# Install node.js
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get -y install nodejs

COPY . /scilla-server

WORKDIR /scilla-server
RUN npm install
RUN npm run build

EXPOSE 4000

ENV DEPLOY_ENV=${DEPLOY_ENV}
ENTRYPOINT ["sh", "run_server.sh"]
#ENTRYPOINT NODE_ENV=production SCILLA_VERSION=0 npm run start
Loading

0 comments on commit f4f05b4

Please sign in to comment.