You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,17 +112,32 @@ Then, run the installation and remove the `.deb` file:
112
112
```bash
113
113
dpkg -i /tmp/scw.deb && rm -f /tmp/scw.deb
114
114
```
115
+
-->
115
116
117
+
<!-- TODO:
116
118
## With a Docker Image
117
119
120
+
### Official releases (Coming soon..)
121
+
118
122
For each release, we deliver a tagged image on the [Scaleway Docker Hub](https://hub.docker.com/r/scaleway/cli/tags) so can run `scw` in a sandboxed way: _Coming soon..._
119
123
120
124
```sh
121
125
docker run scaleway/cli version
122
126
```
123
127
-->
124
128
125
-
## Build Locally
129
+
# Examples
130
+
131
+
## Create an instance server
132
+
```
133
+
scw instance server create type=DEV1-S image=ubuntu-bionic zone=fr-par-1 tags.0="scw-cli"
134
+
```
135
+
136
+
TODO: Add more examples here.
137
+
138
+
## Build it yourself
139
+
140
+
### Build Locally
126
141
127
142
If you have a >= Go 1.13 environment, you can install the `HEAD` version to test the latest features or to [contribute](CONTRIBUTING.md).
128
143
Note that this development version could include bugs, use [tagged releases](https://github.com/scaleway/scaleway-cli/releases/latest) if you need stability.
@@ -133,14 +148,19 @@ go get github.com/scaleway/scaleway-cli/cmd/scw
133
148
134
149
Dependencies: We only use go [Go Modules](https://github.com/golang/go/wiki/Modules) with vendoring.
135
150
136
-
#Examples
151
+
### Build with Docker
137
152
138
-
## Create an instance server
153
+
You can build the `scw` CLI with Docker. If you have Docker installed, you can run:
154
+
```sh
155
+
docker build -t scaleway/cli .
139
156
```
140
-
scw instance server create type=DEV1-S image=ubuntu-bionic zone=fr-par-1 tags.0="scw-cli"
157
+
158
+
Once build, you can then use the CLI as you would run any image:
159
+
```sh
160
+
docker run -i --rm scaleway/cli
141
161
```
142
162
143
-
TODO: Add more examples here.
163
+
See more in-depth information about running the CLI in Docker [here](./docs/docker.md)
0 commit comments