Skip to content

Commit

Permalink
👍 download a logo in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
akabe committed Jun 26, 2017
1 parent ad903d3 commit edecec7
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 10 deletions.
5 changes: 4 additions & 1 deletion dockerfiles/centos7_ocaml4.04.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,7 @@ RUN curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorfl

ADD custom.css /home/opam/.jupyter/custom/custom.css
ADD notebook.json /home/opam/.jupyter/nbconfig/notebook.json
ADD iocamlnblogo.png /home/opam/.jupyter/custom/iocamlnblogo.png

RUN sudo chown opam:opam -R /home/opam/.jupyter && \
curl -L https://raw.githubusercontent.com/andrewray/iocaml/master/profile/static/custom/iocamlnblogo.png \
-o /home/opam/.jupyter/custom/iocamlnblogo.png
Binary file removed dockerfiles/centos7_ocaml4.04.1/iocamlnblogo.png
Binary file not shown.
5 changes: 4 additions & 1 deletion dockerfiles/centos7_ocaml4.05.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,7 @@ RUN curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorfl

ADD custom.css /home/opam/.jupyter/custom/custom.css
ADD notebook.json /home/opam/.jupyter/nbconfig/notebook.json
ADD iocamlnblogo.png /home/opam/.jupyter/custom/iocamlnblogo.png

RUN sudo chown opam:opam -R /home/opam/.jupyter && \
curl -L https://raw.githubusercontent.com/andrewray/iocaml/master/profile/static/custom/iocamlnblogo.png \
-o /home/opam/.jupyter/custom/iocamlnblogo.png
Binary file removed dockerfiles/centos7_ocaml4.05.0/iocamlnblogo.png
Binary file not shown.
5 changes: 4 additions & 1 deletion dockerfiles/centos7_ocaml4.06.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,7 @@ RUN curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorfl

ADD custom.css /home/opam/.jupyter/custom/custom.css
ADD notebook.json /home/opam/.jupyter/nbconfig/notebook.json
ADD iocamlnblogo.png /home/opam/.jupyter/custom/iocamlnblogo.png

RUN sudo chown opam:opam -R /home/opam/.jupyter && \
curl -L https://raw.githubusercontent.com/andrewray/iocaml/master/profile/static/custom/iocamlnblogo.png \
-o /home/opam/.jupyter/custom/iocamlnblogo.png
Binary file removed dockerfiles/centos7_ocaml4.06.0/iocamlnblogo.png
Binary file not shown.
5 changes: 4 additions & 1 deletion dockerfiles/debian8_ocaml4.04.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,7 @@ RUN curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorfl

ADD custom.css /home/opam/.jupyter/custom/custom.css
ADD notebook.json /home/opam/.jupyter/nbconfig/notebook.json
ADD iocamlnblogo.png /home/opam/.jupyter/custom/iocamlnblogo.png

RUN sudo chown opam:opam -R /home/opam/.jupyter && \
curl -L https://raw.githubusercontent.com/andrewray/iocaml/master/profile/static/custom/iocamlnblogo.png \
-o /home/opam/.jupyter/custom/iocamlnblogo.png
Binary file removed dockerfiles/debian8_ocaml4.04.1/iocamlnblogo.png
Binary file not shown.
5 changes: 4 additions & 1 deletion dockerfiles/debian8_ocaml4.05.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,7 @@ RUN curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorfl

ADD custom.css /home/opam/.jupyter/custom/custom.css
ADD notebook.json /home/opam/.jupyter/nbconfig/notebook.json
ADD iocamlnblogo.png /home/opam/.jupyter/custom/iocamlnblogo.png

RUN sudo chown opam:opam -R /home/opam/.jupyter && \
curl -L https://raw.githubusercontent.com/andrewray/iocaml/master/profile/static/custom/iocamlnblogo.png \
-o /home/opam/.jupyter/custom/iocamlnblogo.png
Binary file removed dockerfiles/debian8_ocaml4.05.0/iocamlnblogo.png
Binary file not shown.
5 changes: 4 additions & 1 deletion dockerfiles/debian8_ocaml4.06.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,7 @@ RUN curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorfl

ADD custom.css /home/opam/.jupyter/custom/custom.css
ADD notebook.json /home/opam/.jupyter/nbconfig/notebook.json
ADD iocamlnblogo.png /home/opam/.jupyter/custom/iocamlnblogo.png

RUN sudo chown opam:opam -R /home/opam/.jupyter && \
curl -L https://raw.githubusercontent.com/andrewray/iocaml/master/profile/static/custom/iocamlnblogo.png \
-o /home/opam/.jupyter/custom/iocamlnblogo.png
Binary file removed dockerfiles/debian8_ocaml4.06.0/iocamlnblogo.png
Binary file not shown.
12 changes: 8 additions & 4 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ $(common_scripts) && \\
ADD custom.css /home/opam/.jupyter/custom/custom.css
ADD notebook.json /home/opam/.jupyter/nbconfig/notebook.json
ADD iocamlnblogo.png /home/opam/.jupyter/custom/iocamlnblogo.png
RUN sudo chown opam:opam -R /home/opam/.jupyter && \\
curl -L https://raw.githubusercontent.com/andrewray/iocaml/master/profile/static/custom/iocamlnblogo.png \\
-o /home/opam/.jupyter/custom/iocamlnblogo.png
EOF
}

Expand Down Expand Up @@ -164,7 +167,10 @@ $(common_scripts) && \\
ADD custom.css /home/opam/.jupyter/custom/custom.css
ADD notebook.json /home/opam/.jupyter/nbconfig/notebook.json
ADD iocamlnblogo.png /home/opam/.jupyter/custom/iocamlnblogo.png
RUN sudo chown opam:opam -R /home/opam/.jupyter && \\
curl -L https://raw.githubusercontent.com/andrewray/iocaml/master/profile/static/custom/iocamlnblogo.png \\
-o /home/opam/.jupyter/custom/iocamlnblogo.png
EOF
}

Expand All @@ -173,8 +179,6 @@ echo "Generating dockerfiles/$TAG/Dockerfile (ALIAS=${ALIAS[@]})..."
rm -rf dockerfiles/$TAG
mkdir -p dockerfiles/$TAG

curl -sL https://raw.githubusercontent.com/andrewray/iocaml/master/profile/static/custom/iocamlnblogo.png -o dockerfiles/$TAG/iocamlnblogo.png

cat <<'EOF' > dockerfiles/$TAG/custom.css
.CodeMirror pre, .output pre {
font-family: "Ricty Diminished Discord", "Ricty Diminished", "Lucida Console", Monaco, monospace;
Expand Down

0 comments on commit edecec7

Please sign in to comment.