4 Commits
0.1 ... master

2 changed files with 68 additions and 18 deletions
Unified View
  1. +63
    -15
      Readme.md
  2. +5
    -3
      docker/emacs/Dockerfile

+ 63
- 15
Readme.md View File

@ -2,11 +2,12 @@
This is the version `0.1` of scientific-emacs. This respositry contains the `Dockerfiles` to build the images for `Redis` and `Emacs`. This is the version `0.1` of scientific-emacs. This respositry contains the `Dockerfiles` to build the images for `Redis` and `Emacs`.
# Installation # Installation
To install the container first refer to the [Docker Installation Guide](https://docs.docker.com/docker-for-windows/install/). After test the **hello worlf of Docker system**, clone this repository within your
*working directory* using:
To install the Docker System first refer to the [Docker Installation Guide](https://docs.docker.com/docker-for-windows/install/). After test `docker run hello-world`.
Then, you are redy clone this repository within your *working directory* using:
``` ```
$ git clone http://gmarx.jumpingcrab.com:8088/mice-rs101/latex-basic.git
$ git clone http://gmarx.jumpingcrab.com:8088/mice-rs101/scientific-emacs
``` ```
Then, it is possible to build the *scientifc-emacs* container by: Then, it is possible to build the *scientifc-emacs* container by:
@ -14,21 +15,19 @@ Then, it is possible to build the *scientifc-emacs* container by:
``` ```
$ docker build -t scientific-emacs:0.1 docker/emacs/ $ docker build -t scientific-emacs:0.1 docker/emacs/
``` ```
Write here about container
# How to install
1. Clone this repository:
`git clone xxxx`
2. Build the container using:
`docker build -t gmarxcc/scientific-emacs:0.1 docker/emacs/`
3. Run the container to test:
`docker run --rm -it gmarxcc/scientific-emacs:0.1`
4. Run an Ubuntu command like `ls`
Run the container to test it:
```
docker run --rm -it gmarxcc/scientific-emacs:0.1`
```
and run an Ubuntu command like `ls`
Done, you are doing great! Done, you are doing great!
# Executing emacs # Executing emacs
## On Macos
To get the ip address To get the ip address
''' '''
open -a xquartz open -a xquartz
@ -38,15 +37,64 @@ xhost + $ip
To run the container To run the container
'''
```
docker run --rm -it -v`pwd`/emacs-config:/root \ docker run --rm -it -v`pwd`/emacs-config:/root \
-e DISPLAY=$ip:0 \ -e DISPLAY=$ip:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \ -v /tmp/.X11-unix:/tmp/.X11-unix \
gmarxcc/scientific-emacs:0.1 gmarxcc/scientific-emacs:0.1
'''
```
the 'emacs-config' folder contains the '.emacs' configuration file the 'emacs-config' folder contains the '.emacs' configuration file
## On windows
### Open VcXsrv
Firts open or [install *VcXsrv Windows X Server*](https://sourceforge.net/projects/vcxsrv/). When *VcXsrv Windows X Server* is open make sure to have selected as follow the **extra settings**. Check all options as below and finish configuration.
![XLauch settings](https://cuneyt.aliustaoglu.biz/en/content/images/2018/11/xlaunch.png)
### Get your ip adress
Get your IP address using ipconfig command at the **PowerShell**:
```
PS C:\Users\gmarx> ipconfig
......
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : rga.ip
IPv6 Address. . . . . . . . . . . : 2806:103e:5:e64e:d01:9a10:1ba8:8577
Temporary IPv6 Address. . . . . . : 2806:103e:5:e64e:44a7:4800:cc9a:7a3c
Link-local IPv6 Address . . . . . : fe80::d01:9a10:1ba8:8577%2
IPv4 Address. . . . . . . . . . . : 192.168.1.77
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : fe80::1%2
192.168.1.254
```
**remember to use a physical adapter activaded, it means whit an IP address, in my case is Wi-Fi adapter IPv4 192.168.1.77.
Now you can go to the folder of this repository and run the container using the next commands:
```
PS C:\Users\gmarx>cd scientific-emacs
PS C:\Users\gmarx\scientific-emacs> $ docker run --rm -it -v ${PWD}/data:/data -v ${PWD}/config/:/root -e DISPLAY=192.168.1.77:0.0 scientific-emacs:0.1
root@d442a76cd169:/#
```
this means that you are already have mounted the 'scientific-emacs:0.1' image.
Copy this code to run the container more easily:
```
docker run --rm -it -v ${PWD}/data:/data \
-v ${PWD}/config/:/root \
-e DISPLAY=your.ip:0.0 \
scientific-emacs:0.1
```
# What is installed on the repository # What is installed on the repository
The repository has previously installed The repository has previously installed
- aspell: - aspell:


+ 5
- 3
docker/emacs/Dockerfile View File

@ -10,7 +10,9 @@ RUN apt-get update \
&& apt-get install -y emacs && apt-get install -y emacs
# installing texlive base with pdflatex utility: # installing texlive base with pdflatex utility:
RUN apt-get -y install \
RUN apt-get update \
&& apt-get -y install \
# texlive-full # if you want full latex delete the first hash symbol (comment) and comment the lines 16 to 20
texlive-latex-base \ texlive-latex-base \
texlive-latex-extra \ texlive-latex-extra \
texlive-pictures \ texlive-pictures \
@ -38,7 +40,7 @@ matplotlib \
scholarly scholarly
# oh-my-zshell # oh-my-zshell
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# entrypoint # entrypoint
ENTRYPOINT ["zsh"]
# ENTRYPOINT ["zsh"]

Loading…
Cancel
Save