Browse Source

Container with R and jupyter

master
commit
82512ee4ad
7 changed files with 45 additions and 0 deletions
  1. +2
    -0
      .bashrc
  2. +31
    -0
      Dockerfile
  3. +2
    -0
      Readme.md
  4. +7
    -0
      config-files/.bash_history
  5. +1
    -0
      config-files/.jupyter/migrated
  6. +1
    -0
      config-files/.local/share/jupyter/runtime/notebook_cookie_secret
  7. +1
    -0
      runcon.sh

+ 2
- 0
.bashrc View File

@ -0,0 +1,2 @@
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8

+ 31
- 0
Dockerfile View File

@ -0,0 +1,31 @@
# Using Arch
FROM archlinux:base
ENV UNAME = "archlinux"
MAINTAINER gmarxcc
LABEL version = "0.1"
ENV LANG = C.UTF-8 LC_ALL=C.UTF-8
# installing python 3, git and pip3:
RUN pacman -Syu --noconfirm
RUN pacman -Syu --noconfirm vim git make
RUN pacman -Syu --noconfirm jupyter-notebook r gcc
RUN R -e "install.packages('IRkernel',dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "IRkernel::installspec(user = FALSE)"
# installing modules:
#RUN pip3 install numpy \
#pandas \
#matplotlib \
#scipy \
#researchpy \
#sklearn \
#seaborn \
#statsmodels \
#numdifftools \
WORKDIR /home
COPY .bashrc .bashrc
#RUN pip install -r requirements.txt
EXPOSE 8888
#CMD ["flask", "run"]

+ 2
- 0
Readme.md View File

@ -0,0 +1,2 @@
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'

+ 7
- 0
config-files/.bash_history View File

@ -0,0 +1,7 @@
jupyter-notebook --allow-root --ip=0.0.0.0 --NotebookApp.token=''
ls
exit
jupyter-notebook --allow-root --ip=0.0.0.0 --NotebookApp.token=''
exit
:q!
exit

+ 1
- 0
config-files/.jupyter/migrated View File

@ -0,0 +1 @@
2022-02-17T05:08:15.156557

+ 1
- 0
config-files/.local/share/jupyter/runtime/notebook_cookie_secret View File

@ -0,0 +1 @@
IsR596HDRgvYl+8F/kEZ3UaVmx3Yt1e9zHJoQEpja7U=

+ 1
- 0
runcon.sh View File

@ -0,0 +1 @@
docker run -it -p 8888:8888 -v $(pwd)/data:/home -v $(pwd)/config-files/:/root arch-container

Loading…
Cancel
Save