Skip to content

Commit c576b29

Browse files
authored
chore(docker): rename the container to api-client to be less generic (#951)
1 parent f65811d commit c576b29

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.lintstagedrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"generators/**/*.java": "docker exec -t dev yarn cli format java generators",
2+
"generators/**/*.java": "docker exec -t api-clients-automation yarn cli format java generators",
33
".github/**/*.yml": "yarn github-actions:lint --fix",
44
"*.json": "yarn fix:json",
55
"scripts/**/*.(js|ts)": "yarn scripts:lint --fix"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"build:eslint": "yarn workspace eslint-plugin-automation-custom build && yarn install",
1313
"clean": "rm -rf **/dist **/build **/node_modules **/.gradle **/vendor || true",
1414
"cli": "yarn workspace scripts ts-node --transpile-only ./cli/index.ts",
15-
"docker": "docker exec -it dev yarn cli $*",
15+
"docker": "docker exec -it api-clients-automation yarn cli $*",
1616
"docker:build": "./scripts/docker/build.sh",
17-
"docker:clean": "docker stop dev; docker rm -f dev; docker image rm -f api-clients-automation",
17+
"docker:clean": "docker stop api-clients-automation; docker rm -f api-clients-automation; docker image rm -f api-clients-automation",
1818
"docker:mount": "./scripts/docker/mount.sh",
1919
"docker:setup": "yarn docker:clean && yarn docker:build && yarn docker:mount",
2020
"fix:json": "eslint --ext=json . --fix",

scripts/docker/mount.sh

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

33
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)/../.."
44

5-
docker run -d -it --name dev --mount type=bind,source=$ROOT/,target=/app api-clients-automation
5+
docker run -d -it --name api-clients-automation --mount type=bind,source=$ROOT/,target=/app api-clients-automation

website/docs/contributing/setup-repository.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ yarn docker:build
3636

3737
#### Mount
3838

39-
> Mount docker image on `dev` container
39+
> Mount docker image on `api-clients-automation` container
4040
4141
```bash
4242
yarn docker:mount
4343
```
4444

4545
#### Clean
4646

47-
> Stops `dev` container and clean the built image
47+
> Stops `api-clients-automation` container and clean the built image
4848
4949
```bash
5050
yarn docker:clean

0 commit comments

Comments
 (0)