Skip to content

Commit 12f1c0e

Browse files
committed
feat: add nest dockerfile sample
1 parent e85cf93 commit 12f1c0e

5 files changed

Lines changed: 50 additions & 51 deletions

File tree

CHANGELOG.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,97 +2,97 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5-
## [2.2.0](https://github.com/imagine10255/bear-react-docker/compare/v2.2.0-alpha.0...v2.2.0) (2022-08-03)
5+
## [2.2.0](https://github.com/imagine10255/bear-node-docker/compare/v2.2.0-alpha.0...v2.2.0) (2022-08-03)
66

77

88
### Features
99

10-
* add nest dockerfile sample ([87d804f](https://github.com/imagine10255/bear-react-docker/commit/87d804fb70658aa6d0fdeeef5246c63bb1fc35ce))
10+
* add nest dockerfile sample ([87d804f](https://github.com/imagine10255/bear-node-docker/commit/87d804fb70658aa6d0fdeeef5246c63bb1fc35ce))
1111

12-
## [2.2.0-alpha.0](https://github.com/imagine10255/bear-react-docker/compare/v2.1.1...v2.2.0-alpha.0) (2022-07-13)
12+
## [2.2.0-alpha.0](https://github.com/imagine10255/bear-node-docker/compare/v2.1.1...v2.2.0-alpha.0) (2022-07-13)
1313

1414

1515
### Features
1616

17-
* 新增 build 完之後以詢問方式要不要發布和刪除 ([67f0612](https://github.com/imagine10255/bear-react-docker/commit/67f0612f661636c56658c905e4f026639eebfb2f))
17+
* 新增 build 完之後以詢問方式要不要發布和刪除 ([67f0612](https://github.com/imagine10255/bear-node-docker/commit/67f0612f661636c56658c905e4f026639eebfb2f))
1818

19-
### [2.1.1](https://github.com/imagine10255/bear-react-docker/compare/v2.1.0...v2.1.1) (2022-06-20)
19+
### [2.1.1](https://github.com/imagine10255/bear-node-docker/compare/v2.1.0...v2.1.1) (2022-06-20)
2020

2121

2222
### Features
2323

24-
* modidy path ([2e52ea7](https://github.com/imagine10255/bear-react-docker/commit/2e52ea7d53c8c9254d0a696c6de4aa76b860c4f6))
24+
* modidy path ([2e52ea7](https://github.com/imagine10255/bear-node-docker/commit/2e52ea7d53c8c9254d0a696c6de4aa76b860c4f6))
2525

26-
## [2.1.0](https://github.com/imagine10255/bear-react-docker/compare/v2.1.0-alpha.1...v2.1.0) (2022-06-19)
26+
## [2.1.0](https://github.com/imagine10255/bear-node-docker/compare/v2.1.0-alpha.1...v2.1.0) (2022-06-19)
2727

28-
## [2.1.0-alpha.1](https://github.com/imagine10255/bear-react-docker/compare/v2.1.0-alpha.0...v2.1.0-alpha.1) (2022-06-19)
28+
## [2.1.0-alpha.1](https://github.com/imagine10255/bear-node-docker/compare/v2.1.0-alpha.0...v2.1.0-alpha.1) (2022-06-19)
2929

3030

3131
### Bug Fixes
3232

33-
* fix args command and docs ([37d6e63](https://github.com/imagine10255/bear-react-docker/commit/37d6e63cbf8594c1255c56918cad6ea6348841bd))
33+
* fix args command and docs ([37d6e63](https://github.com/imagine10255/bear-node-docker/commit/37d6e63cbf8594c1255c56918cad6ea6348841bd))
3434

35-
## [2.1.0-alpha.0](https://github.com/imagine10255/bear-react-docker/compare/v2.0.1...v2.1.0-alpha.0) (2022-06-19)
35+
## [2.1.0-alpha.0](https://github.com/imagine10255/bear-node-docker/compare/v2.0.1...v2.1.0-alpha.0) (2022-06-19)
3636

3737

3838
### Features
3939

40-
* add svg command ([3330860](https://github.com/imagine10255/bear-react-docker/commit/33308603f886f0df1a16d4411055ed2e362df724))
40+
* add svg command ([3330860](https://github.com/imagine10255/bear-node-docker/commit/33308603f886f0df1a16d4411055ed2e362df724))
4141

42-
### [2.0.1](https://github.com/imagine10255/bear-react-docker/compare/v1.1.0-alpha.1...v2.0.1) (2022-06-19)
42+
### [2.0.1](https://github.com/imagine10255/bear-node-docker/compare/v1.1.0-alpha.1...v2.0.1) (2022-06-19)
4343

4444

4545
### Features
4646

47-
* 新增 指令改寫 ([c5adf4f](https://github.com/imagine10255/bear-react-docker/commit/c5adf4ffc2eb863d38a582c6ec5fa5968acf8e45))
47+
* 新增 指令改寫 ([c5adf4f](https://github.com/imagine10255/bear-node-docker/commit/c5adf4ffc2eb863d38a582c6ec5fa5968acf8e45))
4848

49-
## [2.0.0](https://github.com/imagine10255/bear-react-docker/compare/v1.1.0-alpha.1...v2.0.0) (2022-06-19)
49+
## [2.0.0](https://github.com/imagine10255/bear-node-docker/compare/v1.1.0-alpha.1...v2.0.0) (2022-06-19)
5050

5151

5252
### Features
5353

54-
* 新增 指令改寫 ([c5adf4f](https://github.com/imagine10255/bear-react-docker/commit/c5adf4ffc2eb863d38a582c6ec5fa5968acf8e45))
54+
* 新增 指令改寫 ([c5adf4f](https://github.com/imagine10255/bear-node-docker/commit/c5adf4ffc2eb863d38a582c6ec5fa5968acf8e45))
5555

56-
## [1.1.0-alpha.1](https://github.com/imagine10255/bear-react-docker/compare/v1.1.0-alpha.0...v1.1.0-alpha.1) (2022-06-19)
56+
## [1.1.0-alpha.1](https://github.com/imagine10255/bear-node-docker/compare/v1.1.0-alpha.0...v1.1.0-alpha.1) (2022-06-19)
5757

58-
## [1.1.0-alpha.0](https://github.com/imagine10255/bear-react-docker/compare/v1.0.4-alpha.3...v1.1.0-alpha.0) (2022-06-18)
58+
## [1.1.0-alpha.0](https://github.com/imagine10255/bear-node-docker/compare/v1.0.4-alpha.3...v1.1.0-alpha.0) (2022-06-18)
5959

6060

6161
### Features
6262

63-
* add args ([f719614](https://github.com/imagine10255/bear-react-docker/commit/f71961411c09b3020b25cf76d87d00a11f09fe7e))
63+
* add args ([f719614](https://github.com/imagine10255/bear-node-docker/commit/f71961411c09b3020b25cf76d87d00a11f09fe7e))
6464

65-
### [1.0.4-alpha.3](https://github.com/imagine10255/bear-react-docker/compare/v1.0.4-alpha.2...v1.0.4-alpha.3) (2022-06-18)
65+
### [1.0.4-alpha.3](https://github.com/imagine10255/bear-node-docker/compare/v1.0.4-alpha.2...v1.0.4-alpha.3) (2022-06-18)
6666

67-
### [1.0.4-alpha.2](https://github.com/imagine10255/bear-react-docker/compare/v1.0.4-alpha.1...v1.0.4-alpha.2) (2022-06-18)
67+
### [1.0.4-alpha.2](https://github.com/imagine10255/bear-node-docker/compare/v1.0.4-alpha.1...v1.0.4-alpha.2) (2022-06-18)
6868

69-
### [1.0.4-alpha.1](https://github.com/imagine10255/bear-react-docker/compare/v1.0.4-alpha.0...v1.0.4-alpha.1) (2022-06-18)
69+
### [1.0.4-alpha.1](https://github.com/imagine10255/bear-node-docker/compare/v1.0.4-alpha.0...v1.0.4-alpha.1) (2022-06-18)
7070

71-
### [1.0.4-alpha.0](https://github.com/imagine10255/bear-react-docker/compare/v1.0.3...v1.0.4-alpha.0) (2022-06-18)
71+
### [1.0.4-alpha.0](https://github.com/imagine10255/bear-node-docker/compare/v1.0.3...v1.0.4-alpha.0) (2022-06-18)
7272

73-
### [1.0.3](https://github.com/imagine10255/bear-react-docker/compare/v0.0.18...v1.0.3) (2022-02-18)
73+
### [1.0.3](https://github.com/imagine10255/bear-node-docker/compare/v0.0.18...v1.0.3) (2022-02-18)
7474

75-
### [1.0.2](https://github.com/imagine10255/bear-react-docker/compare/v0.0.18...v1.0.2) (2022-02-18)
75+
### [1.0.2](https://github.com/imagine10255/bear-node-docker/compare/v0.0.18...v1.0.2) (2022-02-18)
7676

77-
### [1.0.1](https://github.com/imagine10255/bear-react-docker/compare/v0.0.18...v1.0.1) (2022-02-18)
77+
### [1.0.1](https://github.com/imagine10255/bear-node-docker/compare/v0.0.18...v1.0.1) (2022-02-18)
7878

79-
### [0.0.18](https://github.com/imagine10255/bear-react-docker/compare/v2.0.0...v0.0.18) (2022-02-18)
79+
### [0.0.18](https://github.com/imagine10255/bear-node-docker/compare/v2.0.0...v0.0.18) (2022-02-18)
8080

8181

8282
### Bug Fixes
8383

84-
* 修正 package.json script ([d1de109](https://github.com/imagine10255/bear-react-docker/commit/d1de109775796dd0779b7561c7c491529a95a2d3))
84+
* 修正 package.json script ([d1de109](https://github.com/imagine10255/bear-node-docker/commit/d1de109775796dd0779b7561c7c491529a95a2d3))
8585

86-
## [2.0.0](https://github.com/imagine10255/bear-react-docker/compare/v1.0.2...v2.0.0) (2022-02-18)
86+
## [2.0.0](https://github.com/imagine10255/bear-node-docker/compare/v1.0.2...v2.0.0) (2022-02-18)
8787

88-
### [1.0.2](https://github.com/imagine10255/bear-react-docker/compare/v1.0.1...v1.0.2) (2022-02-18)
88+
### [1.0.2](https://github.com/imagine10255/bear-node-docker/compare/v1.0.1...v1.0.2) (2022-02-18)
8989

9090
### 1.0.1 (2022-02-18)
9191

9292

9393
### Features
9494

95-
* 新增 發布指令 ([3b56f39](https://github.com/imagine10255/bear-react-docker/commit/3b56f397653f17b725d5c95f522d8f8c7006fb9f))
95+
* 新增 發布指令 ([3b56f39](https://github.com/imagine10255/bear-node-docker/commit/3b56f397653f17b725d5c95f522d8f8c7006fb9f))
9696

9797
## [1.0.0](https://github.com/imagine10255/deploy/compare/v0.0.30...v1.0.0) (2022-02-17)
9898

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
# bear-react-docker
1+
# bear-node-docker
22

3-
> Common tools and methods for react project deploy to docker
3+
> Common tools build docker image for node project development
44
5-
[![NPM](https://img.shields.io/npm/v/bear-react-docker.svg)](https://www.npmjs.com/package/bear-react-docker)
6-
[![npm](https://img.shields.io/npm/dm/bear-react-docker.svg)](https://www.npmjs.com/package/bear-react-docker)
5+
[![NPM](https://img.shields.io/npm/v/bear-node-docker.svg)](https://www.npmjs.com/package/bear-node-docker)
6+
[![npm](https://img.shields.io/npm/dm/bear-node-docker.svg)](https://www.npmjs.com/package/bear-node-docker)
77

88

99
## Install
1010

1111
```bash
12-
yarn add -D bear-react-docker
12+
yarn add -D bear-node-docker
1313
```
1414

1515

1616

1717
## Setting
1818

1919
```bash
20-
$ cp ./node_modules/bear-react-docker/config/nginx ./deploy/nginx
20+
$ cp ./node_modules/bear-node-docker/config/nginx ./deploy/nginx
2121
```
2222

2323
in your package.json
2424
```json
2525
{
2626
"dockerRegistry": "myDockerProvider.bear.com:8443",
2727
"scripts": {
28-
"docker:build": "bear-react-docker docker --publicUrl=/recommend --dockerfile=./node_modules/bear-react-docker/config/dockerfile/react/Dockerfile",
29-
"docker:push": "bear-react-docker push"
28+
"docker:build": "bear-node-docker docker --publicUrl=/recommend --dockerfile=./node_modules/bear-node-docker/config/dockerfile/react/Dockerfile",
29+
"docker:push": "bear-node-docker push"
3030
}
3131
}
3232
```
3333

3434
### [Options] Custom dockerfile in root type command
3535
```bash
3636
# react
37-
$ cp ./node_modules/bear-react-docker/config/dockerfile/react/Dockerfile ./
37+
$ cp ./node_modules/bear-node-docker/config/dockerfile/react/Dockerfile ./
3838

3939
# nest
40-
$ cp ./node_modules/bear-react-docker/config/dockerfile/nest/Dockerfile ./
40+
$ cp ./node_modules/bear-node-docker/config/dockerfile/nest/Dockerfile ./
4141
```
4242

4343
package.json
4444
```json
4545
{
4646
"dockerRegistry": "myDockerProvider.bear.com:8443",
4747
"scripts": {
48-
"docker:build": "bear-react-docker build --publicUrl=/recommend",
49-
"docker:push": "bear-react-docker push"
48+
"docker:build": "bear-node-docker build --publicUrl=/recommend",
49+
"docker:push": "bear-node-docker push"
5050
}
5151
}
5252
```

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/* istanbul ignore if */
44
if (process.version.match(/v(\d+)\./)[1] < 10) {
5-
console.error('bear-react-docker: Node v10 or greater is required. `bear-react-docker` did not run.')
5+
console.error('bear-node-docker: Node v10 or greater is required. `bear-node-docker` did not run.')
66
} else {
77
const logger = require('../dist/script/logger');
88
const bearScript = require('../dist/index');

lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = async function bearScript () {
1212
})
1313
.positional('dockerfile', {
1414
describe: 'custom dockerfile path (ex: ./)',
15-
default: './node_modules/bear-react-docker/config/Dockerfile'
15+
default: './node_modules/bear-node-docker/config/Dockerfile'
1616
});
1717
}, (argv) => {
1818
const run = require('./build-docker');

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
2-
"name": "bear-react-docker",
2+
"name": "bear-node-docker",
33
"version": "2.2.0",
4-
"description": "Common tools and methods for project development",
5-
"dockerRegistry": "docker.bear.com:8443",
4+
"description": "Common tools build docker image for node project development",
65
"keywords": [
7-
"typescript",
8-
"javscript",
9-
"utils"
6+
"reactjs",
7+
"nestjs",
8+
"docker"
109
],
1110
"author": "imagine10255",
1211
"license": "MIT",
1312
"repository": {
1413
"type": "git",
15-
"url": "https://github.com/imagine10255/bear-react-docker.git"
14+
"url": "https://github.com/imagine10255/bear-node-docker.git"
1615
},
1716
"bin": "bin/cli.js",
1817
"files": [

0 commit comments

Comments
 (0)