Skip to content

Commit

Permalink
Local development with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dsalahutdinov committed Feb 28, 2019
1 parent 5432f21 commit 8602cb2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
20 changes: 17 additions & 3 deletions README.md
Expand Up @@ -124,11 +124,25 @@ PRs to add more _browserslist supported_ browsers are welcome 👋
transpiling / autoprefixing for browsers, this behaviour is what's intended in most cases, but might surprise you otherwise.
* Right now, Chrome for Android and Firefox for Android are resolved to their desktop equivalents. The `caniuse` database does not currently store historical data for these browsers separately (except the last version) See [#156](https://github.com/ai/browserslist/issues/156)

## Development
## Development (with Docker))))

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
After checking out the repo, run:

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
```bash
docker-compose run app bundle install
```

Run tests with:

```bash
docker-compose run app bundle exec rspec
```

Run RuboCop with:

```bash
docker-compose run app bundle exec rubocop
```

## Contributing

Expand Down
18 changes: 18 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,18 @@
version: '3.4'

services:
app:
image: ruby:2.5.1
environment:
- BUNDLE_PATH=/bundle
- BUNDLE_CONFIG=/app/.bundle/config
command: bash
working_dir: /app
volumes:
- .:/app:cached
- bundler_data:/bundle
tmpfs:
- /tmp

volumes:
bundler_data:

0 comments on commit 8602cb2

Please sign in to comment.