fix(core): update

This commit is contained in:
Philipp Kunz 2024-05-09 00:11:13 +02:00
parent 6aa7d1ecc9
commit 2475aeb684
6 changed files with 786 additions and 1286 deletions

View File

@ -39,7 +39,7 @@ WORKDIR /app
COPY --from=node3 /app /app COPY --from=node3 /app /app
### Healthchecks ### Healthchecks
RUN pnpm install -g @servezone/healthy RUN pnpm install -g @serve.zone/healthy
HEALTHCHECK --interval=30s --timeout=30s --start-period=30s --retries=3 CMD [ "healthy" ] HEALTHCHECK --interval=30s --timeout=30s --start-period=30s --retries=3 CMD [ "healthy" ]
EXPOSE 80 EXPOSE 80

View File

@ -1,8 +1,8 @@
{ {
"npmci": { "npmci": {
"npmGlobalTools": [], "npmGlobalTools": [],
"npmAccessLevel": "private", "npmAccessLevel": "public",
"npmRegistryUrl": "verdaccio.lossless.one", "npmRegistryUrl": "registry.npmjs.org",
"dockerRegistryRepoMap": { "dockerRegistryRepoMap": {
"registry.gitlab.com": "losslessone/services/servezone/coreflow" "registry.gitlab.com": "losslessone/services/servezone/coreflow"
}, },
@ -17,7 +17,7 @@
"gitscope": "losslessone/services/servezone", "gitscope": "losslessone/services/servezone",
"gitrepo": "coreflow", "gitrepo": "coreflow",
"description": "A comprehensive solution for managing Docker and scaling applications across servers, handling tasks from service provisioning to network traffic management.", "description": "A comprehensive solution for managing Docker and scaling applications across servers, handling tasks from service provisioning to network traffic management.",
"npmPackagename": "@servezone/coreflow", "npmPackagename": "@serve.zone/coreflow",
"license": "UNLICENSED", "license": "UNLICENSED",
"keywords": [ "keywords": [
"Docker", "Docker",

View File

@ -1,5 +1,5 @@
{ {
"name": "@servezone_private/coreflow", "name": "@serve.zone/coreflow",
"version": "1.0.131", "version": "1.0.131",
"description": "A comprehensive solution for managing Docker and scaling applications across servers, handling tasks from service provisioning to network traffic management.", "description": "A comprehensive solution for managing Docker and scaling applications across servers, handling tasks from service provisioning to network traffic management.",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
@ -48,33 +48,33 @@
"devDependencies": { "devDependencies": {
"@git.zone/tsbuild": "^2.1.66", "@git.zone/tsbuild": "^2.1.66",
"@git.zone/tsrun": "^1.2.46", "@git.zone/tsrun": "^1.2.46",
"@git.zone/tstest": "^1.0.77", "@git.zone/tstest": "^1.0.90",
"@git.zone/tswatch": "^2.0.7", "@git.zone/tswatch": "^2.0.7",
"@push.rocks/tapbundle": "^5.0.8" "@push.rocks/tapbundle": "^5.0.23"
}, },
"dependencies": { "dependencies": {
"@api.global/typedrequest": "^3.0.4", "@api.global/typedrequest": "^3.0.23",
"@api.global/typedsocket": "^3.0.0", "@api.global/typedsocket": "^3.0.1",
"@apiclient.xyz/docker": "^1.0.105", "@apiclient.xyz/docker": "^1.0.112",
"@push.rocks/early": "^4.0.3", "@push.rocks/early": "^4.0.3",
"@push.rocks/lik": "^6.0.2", "@push.rocks/lik": "^6.0.15",
"@push.rocks/projectinfo": "^5.0.1", "@push.rocks/projectinfo": "^5.0.1",
"@push.rocks/qenv": "^6.0.4", "@push.rocks/qenv": "^6.0.5",
"@push.rocks/smartcli": "^4.0.6", "@push.rocks/smartcli": "^4.0.10",
"@push.rocks/smartdelay": "^3.0.1", "@push.rocks/smartdelay": "^3.0.1",
"@push.rocks/smartlog": "^3.0.2", "@push.rocks/smartlog": "^3.0.2",
"@push.rocks/smartnetwork": "3.0.2", "@push.rocks/smartnetwork": "3.0.2",
"@push.rocks/smartpath": "^5.0.5", "@push.rocks/smartpath": "^5.0.18",
"@push.rocks/smartpromise": "^4.0.2", "@push.rocks/smartpromise": "^4.0.2",
"@push.rocks/smartrequest": "^2.0.15", "@push.rocks/smartrequest": "^2.0.22",
"@push.rocks/smartrx": "^3.0.2", "@push.rocks/smartrx": "^3.0.2",
"@push.rocks/smartstate": "^2.0.6", "@push.rocks/smartstate": "^2.0.6",
"@push.rocks/smartstring": "^4.0.7", "@push.rocks/smartstring": "^4.0.15",
"@push.rocks/taskbuffer": "^3.0.10", "@push.rocks/taskbuffer": "^3.0.10",
"@serve.zone/api": "^2.0.27", "@serve.zone/api": "^2.0.28",
"@serve.zone/interfaces": "^1.0.13", "@serve.zone/interfaces": "^1.0.51",
"@tsclass/tsclass": "^4.0.46", "@tsclass/tsclass": "^4.0.54",
"@types/node": "20.11.16" "@types/node": "20.12.11"
}, },
"private": true, "private": true,
"files": [ "files": [

2018
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
# @servezone_private/coreflow # @serve.zone/coreflow
A comprehensive solution for managing Docker and scaling applications across servers, handling tasks from service provisioning to network traffic management. A comprehensive solution for managing Docker and scaling applications across servers, handling tasks from service provisioning to network traffic management.
## Install ## Install
To install @servezone_private/coreflow, you can use npm with the following command: To install @serve.zone/coreflow, you can use npm with the following command:
```sh ```sh
npm install @servezone_private/coreflow --save npm install @serve.zone/coreflow --save
``` ```
Given that this is a private package, make sure you have access to the required npm registry and that you are authenticated properly. Given that this is a private package, make sure you have access to the required npm registry and that you are authenticated properly.
@ -18,7 +18,7 @@ Before you start, ensure you have Docker and Docker Swarm configured in your env
To get started, you need to import and initialize coreflow within your application. Here's an example of how to do this in a TypeScript module: To get started, you need to import and initialize coreflow within your application. Here's an example of how to do this in a TypeScript module:
```typescript ```typescript
import { Coreflow } from '@servezone_private/coreflow'; import { Coreflow } from '@serve.zone/coreflow';
// Initialize Coreflow // Initialize Coreflow
const coreflowInstance = new Coreflow(); const coreflowInstance = new Coreflow();
@ -70,7 +70,7 @@ coreflowInstance.applyScalingPolicy(scalingPolicy).then(() => {
One of Coreflow's key features is its ability to manage network traffic, ensuring that it is efficiently distributed among various services based on load, priority, and other custom rules. One of Coreflow's key features is its ability to manage network traffic, ensuring that it is efficiently distributed among various services based on load, priority, and other custom rules.
```typescript ```typescript
import { TrafficRule } from '@servezone_private/coreflow'; import { TrafficRule } from '@serve.zone/coreflow';
const rule: TrafficRule = { const rule: TrafficRule = {
serviceName: "webService", serviceName: "webService",

View File

@ -2,7 +2,7 @@
* autocreated commitinfo by @pushrocks/commitinfo * autocreated commitinfo by @pushrocks/commitinfo
*/ */
export const commitinfo = { export const commitinfo = {
name: '@servezone_private/coreflow', name: '@serve.zone/coreflow',
version: '1.0.131', version: '1.0.132',
description: 'A comprehensive solution for managing Docker and scaling applications across servers, handling tasks from service provisioning to network traffic management.' description: 'A comprehensive solution for managing Docker and scaling applications across servers, handling tasks from service provisioning to network traffic management.'
} }