diff --git a/.bins/jupyter b/.bins/jupyter new file mode 100755 index 0000000..26dd94a --- /dev/null +++ b/.bins/jupyter @@ -0,0 +1,3 @@ +#! /bin/bash +jupyter-notebook --allow-root --ip=0.0.0.0 --NotebookApp.token='' + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c118901 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +config-files/.* diff --git a/Dockerfile b/Dockerfile index 34bd403..588a463 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,22 +5,23 @@ MAINTAINER gmarxcc LABEL version = "0.1" ENV LANG = C.UTF-8 LC_ALL=C.UTF-8 -# installing python 3, git and pip3: +# installing vim git make and other tools RUN pacman -Syu --noconfirm RUN pacman -Syu --noconfirm vim git make RUN pacman -Syu --noconfirm jupyter-notebook r gcc +RUN pacman -Syu --noconfirm pandoc gnuplot emacs + +#Installing LaTeX +#--> Delete comment to enable Full LaTeX installation +#RUN pacman -Syu --noconfirm texlive-most +#--> basic installation or minimal +RUN pacman -Syu --noconfirm texlive-core # Installing R packages and enabling R in jupyter -COPY .bashrc .bashrc RUN R -e "install.packages('IRkernel',dependencies=TRUE, repos='http://cran.rstudio.com/')" RUN R -e "IRkernel::installspec(user = FALSE)" -# Installing LaTeX -#Delete comment to enable Full LaTeX installation -#RUN pacman -Syu --noconfirm texlive-most -#basic installation or minimal -RUN pacman -Syu --noconfirm texlive-core -# installing modules: +# Installng modules: #RUN pip3 install numpy \ #pandas \ #matplotlib \ @@ -32,6 +33,8 @@ RUN pacman -Syu --noconfirm texlive-core #numdifftools \ WORKDIR /home -#RUN pip install -r requirements.txt +COPY .bashrc .bashrc +COPY .bins/* /usr/local/bin + EXPOSE 8888 #CMD ["flask", "run"] diff --git a/Readme.md b/Readme.md index d899542..816e73a 100644 --- a/Readme.md +++ b/Readme.md @@ -1,2 +1,15 @@ +# Readme + +To run the container use: + +``` shell docker run -it -p 8888:8888 -v /Users/gmarx/lwc/academia/courses/md/arch-container/data:/home arch-container -'docker run -it -p 8888:8888 -v /Users/gmarx/lwc/academia/courses/md/arch-container/data:/home arch-container' +``` + +or use the command `./runcon.sh` command + +inside the container you can run several commands to work with, like jupyter notebook: + +``` shell +jupyter-notebook --allow-root --ip=0.0.0.0 --NotebookApp.token='' +``` diff --git a/data/markdown/example.md b/data/markdown/example.md new file mode 100644 index 0000000..a4e53c0 --- /dev/null +++ b/data/markdown/example.md @@ -0,0 +1,11 @@ +# Introduction + +Some text here + +# Methodology + +More text + +## Experimental procedure + +More texte over here diff --git a/runcon.sh b/runcon.sh index d654866..cf91f48 100755 --- a/runcon.sh +++ b/runcon.sh @@ -1 +1,3 @@ -docker run -it -p 8888:8888 -v $(pwd)/data:/home -v $(pwd)/config-files/:/root arch-container +docker run -it -p 8888:8888 -v $(pwd)/data:/home \ +-v $(pwd)/config-files/:/root \ +gmarx/arch-container:0.1