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
- Host: GitHub
- URL: https://github.com/brthor/bitbucket-pipelines-python-postgres-redis
- Owner: brthor
- License: mit
- Created: 2017-01-07T11:23:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-07T11:29:28.000Z (over 9 years ago)
- Last Synced: 2025-05-15T09:43:27.852Z (about 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
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)