Skip to content

Commit fef0806

Browse files
committed
UPD: move software templates
1 parent e3555cc commit fef0806

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ COPY .yarnrc.yml ./
1313
COPY packages packages
1414

1515
# Comment this out if you don't have any internal plugins
16-
COPY plugins plugins
16+
# COPY plugins plugins
1717

1818
RUN find packages \! -name "package.json" -mindepth 2 -maxdepth 2 -exec rm -rf {} \+
1919

@@ -55,9 +55,9 @@ RUN --mount=type=cache,target=/home/node/.cache/yarn,sharing=locked,uid=1000,gid
5555

5656
COPY --chown=node:node . .
5757

58-
#RUN ls
58+
# RUN ls
5959

60-
#RUN ls /app
60+
# RUN ls /app
6161

6262
RUN yarn tsc
6363
RUN yarn --cwd packages/backend build
@@ -117,13 +117,14 @@ ARG APP_ENV
117117

118118

119119
# Copy any other files that we need at runtime, to understand how the configs work refer to the README.md
120-
COPY --chown=node:node app-config*.yaml ./
121-
# COPY --chown=node:node app-config.docker.yaml ./app-config.docker.yaml
122-
# COPY --chown=node:node app-config.${APP_ENV}.yaml ./app-config.env.yaml
120+
COPY --chown=node:node app-config.yaml ./
121+
COPY --chown=node:node app-config.docker.yaml ./app-config.docker.yaml
122+
COPY --chown=node:node app-config.${APP_ENV}.yaml ./app-config.env.yaml
123123

124124
# This will include the examples, if you don't need these simply remove this line
125125
COPY --chown=node:node examples ./examples
126126

127+
127128
# This switches many Node.js dependencies to production mode. Important APP_ENV and NODE_ENV serve two different purposes
128129
ENV NODE_ENV production
129130

app-config.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ techdocs:
4141
publisher:
4242
type: 'local' # Alternatives - 'googleGcs' or 'awsS3'. Read documentation for using alternatives.
4343

44-
##scaffolder:
44+
# scaffolder:
45+
4546

4647
catalog:
4748
import:
@@ -50,11 +51,15 @@ catalog:
5051
rules:
5152
- allow: [Component, System, API, User, Group, Resource, Location, Domain]
5253
locations:
53-
5454
- type: file
55-
target: ../../packages/backend/src/templates/initiate-deployment.yaml
55+
target: ./examples/template/initiate-deployment.yaml
56+
rules:
57+
- allow: [Template]
58+
- type: file
59+
target: ./examples/template/template.yaml
5660
rules:
5761
- allow: [Template]
62+
5863

5964
auth:
6065
environment: development

packages/backend/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const customGithubAuth = createBackendModule({
6161

6262
backend.add(customGithubAuth);
6363

64-
64+
// Custom Google Auth Provider
6565
export const customGoogleAuth = createBackendModule({
6666
pluginId: 'auth',
6767
moduleId: 'googleProvider',

0 commit comments

Comments
 (0)