This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update dockerfile for dshop backend changes * ignore secrets-dshop.yaml * update dshop backend deploys: adjusts env vars as necessary, switches dshop backends from statefulsets to deployments, configures CloudSQL connections, * new subdir in dshop dir * adds redis and move dshop backend back to statefulsets for redis persistance * dshop backend Dockerfile moved to different repo * adds backendapi.ogn.app to dshop backend ingress * fixes mainnet password for dshop DB * dshopapi.ogn.app not backendapi
- Loading branch information
1 parent
97bac31
commit a533f26
Showing
10 changed files
with
100 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1 @@ | ||
FROM node:10 as build | ||
|
||
WORKDIR /app | ||
|
||
ARG ENVKEY | ||
ARG DSHOP_BACKEND_DIR=dapps/shop/backend | ||
|
||
ENV NODE_ENV=production | ||
ENV ENVKEY=$ENVKEY | ||
ENV DISABLE_SYNC=true | ||
|
||
COPY $DSHOP_BACKEND_DIR/package.json ./ | ||
COPY $DSHOP_BACKEND_DIR/app.js ./ | ||
COPY $DSHOP_BACKEND_DIR/app.json ./ | ||
COPY $DSHOP_BACKEND_DIR/config.js ./ | ||
COPY $DSHOP_BACKEND_DIR/index.js ./ | ||
COPY $DSHOP_BACKEND_DIR/listener.js ./ | ||
COPY $DSHOP_BACKEND_DIR/tstEnc.js ./ | ||
COPY $DSHOP_BACKEND_DIR/routes ./routes | ||
COPY $DSHOP_BACKEND_DIR/utils ./utils | ||
COPY $DSHOP_BACKEND_DIR/data/config.js ./data/config.js | ||
COPY $DSHOP_BACKEND_DIR/data/migrations ./data/migrations | ||
COPY $DSHOP_BACKEND_DIR/models ./models | ||
COPY $DSHOP_BACKEND_DIR/scripts ./scripts | ||
|
||
RUN yarn install | ||
CMD npm run migrate && node index.js | ||
# Moved to https://github.com/OriginProtocol/dshop/blob/master/devops/Dockerfile |
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
17 changes: 17 additions & 0 deletions
17
devops/kubernetes/charts/origin-experimental/templates/dshop-backend-mainnet.secret.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,17 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "dshopBackendMainnet.fullname" . }} | ||
labels: | ||
app: {{ template "dshopBackendMainnet.fullname" . }} | ||
app.kubernetes.io/name: dshop | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
app.kubernetes.io/component: backend | ||
app.kubernetes.io/part-of: dshop-backend-rinkeby | ||
type: Opaque | ||
data: | ||
ENCRYPTION_KEY: {{ required "Set a .Values.dshopBackendMainnetEncryptionKey" .Values.dshopBackendMainnetEncryptionKey | b64enc | quote}} | ||
DATABASE_URL: {{ required "Set a .Values.dshopBackendMainnetDatabaseURL" .Values.dshopBackendMainnetDatabaseURL | b64enc | quote}} |
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
Binary file modified
BIN
+245 Bytes
(270%)
devops/kubernetes/values/origin-experimental/secrets-dshop.enc
Binary file not shown.
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
dshopBackendMainnetHost: api.ogn.app | ||
dshopBackendMainnetDBInstance: origin-214503:us-west1:dshop-mainnet0 | ||
dshopBackendMainnetRedisURL: redis://localhost:6379/0 | ||
dshopBackendRinkebyHost: rinkebyapi.ogn.app | ||
dshopBackendRinkebyDBInstance: origin-214503:us-west1:dshop-rinkeby0 | ||
dshopBackendRinkebyRedisURL: redis://localhost:6379/0 |