Added Dockerfile, doc, package list and CI config.

This commit is contained in:
Maximilian Kratz 2020-12-19 19:04:44 +01:00
parent 0b728b550c
commit 864d2bc119
4 changed files with 58 additions and 1 deletions

16
.drone.yml Normal file
View file

@ -0,0 +1,16 @@
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
repo: maxkratz/python-custom
tags: 3.6
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
when:
branch:
- master

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
# Use python 3.6
FROM python:3.6
LABEL maintainer="Max Kratz <account@maxkratz.com>"
ENV DEBIAN_FRONTEND=noninteractive
# Update various packages
RUN apt-get update -q && \
apt-get upgrade -yq
# Install all requirements from file
COPY requirements.txt /
RUN pip install -r requirements.txt
CMD ["python3"]

View file

@ -1 +1,19 @@
docker_python-custom
# docker_python-custom
[![Build Status](https://github.ci.maxkratz.com/api/badges/maxkratz/docker_python-custom/status.svg?ref=refs/heads/main)](https://github.ci.maxkratz.com/maxkratz/docker_python-custom)
*Unofficial* custom python Docker image for faster CI jobs of other projects of mine.
Prebuild images can be found at [Dockerhub](https://hub.docker.com/r/maxkratz/python-custom).
## Dockerfile
The Dockerfile can be found at:
[https://github.com/maxkratz/docker_python-custom/blob/main/Dockerfile](https://github.com/maxkratz/docker_python-custom/blob/main/Dockerfile)
## What gets installed in this container?
You can find a list of all installed packages (and versions) in [requirements.txt](requirements.txt).
## Issues & Contribution
If you find any problems, bugs or missing packages, feel free to open an [issue on github](https://github.com/maxkratz/docker_python-custom/issues).

9
requirements.txt Normal file
View file

@ -0,0 +1,9 @@
pylint>=2.6.0
pylint-fail-under>=0.3.0
attr>=0.3.1
attrs>=19.3.0
psycopg2>=2.8.6
pysaml2>=6.3.0
PyYAML>=5.3
setuptools
wheel