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
{{ message }}
This repository was archived by the owner on Jun 12, 2018. It is now read-only.
Please note that the CLI is currently limited to connecting to a local `/var/run/docker.sock`
15
+
Please note that the CLI currently defaults to connecting to a local `/var/run/docker.sock`
17
16
socket only and the user that runs `devstep` commands will need [non-root access to it](http://docs.docker.io/installation/ubuntulinux/#giving-non-root-access).
18
-
Support for execution over TCP is likely to be added at some point.
19
-
17
+
On OSX we rely on the environmental variables set by `docker-machine` (like
18
+
`DOCKER_HOST` and `DOCKER_CERT_PATH` for example) and also on the fact that the
19
+
`$HOME` dir is automagically shared with the VM that runs the docker daemon.
20
20
21
21
> **IMPORTANT**: A `developer` user will be used by Devstep and it assumes your
22
-
user and group ids are equal to `1000` when using the CLI or the container's init
23
-
process will be aborted. This is to guarantee that files created within Docker
24
-
containers have the appropriate permissions so that you can manipulate them
25
-
on the host without the need to use `sudo`. This is currently a Devstep limitation
26
-
that will be worked around in case there is enough demand or will be fixed once
27
-
Docker adds support for user namespaces.
22
+
user and group ids are equal to `1000` when using the CLI. This is to guarantee
23
+
that files created within Docker containers have the appropriate permissions so
24
+
that you can manipulate them on the host without the need to use `sudo`. This is
25
+
currently a Devstep limitation that will be handled on a future release.
28
26
29
27
> The `1000` id was chosen because it is the default uid / gid of Ubuntu Desktop users
30
28
that are created during the installation process. To work around this limitation
31
29
you can build your own image with the appropriate ids and add a `source_image: '<YOUR-IMAGE>:<OPTIONAL-TAG>'`
32
30
line to your `~/devstep.yml` so that the image is used as a source for your projects.
33
31
32
+
> When on OSX using dinghy, this should not be a problem thanks to how it sets up
33
+
NFS shares.
34
+
34
35
## Bash autocomplete
35
36
36
-
An autocompletion script can be installed using the one liner below:
37
+
An autocompletion script for Linux can be installed using the one liner below:
37
38
38
39
```sh
39
40
curl -sL https://github.com/codegangsta/cli/raw/master/autocomplete/bash_autocomplete | sed 's/$PROG/devstep/'| sudo tee /etc/bash_completion.d/devstep
40
41
```
42
+
43
+
On OSX it gets installed automatically thanks to Homebrew.
Copy file name to clipboardExpand all lines: docs/getting-started.md
+25-17Lines changed: 25 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,45 +12,53 @@ will download that image as needed when using `Dockerfile`s but the Devstep CLI
12
12
---------------
13
13
14
14
This project is being developed and tested on an Ubuntu 14.04 host with Docker
15
-
1.7.0, while it is likely to work on other distros / Docker versions /
16
-
[boot2docker](http://boot2docker.io/), I'm not sure how it will behave on the wild.
15
+
1.9.0+ and on OSX using [dinghy VMs](https://github.com/codekitchen/dinghy) powered
16
+
by the [xhyve docker-machine driver](https://github.com/zchee/docker-machine-driver-xhyve).
17
+
While it is likely to work on other distros / Docker versions / boot2docker setups,
18
+
I'm not sure how it will behave on the wild.
17
19
18
-
Please note that the CLI is currently limited to connecting to a local `/var/run/docker.sock`
20
+
Please note that the CLI currently defaults to connecting to a local `/var/run/docker.sock`
19
21
socket only and the user that runs `devstep` commands will need [non-root access to it](http://docs.docker.io/installation/ubuntulinux/#giving-non-root-access).
20
-
Support for execution over TCP is likely to be added at some point in the future.
22
+
On OSX we rely on the environmental variables set by `docker-machine` (like
23
+
`DOCKER_HOST` and `DOCKER_CERT_PATH` for example) and also on the fact that the
24
+
`$HOME` dir is automagically shared with the VM that runs the docker daemon.
21
25
22
26
## Getting started with the CLI
23
27
-------------------------------
24
28
25
29
> **IMPORTANT**: A `developer` user will be used by Devstep and it assumes your
26
-
user and group ids are equal to `1000` when using the CLI or the container's init
27
-
process will be aborted. This is to guarantee that files created within Docker
28
-
containers have the appropriate permissions so that you can manipulate them
29
-
on the host without the need to use `sudo`. This is currently a Devstep limitation
30
-
that will be worked around in case there is enough demand or will be fixed once
31
-
Docker adds support for user namespaces.
30
+
user and group ids are equal to `1000` when using the CLI. This is to guarantee
31
+
that files created within Docker containers have the appropriate permissions so
32
+
that you can manipulate them on the host without the need to use `sudo`. This is
33
+
currently a Devstep limitation that will be handled on a future release.
32
34
33
35
> The `1000` id was chosen because it is the default uid / gid of Ubuntu Desktop users
34
36
that are created during the installation process. To work around this limitation
35
37
you can build your own image with the appropriate ids and add a `source_image: '<YOUR-IMAGE>:<OPTIONAL-TAG>'`
36
38
line to your `~/devstep.yml` so that the image is used as a source for your projects.
37
39
38
-
To install the CLI, you can run the one liner below and read on for more:
40
+
> When on OSX using dinghy, this should not be a problem thanks to how it sets up
41
+
NFS shares.
42
+
43
+
To install the CLI:
39
44
40
45
```sh
46
+
# On Linux (assumes `$HOME/bin` is on your `PATH`)
0 commit comments