Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sandbox): build sandbox docker-compose file without error #2008

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41,505 changes: 28,339 additions & 13,166 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/*"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export class WinstonConsoleLogger extends WinstonLoggerBase {
format.timestamp(),
format.printf(
(log: LogEntry) =>
`[${log.timestamp}] ${log.level} :: ${log.context ?? '-'} :: ${log.key} -> [${log.statusCode ?? '-'}] ${log.message}`,
`[${log.timestamp}] ${log.level} :: ${log.context ?? '-'} :: ${
log.key
} -> [${log.statusCode ?? '-'}] ${log.message}`,
),
);

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
172 changes: 86 additions & 86 deletions sandbox/audit-ms-example/package.json
Original file line number Diff line number Diff line change
@@ -1,87 +1,87 @@
{
"name": "@sourceloop/audit-ms-example",
"version": "0.7.12",
"description": "An audit microservice example",
"keywords": [
"loopback-application",
"loopback"
],
"private": true,
"main": "dist/index.js",
"types": "dist/index.d.ts",
"engines": {
"node": "18 || 20"
},
"scripts": {
"build": "npm run clean && lb-tsc",
"build:watch": "lb-tsc --watch",
"lint": "npm run eslint && npm run prettier:check",
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
"prettier:cli": "prettier \"**/*.ts\" \"**/*.js\"",
"prettier:check": "npm run prettier:cli -- -l",
"prettier:fix": "npm run prettier:cli -- --write",
"eslint": "eslint --report-unused-disable-directives .",
"eslint:fix": "npm run eslint -- --fix",
"pretest": "npm run rebuild",
"test": "echo 'No Tests'",
"test:dev": "lb-mocha --allow-console-logs dist/__tests__/**/*.js",
"docker:build": "docker build -t audit-example .",
"docker:run": "docker run -p 3000:3000 -d audit-example",
"premigrate": "npm run build",
"migrate": "node migration.js",
"preopenapi-spec": "npm run build",
"openapi-spec": "node ./dist/openapi-spec",
"rebuild": "npm run clean && npm run build",
"prestart": "npm run rebuild",
"start": "node -r source-map-support/register .",
"clean": "lb-clean dist *.tsbuildinfo .eslintcache",
"db:migrate": "./node_modules/db-migrate/bin/db-migrate up --config './migrations/database.json'",
"db:migrate:down": "./node_modules/db-migrate/bin/db-migrate down --config './migrations/database.json'",
"db:migrate:reset": "./node_modules/db-migrate/bin/db-migrate reset --config './migrations/database.json'"
},
"repository": {
"type": "git",
"url": ""
},
"author": "Akshat Dubey <[email protected]>",
"license": "MIT",
"files": [
"README.md",
"dist",
"src",
"!*/__tests__"
],
"dependencies": {
"@loopback/boot": "^6.1.5",
"@loopback/context": "^6.1.5",
"@loopback/core": "^5.1.5",
"@loopback/repository": "^6.1.5",
"@loopback/rest": "^13.1.5",
"@loopback/rest-explorer": "^6.1.5",
"@loopback/service-proxy": "^6.1.5",
"@sourceloop/audit-log": "^5.3.1",
"@sourceloop/audit-service": "^12.0.0",
"@sourceloop/core": "^13.0.0",
"ajv": "^8.11.0",
"ajv-errors": "^3.0.0",
"db-migrate": "^1.0.0-beta.21",
"db-migrate-pg": "^1.3.0",
"dotenv": "^16.0.3",
"dotenv-extended": "^2.9.0",
"loopback-connector-postgresql": "^7.0.2",
"loopback4-authentication": "^11.0.2",
"loopback4-authorization": "^6.2.1",
"loopback4-soft-delete": "^9.1.1",
"prom-client": "^14.0.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@loopback/build": "^10.1.5",
"@loopback/eslint-config": "^14.0.4",
"@loopback/testlab": "^6.1.5",
"@types/node": "^18.11.9",
"eslint": "^8.44.0",
"source-map-support": "^0.5.21",
"typescript": "~4.9.5"
}
}
"name": "@sourceloop/audit-ms-example",
"version": "0.7.12",
"description": "An audit microservice example",
"keywords": [
"loopback-application",
"loopback"
],
"private": true,
"main": "dist/index.js",
"types": "dist/index.d.ts",
"engines": {
"node": "18 || 20"
},
"scripts": {
"build": "npm run clean && lb-tsc",
"build:watch": "lb-tsc --watch",
"lint": "npm run eslint && npm run prettier:check",
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
"prettier:cli": "prettier \"**/*.ts\" \"**/*.js\"",
"prettier:check": "npm run prettier:cli -- -l",
"prettier:fix": "npm run prettier:cli -- --write",
"eslint": "eslint --report-unused-disable-directives .",
"eslint:fix": "npm run eslint -- --fix",
"pretest": "npm run rebuild",
"test": "echo 'No Tests'",
"test:dev": "lb-mocha --allow-console-logs dist/__tests__/**/*.js",
"docker:build": "docker build -t audit-example .",
"docker:run": "docker run -p 3000:3000 -d audit-example",
"premigrate": "npm run build",
"migrate": "node migration.js",
"preopenapi-spec": "npm run build",
"openapi-spec": "node ./dist/openapi-spec",
"rebuild": "npm run clean && npm run build",
"prestart": "npm run rebuild",
"start": "node -r source-map-support/register .",
"clean": "lb-clean dist *.tsbuildinfo .eslintcache",
"db:migrate": "./node_modules/db-migrate/bin/db-migrate up --config './migrations/database.json'",
"db:migrate:down": "./node_modules/db-migrate/bin/db-migrate down --config './migrations/database.json'",
"db:migrate:reset": "./node_modules/db-migrate/bin/db-migrate reset --config './migrations/database.json'"
},
"repository": {
"type": "git",
"url": ""
},
"author": "Akshat Dubey <[email protected]>",
"license": "MIT",
"files": [
"README.md",
"dist",
"src",
"!*/__tests__"
],
"dependencies": {
"@loopback/boot": "^7.0.0",
"@loopback/context": "^7.0.0",
"@loopback/core": "^6.0.0",
"@loopback/repository": "^7.0.0",
"@loopback/rest": "^14.0.0",
"@loopback/rest-explorer": "^7.0.0",
"@loopback/service-proxy": "^7.0.0",
"@sourceloop/audit-log": "^7.0.0",
"@sourceloop/audit-service": "^12.0.0",
"@sourceloop/core": "^13.0.0",
"ajv": "^8.11.0",
"ajv-errors": "^3.0.0",
"db-migrate": "^1.0.0-beta.21",
"db-migrate-pg": "^1.3.0",
"dotenv": "^16.0.3",
"dotenv-extended": "^2.9.0",
"loopback-connector-postgresql": "^7.0.4",
"loopback4-authentication": "^12.0.0",
"loopback4-authorization": "^7.0.0",
"loopback4-soft-delete": "^10.0.0",
"prom-client": "^14.0.1",
"tslib": "^2.6.2"
},
"devDependencies": {
"@loopback/build": "^11.0.0",
"@loopback/eslint-config": "^15.0.0",
"@loopback/testlab": "^7.0.0",
"@types/node": "^18.11.9",
"eslint": "^8.44.0",
"source-map-support": "^0.5.21",
"typescript": "~4.9.5"
}
}
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/auth-ms-basic-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@
"lodash": "^4.17.21"
}
}
}
}
2 changes: 1 addition & 1 deletion sandbox/auth-multitenant-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@
"lodash": "^4.17.21"
}
}
}
}
2 changes: 1 addition & 1 deletion sandbox/cache-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-slim
FROM node:18-alpine

# Set to a non-root built-in user `node`
USER node
Expand Down
160 changes: 80 additions & 80 deletions sandbox/cache-example/package.json
Original file line number Diff line number Diff line change
@@ -1,81 +1,81 @@
{
"name": "@sourceloop/cache-example",
"version": "0.4.11",
"description": "cache example",
"keywords": [
"loopback-application",
"loopback"
],
"private": true,
"main": "dist/index.js",
"types": "dist/index.d.ts",
"engines": {
"node": "18 || 20"
},
"scripts": {
"build": "lb-tsc",
"build:watch": "lb-tsc --watch",
"lint": "npm run eslint && npm run prettier:check",
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
"prettier:cli": "prettier \"**/*.ts\" \"**/*.js\"",
"prettier:check": "npm run prettier:cli -- -l",
"prettier:fix": "npm run prettier:cli -- --write",
"eslint": "eslint --report-unused-disable-directives .",
"eslint:fix": "npm run eslint -- --fix",
"pretest": "npm run rebuild",
"test": "echo 'No Tests'",
"posttest": "npm run lint",
"test:dev": "lb-mocha --allow-console-logs dist/__tests__/**/*.js && npm run posttest",
"docker:build": "docker build -t @sourceloop/cache-example .",
"docker:run": "docker run -p 3000:3000 -d @sourceloop/cache-example",
"premigrate": "npm run build",
"migrate": "node ./dist/migrate",
"preopenapi-spec": "npm run build",
"openapi-spec": "node ./dist/openapi-spec",
"prestart": "npm run rebuild",
"start": "node -r source-map-support/register .",
"clean": "lb-clean dist *.tsbuildinfo .eslintcache",
"rebuild": "npm run clean && npm run build",
"db:migrate": "./node_modules/db-migrate/bin/db-migrate up --config './migrations/database.json'",
"db:migrate:down": "./node_modules/db-migrate/bin/db-migrate down --config './migrations/database.json'",
"db:migrate:reset": "./node_modules/db-migrate/bin/db-migrate reset --config './migrations/database.json'"
},
"repository": {
"type": "git",
"url": ""
},
"author": "Sourcefuse",
"license": "MIT",
"files": [
"README.md",
"dist",
"src",
"!*/__tests__"
],
"dependencies": {
"@loopback/boot": "^6.1.5",
"@loopback/core": "^5.1.5",
"@loopback/repository": "^6.1.5",
"@loopback/rest": "^13.1.5",
"@loopback/rest-explorer": "^6.1.5",
"@loopback/service-proxy": "^6.1.5",
"@sourceloop/cache": "^0.8.0",
"@sourceloop/core": "^13.0.0",
"db-migrate": "^1.0.0-beta.21",
"db-migrate-pg": "^1.3.0",
"dotenv": "^16.0.3",
"dotenv-extended": "^2.9.0",
"loopback-connector-kv-redis": "^4.0.0",
"loopback-connector-postgresql": "^7.0.2",
"tslib": "^2.6.2"
},
"devDependencies": {
"@loopback/build": "^10.1.5",
"@loopback/eslint-config": "^14.0.4",
"@loopback/testlab": "^6.1.5",
"@types/node": "^18.11.9",
"eslint": "^8.44.0",
"source-map-support": "^0.5.21",
"typescript": "~4.9.5"
}
}
"name": "@sourceloop/cache-example",
"version": "0.4.11",
"description": "cache example",
"keywords": [
"loopback-application",
"loopback"
],
"private": true,
"main": "dist/index.js",
"types": "dist/index.d.ts",
"engines": {
"node": "18 || 20"
},
"scripts": {
"build": "lb-tsc",
"build:watch": "lb-tsc --watch",
"lint": "npm run eslint && npm run prettier:check",
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
"prettier:cli": "prettier \"**/*.ts\" \"**/*.js\"",
"prettier:check": "npm run prettier:cli -- -l",
"prettier:fix": "npm run prettier:cli -- --write",
"eslint": "eslint --report-unused-disable-directives .",
"eslint:fix": "npm run eslint -- --fix",
"pretest": "npm run rebuild",
"test": "echo 'No Tests'",
"posttest": "npm run lint",
"test:dev": "lb-mocha --allow-console-logs dist/__tests__/**/*.js && npm run posttest",
"docker:build": "docker build -t @sourceloop/cache-example .",
"docker:run": "docker run -p 3000:3000 -d @sourceloop/cache-example",
"premigrate": "npm run build",
"migrate": "node ./dist/migrate",
"preopenapi-spec": "npm run build",
"openapi-spec": "node ./dist/openapi-spec",
"prestart": "npm run rebuild",
"start": "node -r source-map-support/register .",
"clean": "lb-clean dist *.tsbuildinfo .eslintcache",
"rebuild": "npm run clean && npm run build",
"db:migrate": "./node_modules/db-migrate/bin/db-migrate up --config './migrations/database.json'",
"db:migrate:down": "./node_modules/db-migrate/bin/db-migrate down --config './migrations/database.json'",
"db:migrate:reset": "./node_modules/db-migrate/bin/db-migrate reset --config './migrations/database.json'"
},
"repository": {
"type": "git",
"url": ""
},
"author": "Sourcefuse",
"license": "MIT",
"files": [
"README.md",
"dist",
"src",
"!*/__tests__"
],
"dependencies": {
"@loopback/boot": "^7.0.0",
"@loopback/core": "^6.0.0",
"@loopback/repository": "^7.0.0",
"@loopback/rest": "^14.0.0",
"@loopback/rest-explorer": "^7.0.0",
"@loopback/service-proxy": "^7.0.0",
"@sourceloop/cache": "^0.8.0",
"@sourceloop/core": "^13.0.0",
"db-migrate": "^1.0.0-beta.21",
"db-migrate-pg": "^1.3.0",
"dotenv": "^16.0.3",
"dotenv-extended": "^2.9.0",
"loopback-connector-kv-redis": "^4.0.0",
"loopback-connector-postgresql": "^7.0.4",
"tslib": "^2.6.2"
},
"devDependencies": {
"@loopback/build": "^11.0.0",
"@loopback/eslint-config": "^15.0.0",
"@loopback/testlab": "^7.0.0",
"@types/node": "^18.11.9",
"eslint": "^8.44.0",
"source-map-support": "^0.5.21",
"typescript": "~4.9.5"
}
}
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
Loading