File tree Expand file tree Collapse file tree 3 files changed +641
-1
lines changed
Expand file tree Collapse file tree 3 files changed +641
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ RUN apt-get update --yes > /dev/null && \
5757 r-recommended \
5858 r-base-dev \
5959 r-cran-littler \
60+ openjdk-11-jdk \
6061 nodejs > /dev/null
6162
6263# Utilities
@@ -88,6 +89,11 @@ RUN curl --silent --location --fail ${RSTUDIO_URL} > /tmp/rstudio.deb && \
8889 dpkg -i /tmp/rstudio.deb && \
8990 rm /tmp/rstudio.deb
9091
92+ # Setup OpenRefine
93+ ENV OPENREFINE_DIR /srv/openrefine
94+ RUN mkdir -p ${OPENREFINE_DIR} && cd ${OPENREFINE_DIR} && \
95+ curl -L https://github.com/OpenRefine/OpenRefine/releases/download/3.4.1/openrefine-linux-3.4.1.tar.gz | tar xzf - --strip=1
96+ COPY proxies/openrefine-logo.svg ${OPENREFINE_DIR}}/openrefine-logo.svg
9197
9298# Machine-learning type stuff
9399RUN apt-get install --yes \
@@ -179,4 +185,7 @@ COPY banner /etc/bash.bashrc
179185# use custom css to hide clusters tab
180186COPY --chown=tools.paws:tools.paws hide_clusters_tab.css /home/paws/.jupyter/custom/custom.css
181187
182- EXPOSE 8888
188+ # Setup custom config as needed
189+ COPY jupyter_notebook_config.py /srv/paws/etc/jupyter/jupyter_notebook_config.py
190+
191+ EXPOSE 8888
Original file line number Diff line number Diff line change 1+ # Disable flake8 for this file, since it's a config file not just python
2+ # flake8: noqa
3+ import os
4+
5+ openrefine_path = os .path .join (os .environ ["OPENREFINE_DIR" ], "refine" )
6+ openrefine_logo_path = os .path .join (
7+ os .environ ["OPENREFINE_DIR" ], "openrefine-logo.svg"
8+ )
9+ c .ServerProxy .servers = {
10+ "openrefine" : {
11+ "command" : [
12+ openrefine_path ,
13+ "-p" ,
14+ "{port}" ,
15+ "-d" ,
16+ os .path .expanduser ("~" ),
17+ ],
18+ "port" : 3333 ,
19+ "timeout" : 120 ,
20+ "launcher_entry" : {
21+ "enabled" : True ,
22+ "icon_path" : openrefine_logo_path ,
23+ "title" : "OpenRefine" ,
24+ },
25+ },
26+ }
You can’t perform that action at this time.
0 commit comments