Skip to content

Commit d47012d

Browse files
authored
Deprecate the devops-toolkit CLI feature (#247)
1 parent d084dd7 commit d47012d

File tree

11 files changed

+8
-564
lines changed

11 files changed

+8
-564
lines changed

README.md

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -75,61 +75,6 @@ docker run -it --name devops-toolkit-demo3 \
7575
- You can replace `$HOME/.dtc` with any desired folder path on your VM.
7676
- Remove the `-v $HOME/.dtc:/dtc` option if you do not wish to store configurations on the host (not recommended for configuration reuse).
7777

78-
## Use DevOps Toolkit with devops-toolkit-cli
79-
80-
Optionally, you can use the provided execution script which simplifies the setup, execution, and management of the DevOps Toolkit.
81-
82-
### 1. Install
83-
84-
```bash
85-
curl -o devops-toolkit-cli https://raw.githubusercontent.com/tungbq/devops-toolkit/main/devops-toolkit-cli
86-
chmod +x devops-toolkit-cli
87-
sudo mv devops-toolkit-cli /usr/local/bin/
88-
```
89-
90-
### 2. Run
91-
92-
Navigate to your workspace folder, then:
93-
94-
- Initialize the docker image, container and configuration directory:
95-
96-
```bash
97-
devops-toolkit-cli init my_toolkit_01
98-
# Run 'devops-toolkit-cli init my_toolkit_01 vX.Y.Z' if you want to use specific version.
99-
# E.g: devops-toolkit-cli init my_toolkit_01 1.0.2
100-
```
101-
102-
- Start a shell in new container:
103-
104-
```bash
105-
devops-toolkit-cli run my_toolkit_01
106-
```
107-
108-
- Execute a command in the container:
109-
110-
```bash
111-
devops-toolkit-cli run my_toolkit_01 ls -la
112-
```
113-
114-
- Access the shell:
115-
116-
```bash
117-
devops-toolkit-cli shell my_toolkit_01
118-
```
119-
120-
- Remove container if it's not used anymore
121-
122-
```bash
123-
devops-toolkit-cli cleanup my_toolkit_01
124-
# Run 'devops-toolkit-cli list' to list all available containers
125-
# Run 'devops-toolkit-cli cleanup --all' to cleanup all devops-toolkit containers
126-
```
127-
128-
### 3. Get Help
129-
130-
- For more commands, run `devops-toolkit-cli help`.
131-
- For detailed `devops-toolkit-cli` document and advanced usage, see: [docs/usage/devops_toolkit_cli](./docs/usage/devops_toolkit_cli.md)
132-
13378
## Versioning
13479

13580
We use the following versioning scheme:

demo/provistion-azure-vm/README.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,13 @@
44

55
```bash
66
cd devops-toolkit/demo/provistion-azure-vm
7-
```
8-
9-
## Init devops-toolkit container
10-
11-
```bash
12-
devops-toolkit-cli init demo_azure_tf
13-
```
14-
15-
## Run devops-toolkit container
167

17-
```bash
18-
devops-toolkit-cli run demo_azure_tf
8+
mkdir -p $HOME/.dtc # Skip this step if you already created the configuration folder before
9+
docker pull tungbq/devops-toolkit:latest
10+
docker run -it --rm --name demo_azure_tf \
11+
-v $HOME/.dtc:/dtc \
12+
--network host \
13+
tungbq/devops-toolkit:latest
1914
```
2015

2116
At this point, your container already started with `demo/provistion-azure-vm` code available inside. Let's move to the next step
@@ -58,17 +53,14 @@ Enter 'yes' to confirm
5853
- Or ping the Public IP shown in the console
5954

6055
## Cleanup
56+
6157
Destroy the resources with terraform if they are not used anymore:
58+
6259
```bash
6360
# In devops-toolkit contaienr env
6461
terraform destroy
6562
```
6663

67-
And also remove the demo docker container with this command:
68-
```bash
69-
devops-toolkit-cli cleanup demo_azure_tf
70-
```
71-
7264
## Conclusion
7365

7466
You can see that in just a few steps, you can use Terraform to provision the Azure VM without install terraform on the host machine!

0 commit comments

Comments
 (0)