Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 606f965c78 | |||
| b70f746c23 | |||
| 09dba9ae07 | |||
| af0090a860 |
3 changed files with 29 additions and 20 deletions
|
|
@ -28,16 +28,10 @@ RUN apt install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force
|
||||||
RUN rm /tmp/apt.list
|
RUN rm /tmp/apt.list
|
||||||
# Shell
|
# Shell
|
||||||
RUN chsh -s /usr/bin/zsh root
|
RUN chsh -s /usr/bin/zsh root
|
||||||
# Latex packages
|
|
||||||
COPY ./tex.list /tmp/apt.list
|
|
||||||
RUN apt install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y $(grep -vE "^\s*#" /tmp/apt.list | tr "\n" " ")
|
|
||||||
RUN rm /tmp/apt.list
|
|
||||||
# FRET packages
|
# FRET packages
|
||||||
COPY ./fret.list /tmp/apt.list
|
COPY ./fret.list /tmp/apt.list
|
||||||
RUN apt install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y $(grep -vE "^\s*#" /tmp/apt.list | tr "\n" " ")
|
RUN apt install -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y $(grep -vE "^\s*#" /tmp/apt.list | tr "\n" " ")
|
||||||
RUN rm /tmp/apt.list
|
RUN rm /tmp/apt.list
|
||||||
# Nix
|
|
||||||
RUN nix profile install nixpkgs\#chromium
|
|
||||||
# Add user dev
|
# Add user dev
|
||||||
RUN useradd -d /root -g root dev
|
RUN useradd -d /root -g root dev
|
||||||
RUN chmod g+w /root
|
RUN chmod g+w /root
|
||||||
|
|
|
||||||
29
README.md
Normal file
29
README.md
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# FRET Development Environment
|
||||||
|
## pull / build the image
|
||||||
|
```sh
|
||||||
|
podman build -t git.berger.ruhr/alwin/dev-pod .
|
||||||
|
# or
|
||||||
|
podman pull git.berger.ruhr/alwin/dev-pod:fret
|
||||||
|
```
|
||||||
|
## create the contaienr
|
||||||
|
Point WORKDIR to whererver your repos are.
|
||||||
|
Point FRETHOME to some other directory, which can serve as the home directory inside the container.
|
||||||
|
Make sure to initialize an ssh config under $FRETHOME
|
||||||
|
```sh
|
||||||
|
podman create --name fretpod -p 2222:22 -v basestore:/nix/store -v $FRETHOME:/root -v $WORKDIR:/root/WORK git.berger.ruhr/alwin/dev-pod:fret
|
||||||
|
```
|
||||||
|
## start and enter the container
|
||||||
|
```sh
|
||||||
|
# start
|
||||||
|
podman start fretpod
|
||||||
|
# enter using ssh
|
||||||
|
ssh -p 2222 root@127.0.0.1
|
||||||
|
# or enter directly using podman
|
||||||
|
podman exec -it fretpod zsh
|
||||||
|
```
|
||||||
|
## (optinal) auto-start the container
|
||||||
|
```sh
|
||||||
|
podman generate systemd fretpod > ~/.config/systemd/user/fretpod.service
|
||||||
|
systemctl --user daemon-reload
|
||||||
|
systemctl --user enable --now fretpod
|
||||||
|
```
|
||||||
14
tex.list
14
tex.list
|
|
@ -1,14 +0,0 @@
|
||||||
# latex
|
|
||||||
texlive-lang-english
|
|
||||||
texlive-lang-german
|
|
||||||
texlive-latex-extra
|
|
||||||
texlive-science
|
|
||||||
texlive-xetex
|
|
||||||
texlive-fonts-extra
|
|
||||||
texlive-bibtex-extra
|
|
||||||
#texlive-full
|
|
||||||
biber
|
|
||||||
latexmk
|
|
||||||
psutils
|
|
||||||
pandoc
|
|
||||||
pdftk-java
|
|
||||||
Loading…
Reference in a new issue