-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
51 changed files
with
11,781 additions
and
46 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
8 changes: 8 additions & 0 deletions
8
products/devex-apollo/cd/overlays/production/frontend-config.yaml
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,8 @@ | ||
apiVersion: networking.gke.io/v1beta1 | ||
kind: FrontendConfig | ||
metadata: | ||
name: devex-apollo | ||
spec: | ||
redirectToHttps: | ||
enabled: true | ||
responseCodeName: RESPONSE_CODE |
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
8 changes: 8 additions & 0 deletions
8
products/devex-apollo/cd/overlays/staging/frontend-config.yaml
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,8 @@ | ||
apiVersion: networking.gke.io/v1beta1 | ||
kind: FrontendConfig | ||
metadata: | ||
name: devex-apollo | ||
spec: | ||
redirectToHttps: | ||
enabled: true | ||
responseCodeName: RESPONSE_CODE |
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,4 @@ | ||
export NODE_PORT="4000" | ||
export NODE_HOST="0.0.0.0" | ||
export NODE_ENV=production | ||
export SCILLA_VERSION=0 |
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,2 @@ | ||
node_modules | ||
dist |
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,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 |
Oops, something went wrong.