mirror of
				https://github.com/qurator-spk/ocrd-galley.git
				synced 2025-11-04 04:54:13 +01:00 
			
		
		
		
	🚧 Install pyenv
This commit is contained in:
		
							parent
							
								
									55ebfb807a
								
							
						
					
					
						commit
						e608fdae1d
					
				
					 2 changed files with 17 additions and 4 deletions
				
			
		| 
						 | 
					@ -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} \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								build
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								build
									
										
									
									
									
								
							| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue