An open API service indexing awesome lists of open source software.

https://github.com/brthor/bitbucket-pipelines-python-postgres-redis

Bitbucket Pipelines template with python 2.7, Postgresql and redis 2.8
https://github.com/brthor/bitbucket-pipelines-python-postgres-redis

Last synced: about 1 year ago
JSON representation

Bitbucket Pipelines template with python 2.7, Postgresql and redis 2.8

Awesome Lists containing this project

README

          

## Bitbucket Pipelines Template

Python, Postgresql, and Redis are included. Use this template for your `bitbucket-pipelines.yml`

```
image: brthornbury/bitbucket-pipelines-python-postgres-redis

pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- /etc/init.d/postgresql start # starting the service
- sudo -u postgres sh -c 'createuser root & createdb testdb' # creating a root user
- sudo -u postgres psql -c "ALTER USER root PASSWORD 'password';" # setting up the root password
- redis-server --daemonize yes
- pip install psycopg2 redis
- python test.py
```

See the main repository on bitbucket, where the above pipeline file is used to test this template.

[https://bitbucket.org/brthornbury/bitbucket-pipelines-python-postgres-redis](https://bitbucket.org/brthornbury/bitbucket-pipelines-python-postgres-redis)