Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating titiler base image to bitnami/python:3.9 in Dockerfile and CI #520

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

FischerLGLN
Copy link
Contributor

Signed-off-by: Maik Fischer maik.fischer@lgln.niedersachsen.de

Available PR templates

Issue: #519
Added a bitnami hardened Dockerfile to address security issues.
Python 3.10 is used, since I haven't found build problems with Python 3.10.
I cannot test the ci part, but I've built the image manually and could successful deliver images through titiler.

FROM bitnami/python:${PYTHON_VERSION}
RUN apt update && apt upgrade -y \
&& apt install curl -y \
&& rm -rf /var/lib/apt/lists/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FischerLGLN Tiangolo image has more than just gunicorn

I guess the easiest way might just to update https://github.com/vincentsarago/containers/tree/main/uvicorn-gunicorn with the bitnami docker images.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're fast.

Do you mean this file?
https://github.com/vincentsarago/containers/blob/main/uvicorn-gunicorn/python3.9.dockerfile

I think its mainly the start.sh and start-reload.sh files as well as the guvicorn config, but they aren't needed in a kubernetes platform.
Idea:
We just say guvicorn is for dev and normal use and the uvicorn image is for kubernetes.
I would handle in this PR just the Uvicorn Part and change in kubernetes deployment.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would handle in this PR just the Uvicorn Part and change in kubernetes deployment.

sounds good to me

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vincentsarago Gunicorn is semantically untouched and with this PR I get my updated uvicorn :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FischerLGLN FischerLGLN changed the title Updating titiler base image to bitnami/python:3.10 in Dockerfile and CI Updating titiler base image to bitnami/python:3.9 in Dockerfile and CI Oct 6, 2022
@FischerLGLN
Copy link
Contributor Author

@vincentsarago
titiler => (version: "1.0.0", path: "deployment/k8s/charts") > Chart version not ok. Needs a version bump!

Oh wow, I will add a version bump. I suggest bumping 1.0.0 to 1.1.0

@FischerLGLN
Copy link
Contributor Author

@emmanuelmathot FYI: Bumped your titiler helm chart as part of this PR, linting is okay.

@emmanuelmathot
Copy link
Contributor

Indeed, since the chart has changed, the version as well. thx!

@FischerLGLN
Copy link
Contributor Author

@vincentsarago Hi, can this PR be merged? Thanks!

it alongside normal gunicorn image.

Signed-off-by: Maik Fischer <maik.fischer@lgln.niedersachsen.de>
@FischerLGLN
Copy link
Contributor Author

@vincentsarago Looking forward to see another package for uvicorn created through master commit: https://github.com/developmentseed/titiler/pkgs/container/titiler

@vincentsarago vincentsarago merged commit d4741eb into developmentseed:master Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants