An open API service indexing awesome lists of open source software.

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.

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
```