https://github.com/marcoceppi/layer-mongodb
https://github.com/marcoceppi/layer-mongodb
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/marcoceppi/layer-mongodb
- Owner: marcoceppi
- License: other
- Created: 2015-12-21T23:58:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-16T17:45:27.000Z (over 8 years ago)
- Last Synced: 2025-05-06T21:00:22.558Z (27 days ago)
- Language: Python
- Size: 34.2 KB
- Stars: 3
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.development.md
Awesome Lists containing this project
README
# Building
This requires the MongoDB interface, currently at [marcoceppi/interface-mongodb](https://github.com/marcoceppi/interface-mongodb).
If you haven't already, set up a $JUJU_REPOSITORY:
```
export JUJU_REPOSITORY=$HOME/charming
export LAYER_PATH=$JUJU_REPOSITORY/layers
export INTERFACE_PATH=$JUJU_REPOSITORY/interfacesmkdir -p $LAYER_PATH $INTERFACE_PATH
```Clone this repository to `$LAYER_PATH` and the interface to `$INTERFACE_PATH`
```
git clone https://github.com/marcoceppi/layer-mongodb $LAYER_PATH/mongodb
git clone https://github.com/marcoceppi/interface-mongodb $INTERFACE_PATH/mongodb
```Once downloaded,
```
charm build $LAYER_PATH/mongodb
```Once built successfully,
```
juju deploy $JUJU_REPOSITORY/builds/mongodb --series xenial
```# Testing
Create a virtual environment and install the testing dependencies
```
cd $LAYER_PATH/mongodb
virtualenv -p python3 venv
. venv/bin/activate
pip install -r tests/requirements.txt
```While the virtual environment is still activated, run nosetests
```
nosetests --with-coverage --cover-package=charms --cover-package=reactive --cover-erase
```# Contributing
We welcome all contributions! To expedite the process, please fork this repository first.
Once forked and cloned locally, create a branch for the topic of this contribution. Typically these are named after the issue, for example if you're takling issue number 900 you would do the following:
```
git checkout -b issue-900
```For new features, or changes without a corrosponding issue number, whatever name best suits these changes will do.
As you hack on features we request that commits be grouped logically. This can be achieved in your branch by rebasing commits to arrange them logically