Skip to content

Commit 790c006

Browse files
committed
Add caspistrano docker image
1 parent f9a6cd9 commit 790c006

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ services:
66
script:
77
- docker build -t test/php:7.1 php/7.1/
88
- docker build -t test/nginx:1.13 nginx/1.13/
9+
- docker build -t test/capistrano:3.9 capistrano/3.9/

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ You can comment or uncomment some services according to your project.
3838
* `elasticsearch:5.5-alpine`.
3939

4040

41+
## Other tools
42+
43+
This repository also comes with a caspistrano docker image: `jguyomard/laravel-capistrano:3.9`.
44+
45+
For ease of use, you can create a bash alias:
46+
47+
```
48+
alias cap='docker run --rm --user cap -v "$PWD":/src -v "$(dirname $SSH_AUTH_SOCK)":"$(dirname $SSH_AUTH_SOCK)" -e SSH_AUTH_SOCK="${SSH_AUTH_SOCK}" jguyomard/laravel-capistrano cap'
49+
```
50+
51+
4152
## Contributing
4253

4354
Contributions are welcome!
@@ -46,4 +57,4 @@ Leave an issue on Github, or create a Pull Request.
4657

4758
## Licence
4859

49-
This work is under [MIT](LICENCE) licence.
60+
This work is under [MIT](LICENCE) licence.

capistrano/3.9/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ruby:2.4-alpine
2+
3+
MAINTAINER JG <julien@mangue.eu>
4+
5+
ENV VERSION "~> 3.9.0"
6+
RUN apk add --no-cache git \
7+
&& gem install capistrano -v "${VERSION}" \
8+
&& gem install capistrano-composer \
9+
&& gem install capistrano-laravel \
10+
&& addgroup -Sg 1000 cap \
11+
&& adduser -SG cap -u 1000 -h /src cap
12+
13+
VOLUME /src
14+
15+
WORKDIR /src

0 commit comments

Comments
 (0)