@git.zone/tsdocker 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.dockerfile.d.ts +85 -0
- package/dist_ts/classes.dockerfile.js +366 -0
- package/dist_ts/classes.dockerregistry.d.ts +29 -0
- package/dist_ts/classes.dockerregistry.js +83 -0
- package/dist_ts/classes.registrystorage.d.ts +35 -0
- package/dist_ts/classes.registrystorage.js +76 -0
- package/dist_ts/classes.tsdockermanager.d.ts +53 -0
- package/dist_ts/classes.tsdockermanager.js +222 -0
- package/dist_ts/interfaces/index.d.ts +68 -0
- package/dist_ts/interfaces/index.js +2 -0
- package/dist_ts/tsdocker.cli.js +115 -8
- package/dist_ts/tsdocker.config.d.ts +3 -8
- package/dist_ts/tsdocker.config.js +10 -2
- package/dist_ts/tsdocker.plugins.d.ts +2 -1
- package/dist_ts/tsdocker.plugins.js +3 -2
- package/package.json +2 -2
- package/readme.hints.md +95 -26
- package/readme.md +323 -182
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.dockerfile.ts +462 -0
- package/ts/classes.dockerregistry.ts +91 -0
- package/ts/classes.registrystorage.ts +83 -0
- package/ts/classes.tsdockermanager.ts +254 -0
- package/ts/interfaces/index.ts +70 -0
- package/ts/tsdocker.cli.ts +123 -10
- package/ts/tsdocker.config.ts +14 -7
- package/ts/tsdocker.plugins.ts +2 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as lik from '@push.rocks/lik';
|
|
1
2
|
import * as npmextra from '@push.rocks/npmextra';
|
|
2
3
|
import * as path from 'path';
|
|
3
4
|
import * as projectinfo from '@push.rocks/projectinfo';
|
|
@@ -12,4 +13,4 @@ import * as smartopen from '@push.rocks/smartopen';
|
|
|
12
13
|
import * as smartshell from '@push.rocks/smartshell';
|
|
13
14
|
import * as smartstring from '@push.rocks/smartstring';
|
|
14
15
|
export declare const smartfs: SmartFs;
|
|
15
|
-
export { npmextra, path, projectinfo, smartpromise, qenv, smartcli, smartlog, smartlogDestinationLocal, smartlogSouceOra, smartopen, smartshell, smartstring };
|
|
16
|
+
export { lik, npmextra, path, projectinfo, smartpromise, qenv, smartcli, smartlog, smartlogDestinationLocal, smartlogSouceOra, smartopen, smartshell, smartstring };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// push.rocks scope
|
|
2
|
+
import * as lik from '@push.rocks/lik';
|
|
2
3
|
import * as npmextra from '@push.rocks/npmextra';
|
|
3
4
|
import * as path from 'path';
|
|
4
5
|
import * as projectinfo from '@push.rocks/projectinfo';
|
|
@@ -14,5 +15,5 @@ import * as smartshell from '@push.rocks/smartshell';
|
|
|
14
15
|
import * as smartstring from '@push.rocks/smartstring';
|
|
15
16
|
// Create smartfs instance
|
|
16
17
|
export const smartfs = new SmartFs(new SmartFsProviderNode());
|
|
17
|
-
export { npmextra, path, projectinfo, smartpromise, qenv, smartcli, smartlog, smartlogDestinationLocal, smartlogSouceOra, smartopen, smartshell, smartstring };
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
export { lik, npmextra, path, projectinfo, smartpromise, qenv, smartcli, smartlog, smartlogDestinationLocal, smartlogSouceOra, smartopen, smartshell, smartstring };
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHNkb2NrZXIucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3RzZG9ja2VyLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUJBQW1CO0FBQ25CLE9BQU8sS0FBSyxHQUFHLE1BQU0saUJBQWlCLENBQUM7QUFDdkMsT0FBTyxLQUFLLFFBQVEsTUFBTSxzQkFBc0IsQ0FBQztBQUNqRCxPQUFPLEtBQUssSUFBSSxNQUFNLE1BQU0sQ0FBQztBQUM3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
|
"description": "develop npm modules cross platform with docker",
|
|
6
6
|
"main": "dist_ts/index.js",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"build": "(tsbuild)",
|
|
14
14
|
"testIntegration": "(npm run clean && npm run setupCheck && npm run testStandard)",
|
|
15
15
|
"testStandard": "(cd test/ && tsx ../ts/index.ts)",
|
|
16
|
-
"testSpeed": "(cd test/ && tsx ../ts/index.ts speedtest)",
|
|
17
16
|
"testClean": "(cd test/ && tsx ../ts/index.ts clean --all)",
|
|
18
17
|
"testVscode": "(cd test/ && tsx ../ts/index.ts vscode)",
|
|
19
18
|
"clean": "(rm -rf test/)",
|
|
@@ -41,6 +40,7 @@
|
|
|
41
40
|
"@types/node": "^25.0.9"
|
|
42
41
|
},
|
|
43
42
|
"dependencies": {
|
|
43
|
+
"@push.rocks/lik": "^6.2.2",
|
|
44
44
|
"@push.rocks/npmextra": "^5.3.3",
|
|
45
45
|
"@push.rocks/projectinfo": "^5.0.2",
|
|
46
46
|
"@push.rocks/qenv": "^6.1.3",
|
package/readme.hints.md
CHANGED
|
@@ -2,39 +2,108 @@
|
|
|
2
2
|
|
|
3
3
|
## Module Purpose
|
|
4
4
|
|
|
5
|
-
tsdocker is a
|
|
5
|
+
tsdocker is a comprehensive Docker development and building tool. It provides:
|
|
6
|
+
- Testing npm modules in clean Docker environments (legacy feature)
|
|
7
|
+
- Building Dockerfiles with dependency ordering
|
|
8
|
+
- Multi-registry push/pull support
|
|
9
|
+
- Multi-architecture builds (amd64/arm64)
|
|
6
10
|
|
|
7
|
-
##
|
|
11
|
+
## New CLI Commands (2026-01-19)
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
- Removed tslint and tslint-config-prettier (no longer needed)
|
|
13
|
+
| Command | Description |
|
|
14
|
+
|---------|-------------|
|
|
15
|
+
| `tsdocker` | Run tests in container (legacy default behavior) |
|
|
16
|
+
| `tsdocker build` | Build all Dockerfiles with dependency ordering |
|
|
17
|
+
| `tsdocker push [registry]` | Push images to configured registries |
|
|
18
|
+
| `tsdocker pull <registry>` | Pull images from registry |
|
|
19
|
+
| `tsdocker test` | Run container tests (test scripts) |
|
|
20
|
+
| `tsdocker login` | Login to configured registries |
|
|
21
|
+
| `tsdocker list` | List discovered Dockerfiles and dependencies |
|
|
22
|
+
| `tsdocker clean --all` | Clean up Docker environment |
|
|
23
|
+
| `tsdocker vscode` | Start VS Code in Docker |
|
|
21
24
|
|
|
22
|
-
##
|
|
25
|
+
## Configuration
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
Configure in `package.json` under `@git.zone/tsdocker`:
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"@git.zone/tsdocker": {
|
|
32
|
+
"registries": ["registry.gitlab.com", "docker.io"],
|
|
33
|
+
"registryRepoMap": {
|
|
34
|
+
"registry.gitlab.com": "host.today/ht-docker-node"
|
|
35
|
+
},
|
|
36
|
+
"buildArgEnvMap": {
|
|
37
|
+
"NODE_VERSION": "NODE_VERSION"
|
|
38
|
+
},
|
|
39
|
+
"platforms": ["linux/amd64", "linux/arm64"],
|
|
40
|
+
"push": false,
|
|
41
|
+
"testDir": "./test"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
30
45
|
|
|
31
|
-
|
|
46
|
+
### Configuration Options
|
|
32
47
|
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
48
|
+
- `baseImage`: Base Docker image for testing (legacy)
|
|
49
|
+
- `command`: Command to run in container (legacy)
|
|
50
|
+
- `dockerSock`: Mount Docker socket (legacy)
|
|
51
|
+
- `registries`: Array of registry URLs to push to
|
|
52
|
+
- `registryRepoMap`: Map registry URLs to different repo paths
|
|
53
|
+
- `buildArgEnvMap`: Map Docker build ARGs to environment variables
|
|
54
|
+
- `platforms`: Target architectures for buildx
|
|
55
|
+
- `push`: Auto-push after build
|
|
56
|
+
- `testDir`: Directory containing test scripts
|
|
57
|
+
|
|
58
|
+
## Registry Authentication
|
|
59
|
+
|
|
60
|
+
Set environment variables for registry login:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Pipe-delimited format (numbered 1-10)
|
|
64
|
+
export DOCKER_REGISTRY_1="registry.gitlab.com|username|password"
|
|
65
|
+
export DOCKER_REGISTRY_2="docker.io|username|password"
|
|
66
|
+
|
|
67
|
+
# Or individual registry format
|
|
68
|
+
export DOCKER_REGISTRY_URL="registry.gitlab.com"
|
|
69
|
+
export DOCKER_REGISTRY_USER="username"
|
|
70
|
+
export DOCKER_REGISTRY_PASSWORD="password"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## File Structure
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
ts/
|
|
77
|
+
├── index.ts (entry point)
|
|
78
|
+
├── tsdocker.cli.ts (CLI commands)
|
|
79
|
+
├── tsdocker.config.ts (configuration)
|
|
80
|
+
├── tsdocker.plugins.ts (plugin imports)
|
|
81
|
+
├── tsdocker.docker.ts (legacy test runner)
|
|
82
|
+
├── tsdocker.snippets.ts (Dockerfile generation)
|
|
83
|
+
├── classes.dockerfile.ts (Dockerfile management)
|
|
84
|
+
├── classes.dockerregistry.ts (registry authentication)
|
|
85
|
+
├── classes.registrystorage.ts (registry storage)
|
|
86
|
+
├── classes.tsdockermanager.ts (orchestrator)
|
|
87
|
+
└── interfaces/
|
|
88
|
+
└── index.ts (type definitions)
|
|
89
|
+
```
|
|
37
90
|
|
|
38
91
|
## Dependencies
|
|
39
92
|
|
|
40
|
-
|
|
93
|
+
- `@push.rocks/lik`: Object mapping utilities
|
|
94
|
+
- `@push.rocks/smartfs`: Filesystem operations
|
|
95
|
+
- `@push.rocks/smartshell`: Shell command execution
|
|
96
|
+
- `@push.rocks/smartcli`: CLI framework
|
|
97
|
+
- `@push.rocks/projectinfo`: Project metadata
|
|
98
|
+
|
|
99
|
+
## Build Status
|
|
100
|
+
|
|
101
|
+
- Build: ✅ Passes
|
|
102
|
+
- Legacy test functionality preserved
|
|
103
|
+
- New Docker build functionality added
|
|
104
|
+
|
|
105
|
+
## Previous Upgrades (2025-11-22)
|
|
106
|
+
|
|
107
|
+
- Updated all @git.zone/_ dependencies to @git.zone/_ scope
|
|
108
|
+
- Updated all @pushrocks/_ dependencies to @push.rocks/_ scope
|
|
109
|
+
- Migrated from smartfile v8 to smartfs v1.1.0
|