https://github.com/ltbringer/eoan-pyenv
Docker image: Ubuntu 19.10 and Pyenv.
https://github.com/ltbringer/eoan-pyenv
docker pyenv python
Last synced: 10 days ago
JSON representation
Docker image: Ubuntu 19.10 and Pyenv.
- Host: GitHub
- URL: https://github.com/ltbringer/eoan-pyenv
- Owner: ltbringer
- Created: 2020-06-17T14:59:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-10T14:02:37.000Z (over 5 years ago)
- Last Synced: 2025-08-25T07:26:09.939Z (8 months ago)
- Topics: docker, pyenv, python
- Language: Dockerfile
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eoan-pyenv
This builds a container over `ubuntu:19.10`. Shipping [`exegr`](https://github.com/ltbringer/exegr) requires
the host machine to install a number of dependencies. It seems convenient to have a docker image that can serve as the
base for python projects without worrying about the version and the error:
```text
apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found ...
```
The image built from this dockerfile will also ship [`pyenv`](https://github.com/pyenv/pyenv), referencing this base
image would therefore make using different python versions easier by using:
```dockerfile
FROM ltbringer/eoan-pyenv:TAG
ENV PYTHON_VERSION=3.6.5
RUN pyenv install $PYTHON_VERSION && pyenv global $PYTHON_VERSION
```
## Notes
The dependencies install `tzdata` which requires an interactive interface to set timezone info. I have used:
```dockerfile
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Kolkata
```
To serve my purpose, be aware of time related pitfalls.
## Dockerhub
The image can be accessed via Dockerhub like so:
```
docker pull ltbringer/eoan-pyenv:latest
```