Skip to content
Snippets Groups Projects
Verified Commit 7e093adc authored by Benedikt Wildenhain's avatar Benedikt Wildenhain
Browse files

Added container with mathreader

parent 28cb155a
Branches
No related tags found
No related merge requests found
......@@ -35,6 +35,9 @@ TF
echo -e "\e[0;33m"
if [[ $EUID -eq 0 ]]; then
# Fix CUDA loading for running nvidia-smi
ldconfig
cat <<WARN
WARNING: You are running this container as root, which can cause new files in
mounted volumes to be created as the root user on your host machine.
......@@ -53,5 +56,3 @@ fi
# Turn off colors
echo -e "\e[m"
# Fix CUDA loading for running nvidia-smi
ldconfig
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
FROM ubuntu:22.04 as base
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG C.UTF-8
COPY setup.sources.sh /setup.sources.sh
COPY setup.packages.sh /setup.packages.sh
COPY cpu.packages.txt /cpu.packages.txt
RUN /setup.sources.sh
RUN /setup.packages.sh /cpu.packages.txt
ARG PYTHON_VERSION=python3.11
#ARG TENSORFLOW_PACKAGE=tf-2.2.0
COPY setup.python.sh /setup.python.sh
COPY mathreader.requirements.txt /mathreader.requirements.txt
RUN /setup.python.sh $PYTHON_VERSION /mathreader.requirements.txt
#RUN pip install --no-cache-dir ${TENSORFLOW_PACKAGE}
COPY setup.mathreader.sh /setup.mathreader.sh
RUN /setup.mathreader.sh
COPY bashrc /etc/bash.bashrc
RUN chmod a+rwx /etc/bash.bashrc
FROM base as jupyter
#COPY jupyter.requirements.txt /jupyter.requirements.txt
#COPY setup.jupyter.sh /setup.jupyter.sh
#RUN python3 -m pip install --no-cache-dir -r /jupyter.requirements.txt -U
#RUN /setup.jupyter.sh
#COPY jupyter.readme.md /tf/tensorflow-tutorials/README.md
WORKDIR /tf
EXPOSE 8877
CMD ["bash"]
FROM base as test
COPY test.import_cpu.sh /test.import_cpu.sh
RUN /test.import_cpu.sh
idx2numpy
imageio
imutils
matplotlib
numpy
#tensorflow
bison
ply
opencv-python
h5py
Markdown
Pillow
ply
#tensorflow==2.2.0
tensorflow==2.12.0 # no older version available
#tensorflow-estimator==2.2.0
tensorflow-estimator==2.12.0
twine
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt update
apt-get install -y git libgl1
git clone https://github.com/carolreis/mathreader.git
cd mathreader
if git show-ref refs/heads/master |grep ^8eec123f6332e5d505526d6b320d8802b247cd3c; then
echo integrity of repository is okay
else
echo repository has been unexpected changed
exit 1
fi
sed -i 's/==2\.2\.0//' requirements.txt
python setup.py sdist bdist_wheel
pip install ./dist/mathreader-0.161-py3-none-any.whl
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment