项目作者: philips-software

项目描述 :
Python docker setup
高级语言: Dockerfile
项目地址: git://github.com/philips-software/docker-python.git
创建时间: 2020-02-26T11:50:25Z
项目社区:https://github.com/philips-software/docker-python

开源协议:MIT License

下载




# Docker-python

Build Docker images
repolinter
Slack

This repo will contain docker images with python

Docker images

Current versions available:

  1. .
  2. ├── 3
  3. ├── openjdk
  4. └── Dockerfile
  5. ├── tox
  6. └── Dockerfile
  7. └── vanilla
  8. └── Dockerfile

Usage

Images can be found on https://hub.docker.com/r/philipssoftware/python/.

  1. docker run philipssoftware/python:latest python --version
  2. docker run philipssoftware/python:buster python --version

Content

The images obviously contains Python, but also two other files:

  • REPO
  • TAGS

REPO

This file has a url to the REPO with specific commit-sha of the build.
Example:

  1. $ docker run philipssoftware/python:buster cat REPO
  2. https://github.com/philips-software/docker-python/tree/bbb5945481e1579c87293d16bbf5cd654f3da158
  1. $ docker run philipssoftware/python:tox cat REPO
  2. https://github.com/philips-software/docker-python/tree/eb0c55137fd741d5526de9e7ef5d15f69a9d5a56

TAGS

This contains all the similar tags at the point of creation.

  1. $ docker run philipssoftware/python cat TAGS
  2. python:buster python:latest
  1. $ docker run philipssoftware/python:tox cat TAGS
  2. python:tox python:tox-3 python:tox-3.20 python:tox-3.20.1

You can use this to pin down a version of the container from an existing development build for production. When using python:buster for development. This ensures that you’ve got all security updates in your build. If you want to pin the version of your image down for production, you can use this file inside of the container to look for the most specific tag, the last one.

Why

Why do we have our own docker image definitions?

We often need some tools in a container for checking some things. F.e. jq, aws-cli and curl.
We can install this every time we need a container, but having this baked into a container seems a better approach.

That’s why we want our own docker file definitions.

Issues

Author

License

License is MIT. See LICENSE file

Philips Forest

This module is part of the Philips Forest.

  1. ___ _
  2. / __\__ _ __ ___ ___| |_
  3. / _\/ _ \| '__/ _ \/ __| __|
  4. / / | (_) | | | __/\__ \ |_
  5. \/ \___/|_| \___||___/\__|
  6. Infrastructure

Talk to the forestkeepers in the docker-images-channel on Slack.

Slack