Sign inSign up

gasoid/python3.5-postgresql

By gasoid

•Updated over 9 years ago

A python3.5 image with PostgreSQL to use with Bitbucket Pipelines.

Image
0

800

gasoid/python3.5-postgresql repository overview

Python and PostgreSQL for Bitbucket Pipelines This repository contains a Dockerfile as well as a simple example that shows how you can run your own Docker container with Python and PostgreSQL on Bitbucket Pipelines.

The Docker image is using python 3.5 and PostgreSQL 9.4

Quickstart Using the image with Bitbucket Pipelines Just copy/paste the YML below in your bitbucket-pipelines.yml and adapt the script to your needs.

⁠You can specify a custom docker image from Dockerhub as your build environment.

image: gasoid/python3.5-postgres

pipelines: default: - step: script: # Modify the commands below to build your repository. - /etc/init.d/postgresql start # starting the service - sudo -u postgres psql -c "CREATE USER project_name WITH ENCRYPTED PASSWORD 'project_name' SUPERUSER;" # create superuser - sudo -u postgres psql -c "CREATE DATABASE project_name OWNER project_name;" # create database - pip install -r requirements.txt - pytest --create-db

Tag summary

Content type

Image

Digest

Size

315.5 MB

Last updated

over 9 years ago

docker pull gasoid/python3.5-postgresql