diff --git a/Dockerfile b/Dockerfile index f2e1bc9..a46b583 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,15 +22,20 @@ RUN wget https://downloads.sourceforge.net/project/jtds/jtds/1.3.1/jtds-1.3.1-di && unzip Jaybird-3.0.4-JDK_1.8.zip -d lib \ && rm -rf lib/docs/ Jaybird-3.0.4-JDK_1.8.zip +# Adictional Setup +COPY ./setup.sh / +RUN chmod +x /setup.sh \ + && . /setup.sh + +# Install xauth +RUN apt-get update && apt-get install -y xauth libwebkitgtk-1.0-0 + # First time run RUN pan.sh -file ./plugins/platform-utils-plugin/samples/showPlatformVersion.ktr \ && kitchen.sh -file samples/transformations/files/test-job.kjb -# Install xauth -RUN apt-get update && apt-get install -y xauth - #VOLUME /jobs -COPY entrypoint.sh / +COPY ./entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"] CMD ["help"] diff --git a/README.md b/README.md index 7b43e8a..758c1fa 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ $ sudo curl -fsSL https://raw.githubusercontent.com/andrespp/docker-pdi/master/s $ sudo chmod +x /usr/local/bin/spoon ``` -Then you'll be able to run JupyterLab in the current directory simply by calling `jlab`: +Then you'll be able to run spoon in the current directory simply by calling `spoon`: ```bash $ spoon diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..15b6ece --- /dev/null +++ b/setup.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +## Add libwebkitgtk repository +echo deb 'http://cz.archive.ubuntu.com/ubuntu bionic main universe' >> /etc/apt/sources.list + +## Add repository PUB_KEY +KEYS=$(apt update 2>&1 1>/dev/null | sed -ne 's/.*NO_PUBKEY //p') +echo $KEYS | while read key; do apt-key adv --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys "$key"; done