@onozaty/growi-uploader 1.7.2 → 1.8.0
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/README.ja.md +14 -0
- package/README.md +14 -0
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -58,6 +58,20 @@ npm install -g @onozaty/growi-uploader
|
|
|
58
58
|
growi-uploader <source-dir>
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
+
### Dockerでの使用
|
|
62
|
+
|
|
63
|
+
GitHub Container Registry にビルド済みのDockerイメージを公開しています。Node.js が利用できない環境(CI/CDパイプラインなど)で便利です。
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
docker run --rm \
|
|
67
|
+
-v "$(pwd):/work" \
|
|
68
|
+
ghcr.io/onozaty/growi-uploader:latest ./docs -c ./growi-uploader.json
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
イメージの作業ディレクトリは `/work` です。プロジェクトディレクトリをそこにバインドマウントすることで、`./docs` や `./growi-uploader.json` をそのまま参照できます。
|
|
72
|
+
|
|
73
|
+
コンテナは非rootユーザ (uid 1000) で動作します。マウント元のファイルがそのユーザから読めることを確認してください。対応プラットフォーム: `linux/amd64`, `linux/arm64`。
|
|
74
|
+
|
|
61
75
|
## 使い方
|
|
62
76
|
|
|
63
77
|
### 基本コマンド
|
package/README.md
CHANGED
|
@@ -58,6 +58,20 @@ npm install -g @onozaty/growi-uploader
|
|
|
58
58
|
growi-uploader <source-dir>
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
+
### Using Docker
|
|
62
|
+
|
|
63
|
+
A pre-built Docker image is available on GitHub Container Registry. This is useful in environments without Node.js (e.g., CI/CD pipelines).
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
docker run --rm \
|
|
67
|
+
-v "$(pwd):/work" \
|
|
68
|
+
ghcr.io/onozaty/growi-uploader:latest ./docs -c ./growi-uploader.json
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The image's working directory is `/work`, so bind-mounting your project directory there lets you reference `./docs` and `./growi-uploader.json` directly.
|
|
72
|
+
|
|
73
|
+
The container runs as a non-root user (uid 1000); make sure mounted files are readable by that user. Supported platforms: `linux/amd64`, `linux/arm64`.
|
|
74
|
+
|
|
61
75
|
## Usage
|
|
62
76
|
|
|
63
77
|
### Basic Command
|
package/dist/index.mjs
CHANGED