Browse Source

redis, cmd and test of isntall

redis
parent
commit
da1d1170c8
5 changed files with 88 additions and 16 deletions
  1. +46
    -16
      Dockerfile
  2. +6
    -0
      config/install-packages
  3. +16
    -0
      docker-compose.yml
  4. +10
    -0
      docker/emacs/Dockerfile
  5. +10
    -0
      scientific-emacs

+ 46
- 16
Dockerfile View File

@ -1,17 +1,53 @@
# Ubuntu bullseye
FROM debian:bullseye
FROM ubuntu:bionic
ENV UNAME="scientific-emacs"
MAINTAINER gmarxcc
LABEL version="0.1"
ENV DEBIAN_FRONTEND=noninteractive
# installing emacs
RUN apt-get update \
&& apt-get -y install emacs
# installing texlive base with pdflatex utility:
RUN apt-get update \
&& apt-get -y install \
texlive-latex-base
RUN apt-get update \
&& apt-get install -f -y \
dvipng \
ghostscript \
make \
latex-cjk-all \
latex-cjk-common \
latexmk \
lcdf-typetools \
lmodern \
poppler-utils \
psutils \
purifyeps \
t1utils \
tex-gyre \
tex4ht \
texlive-base \
texlive-bibtex-extra \
texlive-binaries \
texlive-extra-utils \
texlive-font-utils \
texlive-fonts-extra \
texlive-fonts-extra-links \
texlive-fonts-recommended \
texlive-formats-extra \
texlive-lang-all \
texlive-latex-base \
texlive-latex-extra \
texlive-latex-recommended \
texlive-luatex \
texlive-metapost \
texlive-pictures \
texlive-plain-generic \
texlive-pstricks \
texlive-publishers \
texlive-science \
texlive-xetex \
texlive-bibtex-extra
#installing some usefull apps
RUN apt-get update\
@ -23,20 +59,14 @@ RUN apt-get update\
apt-utils\
aspell\
vim\
imagemagick
# oh-my-zshell
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
imagemagick\
perl-tk \
python3
# updating texlive
#installing usefull command-line tools
RUN apt-get update\
&& apt-get -y upgrade texlive-base
# packages installation
#RUN tlmgr init-usertree
#RUN tlmgr --usermode install collection-latexrecommended\
# collection-mathscience
&& apt-get -y install \
csvkit
# init
ENTRYPOINT ["zsh"]


+ 6
- 0
config/install-packages View File

@ -1,4 +1,6 @@
#!/bin/zsh
tlmgr init-usertree
echo "Installing latex live packages"
tlmgr install babel babel-spanis infwarerr \
blindtext IEEEtran amsmath booktabs\
@ -6,3 +8,7 @@ tlmgr install babel babel-spanis infwarerr \
graphics biblatex algorithmic\
algorithm2e algorithmcx program\
pgf ms xcolor
echor "Installing oh my zshell"
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

+ 16
- 0
docker-compose.yml View File

@ -0,0 +1,16 @@
version: '3.8'
services:
this_emacs:
container_name: scientific-emacs
build: docker/emacs
volumes:
#- ./config:/home/emacs/.emacs.d
# - ./data:/home
- /tmp/.X11-unix:/tmp/.X11-unix
#- $HOME/.Xauthority:/root/.Xauthority
environment:
DISPLAY: $DISPLAY
tty: true
stdin_open: true
entrypoint: bin/bash
# redis service

+ 10
- 0
docker/emacs/Dockerfile View File

@ -0,0 +1,10 @@
# Ubuntu
FROM ubuntu:latest
ENV UNAME="scientific-emacs"
MAINTAINER gmarxcc
LABEL version="0.1"
# installing emacs
RUN apt-get update \
&& apt-get install -y emacs

+ 10
- 0
scientific-emacs View File

@ -0,0 +1,10 @@
#!/usr/bin/env zsh
# scriipt to obatin machine's ip and run the docker container
ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
xhost + $ip
echo 'running scientific-emacs:0.1'
docker run --rm -it -v ~/lwc/docker-containers/scientific-emacs/config:/root \
-v `pwd`:/home\
-e DISPLAY=$ip:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
gmarxcc/scientific-emacs:0.1

Loading…
Cancel
Save