https://github.com/gbenson/dead-horse
Docker image for Python 2 work
https://github.com/gbenson/dead-horse
docker python2
Last synced: 3 months ago
JSON representation
Docker image for Python 2 work
- Host: GitHub
- URL: https://github.com/gbenson/dead-horse
- Owner: gbenson
- License: mit
- Created: 2023-07-05T09:43:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T12:15:51.000Z (over 2 years ago)
- Last Synced: 2025-01-27T18:09:44.366Z (over 1 year ago)
- Topics: docker, python2
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/gbenson/python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dead horse
Docker image for Python 2 work.
## Usage
`cd` into your project directory, then enter the Python 2 world:
```sh
cd /where/ever
docker run --rm -it --mount type=bind,src=$(pwd),target=/work gbenson/python:2
```
Create a virtual environment:
```sh
virtualenv venv2
. venv2/bin/activate
```
Stop pip complaining all the time:
```sh
pip config set global.no_python_version_warning True
```