https://github.com/outstand/consul_stockpile
Bootstrap and backup for consul kv store
https://github.com/outstand/consul_stockpile
Last synced: 3 months ago
JSON representation
Bootstrap and backup for consul kv store
- Host: GitHub
- URL: https://github.com/outstand/consul_stockpile
- Owner: outstand
- License: apache-2.0
- Created: 2016-04-28T19:47:55.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T16:16:42.000Z (over 6 years ago)
- Last Synced: 2024-04-26T23:02:43.007Z (about 1 year ago)
- Language: Ruby
- Size: 62.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Consul Stockpile
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'consul_stockpile'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install consul_stockpile
## Usage
(On AWS)
`docker run -d --net=host outstand/consul_stockpile start -b bucket -n backup`## Development
- `docker volume create --name consul_stockpile_fog`
- `./build_dev.sh`
- `docker run -it --rm --net=host -v $(pwd):/consul_stockpile -v consul_stockpile_fog:/fog -e FOG_LOCAL=true outstand/consul_stockpile:dev start -b bucket -n backup`To release a new version:
- Update the version number in `version.rb` and `Dockerfile.release` and commit the result.
- `./build_dev.sh`
- `docker run -it --rm -v ~/.gitconfig:/root/.gitconfig -v ~/.gitconfig.user:/root/.gitconfig.user -v ~/.ssh/id_rsa:/root/.ssh/id_rsa -v ~/.gem:/root/.gem outstand/consul_stockpile:dev rake release`
- `docker build -t outstand/consul_stockpile:VERSION -f Dockerfile.release .`
- `docker push outstand/consul_stockpile:VERSION`## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/outstand/consul_stockpile.