Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Add f34 based image #95

Merged
merged 1 commit into from
Sep 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .thoth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ runtime_environments:
recommendation_type: latest
base_image: quay.io/thoth-station/s2i-thoth-ubi8-py38:v0.26.0

- name: f34-python39
operating_system:
name: fedora
version: "34"
python_version: "3.9"
recommendation_type: latest
base_image: quay.io/thoth-station/s2i-thoth-f34-py39:v0.31.1

managers:
- name: update
configuration:
Expand Down
39 changes: 39 additions & 0 deletions overlays/f34-python39/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM quay.io/thoth-station/s2i-thoth-f34-py39:v0.31.1
LABEL name="s2i-minimal-notebook:latest" \
summary="Minimal Jupyter Notebook Source-to-Image for Python 3.9 applications." \
description="Notebook image based on Source-to-Image.These images can be used in OpenDatahub JupterHub." \
io.k8s.description="Notebook image based on Source-to-Image.These images can be used in OpenDatahub JupterHub." \
io.k8s.display-name="Minimal Notebook Python 3.9-f34 S2I" \
io.openshift.expose-services="8888:http" \
io.openshift.tags="python,python39" \
authoritative-source-url="https://quay.io/thoth-station/s2i-minimal-f34-py39-notebook" \
io.openshift.s2i.build.commit.ref="master" \
io.openshift.s2i.build.source-location="https://github/thoth-station/s2i-minimal-notebook" \
io.openshift.s2i.build.image="quay.io/thoth-station/s2i-thoth-f34-py39:v0.31.1"

ENV JUPYTER_ENABLE_LAB="1" \
ENABLE_MICROPIPENV="1" \
UPGRADE_PIP_TO_LATEST="1" \
THAMOS_RUNTIME_ENVIRONMENT="f34-python39" \
THOTH_ADVISE="0" \
THOTH_ERROR_FALLBACK="1" \
THOTH_DRY_RUN="1" \
THAMOS_DEBUG="0" \
THAMOS_VERBOSE="1" \
THOTH_PROVENANCE_CHECK="0"
USER root

# Upgrade NodeJS > 12.0
RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash - && \
yum remove -y nodejs && \
yum install -y nodejs

# Copying in override assemble/run scripts
COPY .s2i/bin /tmp/scripts
# Copying in source code
COPY . /tmp/src
# Change file ownership to the assemble user. Builder image must support chown command.
RUN chown -R 1001:0 /tmp/scripts /tmp/src
USER 1001
RUN /tmp/scripts/assemble
CMD /tmp/scripts/run
19 changes: 19 additions & 0 deletions overlays/f34-python39/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
notebook = ">=6.0.2"
jupyterhub = "~=1.3.0"
jupyterlab = "~=3.1.0"
jupyterlab-requirements = ">=0.10.9"
jupyter_kernel_gateway = "==2.4.0"
jupyter-nbrequirements = "*"
supervisor = "==4.1.0"
jupyterlab-git = "==0.30"

[requires]
python_version = "3.9"
Loading