Skip to content

Commit 5d89729

Browse files
committed
Release bugfix version 2.2
Update docker-jupyter images
1 parent 0c7daed commit 5d89729

8 files changed

Lines changed: 60 additions & 70 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.0)
2-
project(Pink VERSION 2.1 LANGUAGES C CXX)
2+
project(Pink VERSION 2.2 LANGUAGES C CXX)
33

44
message(STATUS "${PROJECT_NAME} version ${PROJECT_VERSION}")
55

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class 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"

tools/chmod_notebooks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
chown -R $USER_NAME:$GROUP_NAME /notebooks

tools/dockerfile-cpu

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:18.04
1+
FROM braintwister/ubuntu-18.04-cmake-3.14-gcc-8-conan-1.16
22

33
LABEL maintainer="Bernd Doser <bernd.doser@h-its.org>"
44

@@ -13,13 +13,6 @@ RUN echo $TZ > /etc/timezone && \
1313
apt-get clean
1414

1515
RUN 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 \
2821
RUN 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-
4230
RUN 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-
5237
ENV PYTHONPATH /PINK/build/lib
5338
ENV JUPYTER_PATH /PINK/build/lib
5439

5540
COPY 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

6049
WORKDIR /notebooks
6150
EXPOSE 8888

tools/dockerfile-cpu-devel

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:18.04
1+
FROM braintwister/ubuntu-18.04
22

33
LABEL maintainer="Bernd Doser <bernd.doser@h-its.org>"
44

@@ -13,10 +13,6 @@ RUN echo $TZ > /etc/timezone && \
1313
apt-get clean
1414

1515
RUN 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

3737
COPY notebooks-cpu /notebooks
3838

39+
# Add entrypoint
40+
ADD chmod_notebooks.sh /entrypoint.d/
41+
3942
WORKDIR /notebooks
4043
EXPOSE 8888
4144

tools/dockerfile-gpu

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ RUN echo $TZ > /etc/timezone && \
1313
apt-get clean
1414

1515
RUN 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 \
2821
RUN 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-
4230
RUN 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-
5237
ENV PYTHONPATH /PINK/build/lib
5338
ENV JUPYTER_PATH /PINK/build/lib
5439

5540
COPY 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

6049
WORKDIR /notebooks
6150
EXPOSE 8888

tools/dockerfile-gpu-devel

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ RUN echo $TZ > /etc/timezone && \
1313
apt-get clean
1414

1515
RUN 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

3738
COPY notebooks-gpu /notebooks
3839

40+
# Add entrypoint
41+
ADD chmod_notebooks.sh /entrypoint.d/
42+
3943
WORKDIR /notebooks
4044
EXPOSE 8888
4145

tools/notebooks-gpu/train.ipynb

Lines changed: 24 additions & 20 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)