commit 82512ee4adecbf83300c384d54d0a1cbcd5849b4 Author: Gerardo Marx Date: Wed Feb 16 23:13:18 2022 -0600 Container with R and jupyter diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..863d4e2 --- /dev/null +++ b/.bashrc @@ -0,0 +1,2 @@ +export LANG=en_US.UTF-8 +export LC_ALL=en_US.UTF-8 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..177ff92 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..d899542 --- /dev/null +++ b/Readme.md @@ -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' diff --git a/config-files/.bash_history b/config-files/.bash_history new file mode 100644 index 0000000..35f2ecc --- /dev/null +++ b/config-files/.bash_history @@ -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 diff --git a/config-files/.jupyter/migrated b/config-files/.jupyter/migrated new file mode 100644 index 0000000..f26fd90 --- /dev/null +++ b/config-files/.jupyter/migrated @@ -0,0 +1 @@ +2022-02-17T05:08:15.156557 \ No newline at end of file diff --git a/config-files/.local/share/jupyter/runtime/notebook_cookie_secret b/config-files/.local/share/jupyter/runtime/notebook_cookie_secret new file mode 100644 index 0000000..785b953 --- /dev/null +++ b/config-files/.local/share/jupyter/runtime/notebook_cookie_secret @@ -0,0 +1 @@ +IsR596HDRgvYl+8F/kEZ3UaVmx3Yt1e9zHJoQEpja7U= diff --git a/runcon.sh b/runcon.sh new file mode 100755 index 0000000..d654866 --- /dev/null +++ b/runcon.sh @@ -0,0 +1 @@ +docker run -it -p 8888:8888 -v $(pwd)/data:/home -v $(pwd)/config-files/:/root arch-container