... | @@ -13,7 +13,7 @@ |
... | @@ -13,7 +13,7 @@ |
|
|
|
|
|
Linus Karl has provided a DevEnv 4.5 and 4.6 image at https://quay.io/repository/recreate0674/esodevenv
|
|
Linus Karl has provided a DevEnv 4.5 and 4.6 image at https://quay.io/repository/recreate0674/esodevenv
|
|
|
|
|
|
You can use this image as a base, but it is quite empty.
|
|
You can use this image as a base and provide depedencies you needs for your software.
|
|
|
|
|
|
If you have podman in your machine, you can easily expand on an existing one:
|
|
If you have podman in your machine, you can easily expand on an existing one:
|
|
|
|
|
... | @@ -28,8 +28,8 @@ RUN dnf -y install \ |
... | @@ -28,8 +28,8 @@ RUN dnf -y install \ |
|
elt-ciisrv-common \
|
|
elt-ciisrv-common \
|
|
elt-common-tools \
|
|
elt-common-tools \
|
|
elt-common-system \
|
|
elt-common-system \
|
|
elt-ciisrv-oldb-client-devel.x86_64 \
|
|
elt-ciisrv-oldb-client-devel \
|
|
elt-ciisrv-config-ng-devel.x86_64 \
|
|
elt-ciisrv-config-ng-devel \
|
|
elt-etr \
|
|
elt-etr \
|
|
elt-mal* \
|
|
elt-mal* \
|
|
gcc \
|
|
gcc \
|
... | @@ -99,6 +99,7 @@ RUN dnf -y install python3-async-timeout python3-flask python3-networkx python3- |
... | @@ -99,6 +99,7 @@ RUN dnf -y install python3-async-timeout python3-flask python3-networkx python3- |
|
RUN dnf -y install qt5-qt3d-devel clang qt5-qttools-devel libasan libtsan libubsan
|
|
RUN dnf -y install qt5-qt3d-devel clang qt5-qttools-devel libasan libtsan libubsan
|
|
# elt-seq dependency python3-networkx introduces gtk. We remove it.
|
|
# elt-seq dependency python3-networkx introduces gtk. We remove it.
|
|
#RUN dnf -y remove gtk\*
|
|
#RUN dnf -y remove gtk\*
|
|
|
|
|
|
RUN mkdir /root/modulefiles
|
|
RUN mkdir /root/modulefiles
|
|
COPY private.lua /root/modulefiles/private.lua
|
|
COPY private.lua /root/modulefiles/private.lua
|
|
VOLUME /root/volume
|
|
VOLUME /root/volume
|
... | @@ -108,4 +109,47 @@ ENV DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/bus" |
... | @@ -108,4 +109,47 @@ ENV DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/bus" |
|
#ENV QT_QPA_PLATFORM=wayland
|
|
#ENV QT_QPA_PLATFORM=wayland
|
|
WORKDIR /root/volume
|
|
WORKDIR /root/volume
|
|
CMD ["bash"]
|
|
CMD ["bash"]
|
|
|
|
```
|
|
|
|
|
|
|
|
This is the private.lua file:
|
|
|
|
```
|
|
|
|
local homedir = os.getenv("HOME")
|
|
|
|
local introot = pathJoin(homedir .. "/volume/INTROOT")
|
|
|
|
local dataroot = pathJoin(homedir .. "/volume/DATAROOT")
|
|
|
|
setenv("PREFIX", introot)
|
|
|
|
setenv("INTROOT", introot)
|
|
|
|
setenv("DATAROOT", dataroot)
|
|
|
|
setenv("CII_LOGS", "/var/log/elt")
|
|
|
|
prepend_path("MODULEPATH", pathJoin(introot, "/etc/modulefiles"))
|
|
|
|
prepend_path("PKG_CONFIG_PATH", pathJoin(introot, "/lib64/pkgconfig"))
|
|
|
|
prepend_path("CFGPATH", dataroot .. "/config/persistent_repo")
|
|
|
|
load("introot")
|
|
|
|
try_load("ciisrv")
|
|
|
|
try_load("elt-trs")
|
|
|
|
try_load("taiclock")
|
|
|
|
try_load("cut")
|
|
|
|
|
|
|
|
-- DDT variables
|
|
|
|
setenv("DDT_TEST_DATA_DIR", "/elt/ddt/resource/image")
|
|
|
|
|
|
|
|
-- This FIXES the problem when expanding on bash with TAB
|
|
|
|
execute{cmd="shopt -s direxpand", modeA={"load"}}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Building the image
|
|
|
|
|
|
|
|
```sh
|
|
|
|
podman build -t devenv-custom:latest .
|
|
|
|
```
|
|
|
|
|
|
|
|
## Running the image
|
|
|
|
|
|
|
|
```
|
|
|
|
podman run --cpus 4 -m 8gb -e PULSE_SERVER=/run/user/$UID/pulse/native -e DISPLAY=:0 -e XAUTHORITY=$XAUTHORITY -e XDG_RUNTIME_DIR=/run/user/$UID --volume /tmp/.X11-unix/:/tmp/.X11-unix/ --volume /run/user/$UID:/run/user/$UID --volume "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY":/tmp/wayland-0:z --device /dev/dri/:/dev/dri/:rwm --volume /run/user/$UID/bus:/tmp/bus:z --volume v rtctk:/root/volume --ipc host -it localhost/devenv-custom:latest
|
|
|
|
```
|
|
|
|
|
|
|
|
## Persistent storage in /root/volume
|
|
|
|
|
|
|
|
```sh
|
|
|
|
podman volume create rtctk
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |