Skip to content

Commit

Permalink
Rename devops-toolkit to devops-toolkit-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq committed Aug 31, 2024
1 parent 07574ee commit 44bb69a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,39 +29,39 @@ Use the provided execution script simplifies setup, execution and managing DevOp
### 1. Install

```bash
curl -o devops-toolkit https://raw.githubusercontent.com/tungbq/devops-toolkit/main/devops-toolkit
chmod +x devops-toolkit
sudo mv devops-toolkit /usr/local/bin/
curl -o devops-toolkit-cli https://raw.githubusercontent.com/tungbq/devops-toolkit/main/devops-toolkit-cli
chmod +x devops-toolkit-cli
sudo mv devops-toolkit-cli /usr/local/bin/
```

### 2. Run

- Initialize the docker image, container and configuration directory:

```bash
devops-toolkit init
# Run 'devops-toolkit init vX.Y.Z' if you want to use specific version. E.g: devops-toolkit init 1.0.2
devops-toolkit-cli init
# Run 'devops-toolkit-cli init vX.Y.Z' if you want to use specific version. E.g: devops-toolkit-cli init 1.0.2
```

- Start a shell in new container:

```bash
devops-toolkit run
devops-toolkit-cli run
```

- Execute a command in the container:

```bash
devops-toolkit run ls -la
devops-toolkit-cli run ls -la
```

- Access the shell:

```bash
devops-toolkit shell
devops-toolkit-cli shell
```

- For more commands, use `devops-toolkit help`.
- For more commands, use `devops-toolkit-cli help`.

## Use DevOps Toolkit with docker command directly

Expand Down
2 changes: 1 addition & 1 deletion devops-toolkit → devops-toolkit-cli
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ init() {

if docker inspect --type=container "$CONTAINER_NAME" > /dev/null 2>&1; then
log $YELLOW "Container $CONTAINER_NAME already exists. Skipping initialization."
log $YELLOW "Run 'devops-toolkit cleanup' then init again if you want to re-init!"
log $YELLOW "Run 'devops-toolkit-cli cleanup' then init again if you want to re-init!"
else
log $BLUE "Initializing container with image $image..."
pull_image "$image"
Expand Down

0 comments on commit 44bb69a

Please sign in to comment.