Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Remove Duplicate Timezone #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 1 addition & 36 deletions base-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
bsdmainutils\
doxygen

RUN if ! [ -L /etc/localtime ]; then \
sudo ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime; \
fi

RUN apt -y update
# RUN apt install -y build-essential python3.8 python3.8-dev python3-pip




# RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo

# USER docker

RUN mkdir -p /build_dir
# RUN chown docker /build_dir

WORKDIR /build_dir
RUN curl -L -O https://github.com/Kitware/CMake/releases/download/v3.19.3/cmake-3.19.3-Linux-x86_64.sh
Expand All @@ -55,16 +43,7 @@ RUN if [ ! -f "$HOME/.pyenv/bin/pyenv" ]; then \
ENV PYTHON_VERSION 3.9.1
ENV PYENV_ROOT $HOME/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
# RUN set -ex \
# && curl https://pyenv.run | bash \
# && pyenv update \
# && pyenv install $PYTHON_VERSION \
# && pyenv global $PYTHON_VERSION \
# && pyenv rehash


#
#

RUN git clone https://github.com/BioDynaMo/biodynamo.git
WORKDIR /build_dir/biodynamo
RUN eval "$(pyenv init --path)"
Expand All @@ -88,19 +67,5 @@ RUN cmake --build build --parallel --config Release


WORKDIR /build_dir/biodynamo/build
# RUN . bin/thisbdm.sh
# SHELL ["/bin/bash", "-c", "source /build_dir/biodynamo/build/bin/thisbdm.sh"]
# ENV DISPLAY=:99.0
# RUN ninja run-unit-tests

# RUN ["/bin/bash", "-c", "source /build_dir/biodynamo/build/bin/thisbdm.sh"]
ENTRYPOINT ["/bin/bash", "-c", "source /build_dir/biodynamo/build/bin/thisbdm.sh && /bin/bash"]



# Install BioDynaMo
# ARG BDM_VERSION=v0.9.21
# RUN wget "http://cern.ch/biodynamo-lfs/biodynamo-$BDM_VERSION.tar.gz"
# RUN mkdir -p /opt/biodynamo
# RUN tar -zxf biodynamo-${BDM_VERSION}.tar.gz -C /opt/biodynamo
# RUN rm biodynamo-${BDM_VERSION}.tar.gz