Sign inSign up

brthornbury/bitbucket-pipelines-python-postgres-redis

By brthornbury

Updated over 9 years ago

Bitbucket Pipelines image with python 2.7, Postgresql and redis 2.8

Image
1

768

brthornbury/bitbucket-pipelines-python-postgres-redis repository overview

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

Tag summary

Content type

Image

Digest

Size

232.2 MB

Last updated

over 9 years ago

docker pull brthornbury/bitbucket-pipelines-python-postgres-redis