GitXplorerGitXplorer
d

vintage-python

public
5 stars
1 forks
1 issues

Commits

List of commits on branch master.
Verified
3bff00e42e5dbdc1f0f87eb349ee33beba9a7c6d

Add 1.2

ddi committed 6 years ago
Verified
01af35f36c64998e79fa1a445c63639c172bc5cb

Add 1.1

ddi committed 6 years ago
Verified
c82c427be3ce8bb28c814cfc6dfddda46a965b58

Add example of running a REPL

ddi committed 6 years ago
Verified
5e0df68bc17cb6f65b9553e1a556e3a4631b2e86

Updates for 1.0.1

ddi committed 6 years ago
Verified
b6b12864e9c1d25f70f13ac89dc6130b2e38ea33

Add 1.0.1

ddi committed 6 years ago
Verified
d0d1e6e422062ac546c93d6837d0a8aa7ddc0252

Add CMD for 1.3

ddi committed 6 years ago

README

The README file for this repository.

Supported tags and respective Dockerfile links

What is this?

The official Python Releases page lists recent downloads all the way back to 2.0.1, from June 22nd, 2001.

But wait, there's more! Also available are various source releases for versions that go back even farther, back to Python 1.0.1, released Feb 15th, 1994.

These base images make it easier to run the more "vintage" Python versions, directly from the comfort of your modern environment.

Why would I want this?

For fun, for history's sake, for archaeology, for science! Or maybe you want to containerize that ancient 1.x project you're still running in production (not recommended).

How to use this image

Run a vintage Python REPL

$ docker run -it dustingram/vintage-python:1.0.1
Python 1.0.1 (Feb 23 2019)
Copyright 1991-1994 Stichting Mathematisch Centrum, Amsterdam
>>> print "Hello world!"
Hello world!
>>>

Create a Dockerfile in your Python app project

FROM dustingram/vintage-python:1.0.1

WORKDIR /tmp

RUN echo "import sys; print 'Python: ' + sys.version" > main.py

CMD ["python", "./main.py"]

You can then build and run the Docker image:

$ docker build -t my-vintage-python-app .
Sending build context to Docker daemon  2.048kB
...
Successfully tagged my-vintage-python-app:latest

$ docker run -it --rm my-vintage-python-app
Python: 1.0.1 (Feb 23 2019)

(The date here is when the image was built, not when the source was published)