Skip to content

Commit

Permalink
build sandbox docker-compose file without error
Browse files Browse the repository at this point in the history
  • Loading branch information
arpit1503khanna committed Feb 28, 2024
1 parent 2bcadcf commit 956a3e5
Show file tree
Hide file tree
Showing 31 changed files with 9,947 additions and 3,151 deletions.
11,831 changes: 9,030 additions & 2,801 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"packages/cache",
"packages/feature-toggle",
"packages/custom-sf-changelog/",
"services/*"
"services/*",
"sandbox/*"
]
}
2 changes: 1 addition & 1 deletion packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ npm install -g @sourceloop/cli
$ sl COMMAND
running command...
$ sl (-v|--version|version)
@sourceloop/cli/7.2.1 linux-x64 node-v18.19.0
@sourceloop/cli/7.2.1 darwin-arm64 node-v18.17.0
$ sl --help [COMMAND]
USAGE
$ sl COMMAND
Expand Down
2 changes: 1 addition & 1 deletion sandbox/audit-ms-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
2 changes: 1 addition & 1 deletion sandbox/auth-ms-basic-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
2 changes: 1 addition & 1 deletion sandbox/chat-notification-pubnub-example/facade/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"@loopback/service-proxy": "^6.1.5",
"@sourceloop/core": "^11.0.3",
"@sourceloop/notification-service": "^11.0.5",
"aws-sdk": "^2.1565.0",
"db-migrate": "^1.0.0-beta.21",
"db-migrate-pg": "^1.3.0",
"dotenv": "^16.0.3",
Expand All @@ -79,6 +80,7 @@
"@loopback/eslint-config": "^14.0.4",
"@loopback/testlab": "^6.1.5",
"@types/node": "^18.11.9",
"@types/pubnub": "^7.4.2",
"eslint": "^8.44.0",
"source-map-support": "^0.5.21",
"typescript": "~4.9.5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
75 changes: 4 additions & 71 deletions sandbox/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -430,58 +430,6 @@ services:
- audit-ms-migration
restart: on-failure

search-ms-example:
image: ${REGISTRY:-localhost:32000}/search-ms-example
build:
context: ./search-ms-example
dockerfile: Dockerfile
ports:
- '3037:3000'
networks:
- sandbox
environment: *search-ms-variables
depends_on:
- postgres
- postgres_orchestrator
- search-ms-migration
restart: on-failure

search-ms-migration:
image: ${REGISTRY:-localhost:32000}/search-ms-example
command: sh -c "sleep 60 && npm run db:migrate"
build:
context: ./search-ms-example
dockerfile: Dockerfile
environment: *search-ms-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure

search-client-example:
image: ${REGISTRY:-localhost:32000}/search-client-example
build:
context: ./search-client-example
dockerfile: Dockerfile
ports:
- '4200:4200'
networks:
- sandbox
restart: on-failure

user-onboarding-example:
image: ${REGISTRY:-localhost:32000}/user-onboarding-example
build:
context: ./user-onboarding-example
dockerfile: Dockerfile
ports:
- '4201:4200'
networks:
- sandbox
restart: on-failure

audit-ms-migration:
image: ${REGISTRY:-localhost:32000}/audit-ms-example
command: sh -c "sleep 60 && npm run db:migrate"
Expand Down Expand Up @@ -616,9 +564,9 @@ services:
restart: on-failure

payment-backend-example:
image: ${REGISTRY:-localhost:32000}/payment-example/backend
image: ${REGISTRY:-localhost:32000}/payment-example
build:
context: ./payment-example/backend
context: ./payment-example
dockerfile: Dockerfile
ports:
- '3042:3000'
Expand All @@ -632,9 +580,9 @@ services:
restart: on-failure

payment-backend-migration:
image: ${REGISTRY:-localhost:32000}/payment-example/backend
image: ${REGISTRY:-localhost:32000}/payment-example
build:
context: ./payment-example/backend
context: ./payment-example
dockerfile: Dockerfile
command: sh -c "sleep 60 && npm run db:migrate"
environment: *payment-backend-variables
Expand Down Expand Up @@ -676,21 +624,6 @@ services:
- sandbox
restart: on-failure

user-tenant-example:
image: ${REGISTRY:-localhost:32000}/user-tenant-example
build:
context: ./user-tenant-example
dockerfile: Dockerfile
ports:
- '3043:3000'
networks:
- sandbox
environment: *user-tenant-variables
depends_on:
- postgres
- postgres_orchestrator
restart: on-failure

redis:
image: 'redis:alpine'
ports:
Expand Down
2 changes: 1 addition & 1 deletion sandbox/feature-toggle-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
2 changes: 1 addition & 1 deletion sandbox/in-mail-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
2 changes: 1 addition & 1 deletion sandbox/oauth-example/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ WORKDIR /home/node/app
# where available (npm@5+)
COPY --chown=node package*.json ./

RUN npm ci
RUN npm i

# Bundle app source code
COPY --chown=node . .
Expand Down
4 changes: 2 additions & 2 deletions sandbox/payment-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand All @@ -14,7 +14,7 @@ WORKDIR /home/node/app
# where available (npm@5+)
COPY --chown=node package*.json ./

RUN npm ci
RUN npm i

# Bundle app source code
COPY --chown=node . .
Expand Down
2 changes: 1 addition & 1 deletion sandbox/pubnub-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
2 changes: 1 addition & 1 deletion sandbox/scheduler-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
2 changes: 1 addition & 1 deletion sandbox/search-ms-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
2 changes: 1 addition & 1 deletion sandbox/video-conferencing-ms-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
2 changes: 1 addition & 1 deletion sandbox/workflow-ms-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
7 changes: 3 additions & 4 deletions sandbox/workflow-ms-example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"composite": true
"composite": true,
"experimentalDecorators": true
},
"include": [
"src"
],
"include": ["src"],
"references": []
}
2 changes: 1 addition & 1 deletion services/feature-toggle-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
2 changes: 1 addition & 1 deletion services/payment-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
2 changes: 1 addition & 1 deletion services/payment-service/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.0",
"info": {
"title": "@sourceloop/payment-service",
"version": "10.0.2",
"version": "11.1.3",
"description": "payment microservice.",
"contact": {
"name": "Sourcefuse"
Expand Down
4 changes: 2 additions & 2 deletions services/payment-service/openapi.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "@sourceloop/payment-service v10.0.2"
title: "@sourceloop/payment-service v11.1.3"
language_tabs:
- javascript: JavaScript
- javascript--nodejs: Node.JS
Expand All @@ -16,7 +16,7 @@ headingLevel: 2

<!-- Generator: Widdershins v4.0.1 -->

<h1 id="-sourceloop-payment-service">@sourceloop/payment-service v10.0.2</h1>
<h1 id="-sourceloop-payment-service">@sourceloop/payment-service v11.1.3</h1>

> Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Expand Down
28 changes: 28 additions & 0 deletions services/reporting-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node

# Create app directory (with user `node`)
RUN mkdir -p /home/node/app

WORKDIR /home/node/app

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY --chown=node package*.json ./

RUN npm install

# Bundle app source code
COPY --chown=node . .

RUN npm run build

# Bind to all network interfaces so that it can be mapped to the host OS
ENV HOST=0.0.0.0 PORT=3000

EXPOSE ${PORT}
CMD [ "node", "." ]
2 changes: 1 addition & 1 deletion services/search-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:16-alpine
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
Loading

0 comments on commit 956a3e5

Please sign in to comment.