Skip to content

Commit

Permalink
Merge pull request #96 from emqx/1017-install-fresh-git-in-debian10
Browse files Browse the repository at this point in the history
fix: install fresh git in Debian 10
  • Loading branch information
id authored Oct 18, 2023
2 parents eb08028 + d3fe2fb commit d6df391
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions debian10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ RUN apt-get update && apt-get install -y \
build-essential \
curl \
debhelper \
expect \
flex \
g++ \
gcc \
git \
jq \
krb5-admin-server \
krb5-kdc \
libcurl4-openssl-dev \
libffi-dev \
libkrb5-3 \
libkrb5-dev \
Expand All @@ -27,24 +31,18 @@ RUN apt-get update && apt-get install -y \
libssl-dev \
libtool \
make \
make \
procps \
unixodbc \
unixodbc-dev \
unzip \
vim \
wget \
zip \
zlib1g-dev
zlib1g-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# The following is not necessary for Kerberos authentication but makes testing
# https://github.com/kafka4beam/sasl_auth easier
RUN apt-get install -y \
krb5-kdc \
krb5-admin-server \
expect

RUN apt-get install -y gcc make zlib1g-dev libffi-dev libssl-dev \
&& wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \
RUN wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \
&& tar xvf Python-3.7.4.tgz \
&& cd Python-3.7.4 \
&& echo "_socket socketmodule.c" >> Modules/Setup.dist \
Expand All @@ -55,17 +53,18 @@ RUN apt-get install -y gcc make zlib1g-dev libffi-dev libssl-dev \
&& rm -rf /usr/bin/python3 /usr/bin/python \
&& ln -s /usr/local/python3.7.4/bin/python3.7 /usr/bin/python3 \
&& ln -s /usr/local/python3.7.4/bin/python3.7 /usr/bin/python

RUN curl -k -L -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py \
&& python /tmp/get-pip.py \
&& python3 /tmp/get-pip.py

ENV PATH=/usr/local/python3.7.4/bin:$PATH

COPY get-cmake.sh /get-cmake.sh
RUN /get-cmake.sh build
ADD get-git.sh get-cmake.sh /

RUN /get-git.sh && git --version && rm /get-git.sh

# cleanup
RUN apt-get clean\
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN /get-cmake.sh build && rm /get-cmake.sh

# Elixir complains if runs without UTF-8
ENV LC_ALL=C.UTF-8
Expand Down

0 comments on commit d6df391

Please sign in to comment.