Skip to content

Commit

Permalink
Add support for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiyt committed Nov 7, 2019
1 parent 4ea91a5 commit 640e245
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ rvm:
- ruby-2.5
- ruby-2.6
- ruby-2.7
services:
- docker
script:
- bundle exec bundler-audit
- bundle exec rubocop
- bundle exec rspec
- docker build .
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ruby:2.6.5-alpine

USER nobody

RUN gem install aws_public_ips

CMD aws_public_ips
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ $ AWS_PROFILE=production aws_public_ips
52.84.11.159
```

The gem can also be run from Docker:
```
$ docker pull arkadiyt/aws_public_ips
# For credentials, ensure the appropriate environment variables are defined in the host environment:
$ docker run -e AWS_REGION -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN arkadiyt/aws_public_ips
```

### CLI reference

```
Expand Down

0 comments on commit 640e245

Please sign in to comment.