https://github.com/philips-software/docker-python
Python docker setup
https://github.com/philips-software/docker-python
docker-images hacktoberfest python
Last synced: 9 months ago
JSON representation
Python docker setup
- Host: GitHub
- URL: https://github.com/philips-software/docker-python
- Owner: philips-software
- License: mit
- Created: 2020-02-26T11:50:25.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-02-20T11:06:40.000Z (over 3 years ago)
- Last Synced: 2024-11-17T18:37:51.694Z (over 1 year ago)
- Topics: docker-images, hacktoberfest, python
- Language: Dockerfile
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Docker-python


[](https://philips-software-slackin.now.sh)
This repo will contain docker images with _python_
## Docker images
Current versions available:
```
.
├── 3
│ ├── openjdk
│ │ └── Dockerfile
│ ├── tox
│ │ └── Dockerfile
│ └── vanilla
│ └── Dockerfile
```
## Usage
Images can be found on [https://hub.docker.com/r/philipssoftware/python/](https://hub.docker.com/r/philipssoftware/python/).
```
docker run philipssoftware/python:latest python --version
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:
```
$ docker run philipssoftware/python:buster cat REPO
https://github.com/philips-software/docker-python/tree/bbb5945481e1579c87293d16bbf5cd654f3da158
```
```
$ docker run philipssoftware/python:tox cat REPO
https://github.com/philips-software/docker-python/tree/eb0c55137fd741d5526de9e7ef5d15f69a9d5a56
```
### TAGS
This contains all the similar tags at the point of creation.
```
$ docker run philipssoftware/python cat TAGS
python:buster python:latest
```
```
$ docker run philipssoftware/python:tox cat TAGS
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](https://stedolan.github.io/jq/), [aws-cli](https://aws.amazon.com/cli/) and [curl](https://curl.haxx.se/).
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
- If you have an issue: report it on the [issue tracker](https://github.com/philips-software/docker-node/issues)
## Author
- Jeroen Knoops
## License
License is MIT. See [LICENSE file](LICENSE.md)
## Philips Forest
This module is part of the Philips Forest.
```
___ _
/ __\__ _ __ ___ ___| |_
/ _\/ _ \| '__/ _ \/ __| __|
/ / | (_) | | | __/\__ \ |_
\/ \___/|_| \___||___/\__|
Infrastructure
```
Talk to the forestkeepers in the `docker-images`-channel on Slack.
[](https://philips-software-slackin.now.sh)