Skip to content

Commit 720b37a

Browse files
committed
Release version 0.4.1
1 parent d0e41c6 commit 720b37a

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ Deployment:
3333
- Rsync filters
3434
- Custom exec scripts (startup/finish) on local or remote machine (using SSH)
3535

36+
Install
37+
=======
38+
39+
The binary file can be found in the [project releases](./releases/).
40+
41+
```
42+
DOWNLOAD_VERSION=0.4.1
43+
DOWNLOAD_OS=linux
44+
DOWNLOAD_ARCH=x64
45+
46+
wget -O/usr/local/bin/gosync "https://github.com/webdevops/go-sync/releases/download/${DOWNLOAD_VERSION}/gosync-${DOWNLOAD_OS}-${DOWNLOAD_ARCH}"
47+
chmod +x /usr/local/bin/gosync
48+
```
49+
3650
Help
3751
====
3852

@@ -89,3 +103,34 @@ Example
89103
-> executing >> Exec[Type:remote Workdir:/ Command:date]
90104
-> finished
91105
```
106+
107+
## Docker support
108+
109+
Docker support
110+
==============
111+
112+
Using the configuration ``connection.docker=configuration`` this command can be
113+
execued with docker containers. If the container id is passed the
114+
container is used without lookup using eg. `docker-compose`.
115+
116+
**docker-compose:**
117+
118+
*CONTAINER* is the name of the docker-compose container.
119+
120+
| DSN style configuration | Description |
121+
|:--------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------|
122+
| ``compose:CONTAINER`` | Use container with docker-compose in current directory |
123+
| ``compose:CONTAINER;path=/path/to/project`` | Use container with docker-compose in `/path/to/project` directory |
124+
| ``compose:CONTAINER;path=/path/to/project;file=custom-compose-yml`` | Use container with docker-compose in `/path/to/project` directory and `custom-compose.yml` file |
125+
| ``compose:CONTAINER;project-name=foobar`` | Use container with docker-compose in current directory with project name `foobar` |
126+
| ``compose:CONTAINER;host=example.com`` | Use container with docker-compose in current directory with docker host `example.com` |
127+
| ``compose:CONTAINER;env[FOOBAR]=BARFOO`` | Use container with docker-compose in current directory with env var `FOOBAR` set to `BARFOO` |
128+
129+
| Query style configuration | Description |
130+
|:----------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------|
131+
| ``compose://CONTAINER`` | Use container with docker-compose in current directory |
132+
| ``compose://CONTAINER?path=/path/to/project`` | Use container with docker-compose in `/path/to/project` directory |
133+
| ``compose://CONTAINER?path=/path/to/project&file=custom-compose-yml`` | Use container with docker-compose in `/path/to/project` directory and `custom-compose.yml` file |
134+
| ``compose://CONTAINER?project-name=foobar`` | Use container with docker-compose in current directory with project name `foobar` |
135+
| ``compose://CONTAINER?host=example.com`` | Use container with docker-compose in current directory with docker host `example.com` |
136+
| ``compose://CONTAINER?env[FOOBAR]=BARFOO`` | Use container with docker-compose in current directory with env var `FOOBAR` set to `BARFOO` |

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const (
1414
// application informations
1515
Name = "gosync"
1616
Author = "webdevops.io"
17-
Version = "0.4.0"
17+
Version = "0.4.1"
1818

1919
// self update informations
2020
GithubOrganization = "webdevops"

0 commit comments

Comments
 (0)