🚧 Install pyenv

test/github-actions
Gerber, Mike 2 years ago
parent 55ebfb807a
commit e608fdae1d

@ -20,6 +20,17 @@ RUN echo "APT::Acquire::Retries \"3\";" > /etc/apt/apt.conf.d/80-retries && \
xmlstarlet \ xmlstarlet \
# OCR-D uses ImageMagick for pixel density estimation # OCR-D uses ImageMagick for pixel density estimation
imagemagick \ imagemagick \
# pyenv builds
# TODO: builder container?
libz-dev \
libssl-dev \
libbz2-dev \
liblzma-dev \
libncurses-dev \
libffi-dev \
libreadline-dev \
libsqlite3-dev \
libmagic-dev \
&& \ && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
@ -33,13 +44,15 @@ RUN echo "setOverrideLogLevel(os.getenv('LOG_LEVEL', 'INFO'))" >/etc/ocrd_loggin
# TODO: do not run as root # TODO: do not run as root
# TODO: does just saying "3.7" work as intended? # TODO: does just saying "3.7" work as intended?
ENV HOME=/root ENV HOME=/root
ENV PYENV_ROOT=$HOME/.pyenv ENV PYENV_ROOT=/usr/local/share/pyenv
ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
RUN \ RUN \
git clone --depth=1 https://github.com/yyuu/pyenv.git $HOME/.pyenv && \ git clone --depth=1 https://github.com/yyuu/pyenv.git $PYENV_ROOT && \
pyenv install 3.7 && \ pyenv install 3.7 && \
pyenv global 3.7 && \ pyenv global 3.7 && \
pyenv rehash pyenv rehash && \
pip install -U pip && \
pip install setuptools
# Install pip installable-stuff # Install pip installable-stuff
RUN ${PIP_INSTALL} \ RUN ${PIP_INSTALL} \

@ -45,7 +45,7 @@ get_from_web() {
download_to --strip-components 1 'https://qurator-data.de/eynollah/models_eynollah.tar.gz' 'eynollah' download_to --strip-components 1 'https://qurator-data.de/eynollah/models_eynollah.tar.gz' 'eynollah'
} }
. $self_dir/qurator_data_lib.sh . $self_dir/qurator_data_lib.sh
handle_data #handle_data

Loading…
Cancel
Save