Changed python version to 3.11 and fixed confluent-kafka import error

This commit is contained in:
MauricioGarciaS 2023-01-20 15:19:27 +01:00
parent e85933e96d
commit f4e7321b86
5 changed files with 30 additions and 5 deletions

View file

@ -1,8 +1,13 @@
FROM python:3.8-slim
FROM python:3.11
WORKDIR /usr/src/app
COPY . .
RUN apt update
RUN apt-get install -y libc-dev libffi-dev gcc
RUN apt update && apt -y install software-properties-common gcc
RUN git clone https://github.com/edenhill/librdkafka
RUN cd librdkafka && ./configure && make && make install && ldconfig
RUN pip install -r ./deploy/requirements_bigquery.txt

View file

@ -1,8 +1,13 @@
FROM python:3.8-slim
FROM python:3.11
WORKDIR /usr/src/app
COPY . .
RUN apt update
RUN apt-get install -y libc-dev libffi-dev gcc
RUN apt update && apt -y install software-properties-common gcc
RUN git clone https://github.com/edenhill/librdkafka
RUN cd librdkafka && ./configure && make && make install && ldconfig
RUN pip install -r ./deploy/requirements_clickhouse.txt

View file

@ -1,8 +1,13 @@
FROM python:3.8-slim
FROM python:3.11
WORKDIR /usr/src/app
COPY . .
RUN apt update
RUN apt-get install -y libc-dev libffi-dev gcc
RUN apt update && apt -y install software-properties-common gcc
RUN git clone https://github.com/edenhill/librdkafka
RUN cd librdkafka && ./configure && make && make install && ldconfig
RUN pip install -r ./deploy/requirements_pg.txt

View file

@ -1,8 +1,13 @@
FROM python:3.8-slim
FROM python:3.11
WORKDIR /usr/src/app
COPY . .
RUN apt update
RUN apt-get install -y libc-dev libffi-dev gcc
RUN apt update && apt -y install software-properties-common gcc
RUN git clone https://github.com/edenhill/librdkafka
RUN cd librdkafka && ./configure && make && make install && ldconfig
RUN pip install -r ./deploy/requirements_redshift.txt

View file

@ -1,8 +1,13 @@
FROM python:3.8-slim
FROM python:3.11
WORKDIR /usr/src/app
COPY . .
RUN apt update
RUN apt-get install -y libc-dev libffi-dev gcc
RUN apt update && apt -y install software-properties-common gcc
RUN git clone https://github.com/edenhill/librdkafka
RUN cd librdkafka && ./configure && make && make install && ldconfig
RUN pip install -r ./deploy/requirements_snowflake.txt