File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.0 )
2- project (Pink VERSION 2.1 LANGUAGES C CXX )
2+ project (Pink VERSION 2.2 LANGUAGES C CXX )
33
44message (STATUS "${PROJECT_NAME} version ${PROJECT_VERSION} " )
55
Original file line number Diff line number Diff line change 33class RecordConan (ConanFile ):
44
55 name = "pink"
6- version = "2.1 "
6+ version = "2.2 "
77 license = "GPLv3"
88 description = "Parallelized rotation and flipping INvariant Kohonen maps"
99 homepage = "https://github.com/HITS-AIN/PINK"
Original file line number Diff line number Diff line change 1+ chown -R $USER_NAME :$GROUP_NAME /notebooks
Original file line number Diff line number Diff line change 1- FROM ubuntu: 18.04
1+ FROM braintwister/ ubuntu- 18.04-cmake-3.14-gcc-8-conan-1.16
22
33LABEL maintainer="Bernd Doser <bernd.doser@h-its.org>"
44
@@ -13,13 +13,6 @@ RUN echo $TZ > /etc/timezone && \
1313 apt-get clean
1414
1515RUN apt-get update && apt-get install -y --no-install-recommends \
16- build-essential \
17- cmake \
18- git \
19- python3 \
20- python3-dev \
21- python3-pip \
22- python3-setuptools \
2316 python3-tk \
2417 && \
2518 apt-get clean && \
@@ -28,34 +21,30 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2821RUN pip3 install --upgrade pip && \
2922 hash -r pip3 && \
3023 pip3 install -I \
31- conan \
3224 jupyter \
3325 matplotlib \
3426 numpy \
3527 tensorflow \
3628 tqdm
3729
38- RUN conan remote add braintwister https://api.bintray.com/conan/braintwister/conan && \
39- conan remote add conan-community https://api.bintray.com/conan/conan-community/conan && \
40- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
41-
4230RUN git clone https://github.com/HITS-AIN/PINK.git && \
4331 cd PINK && \
44- git checkout 2.1 && \
32+ git checkout 2.2 && \
4533 mkdir build && cd build && \
4634 cmake .. && \
4735 make
4836
49- RUN cd PINK/build && \
50- make test
51-
5237ENV PYTHONPATH /PINK/build/lib
5338ENV JUPYTER_PATH /PINK/build/lib
5439
5540COPY notebooks-cpu /notebooks
5641
42+ # Add entrypoint
43+ ADD chmod_notebooks.sh /entrypoint.d/
44+
5745# Set up notebook config
58- COPY jupyter_notebook_config.py /root/.jupyter/
46+ COPY jupyter_notebook_config.py /jupyter-config/
47+ ENV JUPYTER_CONFIG_DIR /jupyter-config
5948
6049WORKDIR /notebooks
6150EXPOSE 8888
Original file line number Diff line number Diff line change 1- FROM ubuntu: 18.04
1+ FROM braintwister/ ubuntu- 18.04
22
33LABEL maintainer="Bernd Doser <bernd.doser@h-its.org>"
44
@@ -13,10 +13,6 @@ RUN echo $TZ > /etc/timezone && \
1313 apt-get clean
1414
1515RUN apt-get update && apt-get install -y --no-install-recommends \
16- python3 \
17- python3-dev \
18- python3-pip \
19- python3-setuptools \
2016 python3-tk \
2117 && \
2218 apt-get clean && \
@@ -31,11 +27,18 @@ RUN pip3 install --upgrade pip && \
3127 tensorflow \
3228 tqdm
3329
34- ENV PYTHONPATH /PINK/build/lib
35- ENV JUPYTER_PATH /PINK/build/lib
30+ ENV PYTHONPATH /PINK/build/default/lib
31+ ENV JUPYTER_PATH /PINK/build/default/lib
32+
33+ # Set up notebook config
34+ COPY jupyter_notebook_config.py /jupyter-config/
35+ ENV JUPYTER_CONFIG_DIR /jupyter-config
3636
3737COPY notebooks-cpu /notebooks
3838
39+ # Add entrypoint
40+ ADD chmod_notebooks.sh /entrypoint.d/
41+
3942WORKDIR /notebooks
4043EXPOSE 8888
4144
Original file line number Diff line number Diff line change @@ -13,13 +13,6 @@ RUN echo $TZ > /etc/timezone && \
1313 apt-get clean
1414
1515RUN apt-get update && apt-get install -y --no-install-recommends \
16- build-essential \
17- cmake \
18- git \
19- python3 \
20- python3-dev \
21- python3-pip \
22- python3-setuptools \
2316 python3-tk \
2417 && \
2518 apt-get clean && \
@@ -28,34 +21,30 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2821RUN pip3 install --upgrade pip && \
2922 hash -r pip3 && \
3023 pip3 install -I \
31- conan \
3224 jupyter \
3325 matplotlib \
3426 numpy \
3527 tensorflow \
3628 tqdm
3729
38- RUN conan remote add braintwister https://api.bintray.com/conan/braintwister/conan && \
39- conan remote add conan-community https://api.bintray.com/conan/conan-community/conan && \
40- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
41-
4230RUN git clone https://github.com/HITS-AIN/PINK.git && \
4331 cd PINK && \
44- git checkout 2.1 && \
32+ git checkout 2.2 && \
4533 mkdir build && cd build && \
4634 cmake .. && \
4735 make
4836
49- #RUN cd PINK/build && \
50- # make test
51-
5237ENV PYTHONPATH /PINK/build/lib
5338ENV JUPYTER_PATH /PINK/build/lib
5439
5540COPY notebooks-gpu /notebooks
5641
42+ # Add entrypoint
43+ ADD chmod_notebooks.sh /entrypoint.d/
44+
5745# Set up notebook config
58- COPY jupyter_notebook_config.py /root/.jupyter/
46+ COPY jupyter_notebook_config.py /jupyter-config/
47+ ENV JUPYTER_CONFIG_DIR /jupyter-config
5948
6049WORKDIR /notebooks
6150EXPOSE 8888
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ RUN echo $TZ > /etc/timezone && \
1313 apt-get clean
1414
1515RUN apt-get update && apt-get install -y --no-install-recommends \
16- python3 \
17- python3-dev \
18- python3-pip \
19- python3-setuptools \
2016 python3-tk \
2117 && \
2218 apt-get clean && \
@@ -31,11 +27,19 @@ RUN pip3 install --upgrade pip && \
3127 tensorflow \
3228 tqdm
3329
34- ENV PYTHONPATH /PINK/build/lib
35- ENV JUPYTER_PATH /PINK/build/lib
30+ ENV PYTHONPATH /PINK/build/default/lib
31+ ENV JUPYTER_PATH /PINK/build/default/lib
32+ ENV LD_LIBRARY_PATH /PINK/build/default/lib
33+
34+ # Set up notebook config
35+ COPY jupyter_notebook_config.py /jupyter-config/
36+ ENV JUPYTER_CONFIG_DIR /jupyter-config
3637
3738COPY notebooks-gpu /notebooks
3839
40+ # Add entrypoint
41+ ADD chmod_notebooks.sh /entrypoint.d/
42+
3943WORKDIR /notebooks
4044EXPOSE 8888
4145
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments