Skip to content

Commit

Permalink
Merge pull request #3 from nxtlytics/ubuntu-2004
Browse files Browse the repository at this point in the history
Updating to ubuntu 2004 and adding python 3.9
  • Loading branch information
missingcharacter authored Dec 29, 2020
2 parents 19d40b6 + 36c0dbf commit 605b97a
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ workflows:
- /.*/
tags:
only: /^v.*/
- ivy-circleci-orb/build_docker:
name: python39
requires:
- base
working_directory: python39/
container_name: python39
simple_docker_tag: true
context: ivy
filters:
branches:
ignore:
- /.*/
tags:
only: /^v.*/
- ivy-circleci-orb/build_docker:
name: apache-airflow
requires:
Expand Down
2 changes: 1 addition & 1 deletion apache-airflow/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/python37:v0.0.1
FROM nxtlytics/python37:v0.0.2

# Never prompt the user for choices on installation/configuration of packages
ENV DEBIAN_FRONTEND noninteractive
Expand Down
2 changes: 1 addition & 1 deletion base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# - Base APT repos for Nexus
# Ensure this image is built with --squash to reduce layer bloat!

FROM ubuntu:bionic-20200630
FROM ubuntu:focal-20201106

ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion datadog-agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.1
FROM nxtlytics/base:v0.0.2

ADD utils /opt/utils/
RUN echo "===> Moving docker-entrypoint.sh to /usr/local/bin and making it exec" \
Expand Down
2 changes: 1 addition & 1 deletion jupyterhub-singleuser-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/python38:v0.0.1
FROM nxtlytics/python38:v0.0.2

COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh \
Expand Down
2 changes: 1 addition & 1 deletion node12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.1
FROM nxtlytics/base:v0.0.2

# Install tools
RUN curl -sL https://deb.nodesource.com/setup_12.x -o /tmp/nodesource_setup.sh && \
Expand Down
5 changes: 3 additions & 2 deletions python37/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.1
FROM nxtlytics/base:v0.0.2

# Ensure system is up to date and install tools
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/bionic-proposed.list && \
Expand All @@ -12,6 +12,7 @@ RUN echo 'deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
python3.7 /tmp/get-pip.py && \
hash -r && \
python3.7 -m pip install pipenv
python3.7 -m pip install pipenv && \
python3.7 -m pip install poetry

ADD .VERSION /opt/ivy/meta/PYTHON37_VERSION
5 changes: 3 additions & 2 deletions python38/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nxtlytics/base:v0.0.1
FROM nxtlytics/base:v0.0.2

# Ensure system is up to date and install tools
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/bionic-proposed.list && \
Expand All @@ -12,6 +12,7 @@ RUN echo 'deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
python3.8 /tmp/get-pip.py && \
hash -r && \
python3.8 -m pip install pipenv
python3.8 -m pip install pipenv && \
python3.8 -m pip install poetry

ADD .VERSION /opt/ivy/meta/PYTHON38_VERSION
18 changes: 18 additions & 0 deletions python39/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM nxtlytics/base:v0.0.2

# Ensure system is up to date and install tools
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ bionic-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/bionic-proposed.list && \
apt-get update && \
apt-get install -y \
git \
python3.9 \
python3.9-venv \
python3.9-dev \
python3-pip && \
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
python3.9 /tmp/get-pip.py && \
hash -r && \
python3.9 -m pip install pipenv && \
python3.9 -m pip install poetry

ADD .VERSION /opt/ivy/meta/PYTHON39_VERSION
38 changes: 38 additions & 0 deletions python39/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# docker-base-python39

A ubuntu-based Python 3.9 base container

[DockerHUB repository](https://hub.docker.com/r/nxtlytics/python39)

## How do I use this?

In your `dockerfile`:
```
FROM nxtlytics/python39:<pick a tag from hub.docker.com>
# Add your source files
ADD app/ /app
# Install pipenv dependencies
RUN pipenv install
# Set command, make sure your main app is named `main.py`
CMD pipenv run /app/main.py
```

## What *should* I use this for?

Use this as a starting point for:

- Applications using Python 3.9 as their runtime

## What should I not use this for?

This is not the place for:

- Large uncommon libraries (CUDA/ML)
- Architecture-specific (ARM, etc) tooling or compilers

## Found a bug? Got suggestions?

Open an issue, or make a PR if you have suggested changes here.

0 comments on commit 605b97a

Please sign in to comment.