Browse Source

All to start work in Linux and MacOS

master
parent
commit
6e39397c02
6 changed files with 44 additions and 11 deletions
  1. +3
    -0
      .bins/jupyter
  2. +1
    -0
      .gitignore
  3. +12
    -9
      Dockerfile
  4. +14
    -1
      Readme.md
  5. +11
    -0
      data/markdown/example.md
  6. +3
    -1
      runcon.sh

+ 3
- 0
.bins/jupyter View File

@ -0,0 +1,3 @@
#! /bin/bash
jupyter-notebook --allow-root --ip=0.0.0.0 --NotebookApp.token=''

+ 1
- 0
.gitignore View File

@ -0,0 +1 @@
config-files/.*

+ 12
- 9
Dockerfile View File

@ -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"]

+ 14
- 1
Readme.md View File

@ -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=''
```

+ 11
- 0
data/markdown/example.md View File

@ -0,0 +1,11 @@
# Introduction
Some text here
# Methodology
More text
## Experimental procedure
More texte over here

+ 3
- 1
runcon.sh View File

@ -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

Loading…
Cancel
Save