add XDG_RUNTIME_DIR to env.
This commit is contained in:
parent
ad7e1f2b7b
commit
e417ec5dbe
@ -96,9 +96,12 @@ RUN set -eux; \
|
|||||||
chown $USERNAME /tmp/.X11-unix/; \
|
chown $USERNAME /tmp/.X11-unix/; \
|
||||||
#
|
#
|
||||||
# make directories for neko
|
# make directories for neko
|
||||||
mkdir -p /etc/neko /var/www /var/log/neko /home/$USERNAME/.config/pulse /home/$USERNAME/.local/share/xorg; \
|
mkdir -p /etc/neko /var/www /var/log/neko \
|
||||||
|
/tmp/runtime-$USERNAME \
|
||||||
|
/home/$USERNAME/.config/pulse \
|
||||||
|
/home/$USERNAME/.local/share/xorg; \
|
||||||
chmod 1777 /var/log/neko; \
|
chmod 1777 /var/log/neko; \
|
||||||
chown $USERNAME /var/log/neko/; \
|
chown $USERNAME /var/log/neko/ /tmp/runtime-$USERNAME; \
|
||||||
chown -R $USERNAME:$USERNAME /home/$USERNAME; \
|
chown -R $USERNAME:$USERNAME /home/$USERNAME; \
|
||||||
#
|
#
|
||||||
# clean up
|
# clean up
|
||||||
@ -117,6 +120,7 @@ COPY .docker/base/xorg.conf /etc/neko/xorg.conf
|
|||||||
ENV USER=$USERNAME
|
ENV USER=$USERNAME
|
||||||
ENV DISPLAY=:99.0
|
ENV DISPLAY=:99.0
|
||||||
ENV PULSE_SERVER=unix:/tmp/pulseaudio.socket
|
ENV PULSE_SERVER=unix:/tmp/pulseaudio.socket
|
||||||
|
ENV XDG_RUNTIME_DIR=/tmp/runtime-$USERNAME
|
||||||
ENV NEKO_PASSWORD=neko
|
ENV NEKO_PASSWORD=neko
|
||||||
ENV NEKO_PASSWORD_ADMIN=admin
|
ENV NEKO_PASSWORD_ADMIN=admin
|
||||||
ENV NEKO_BIND=:8080
|
ENV NEKO_BIND=:8080
|
||||||
|
@ -102,9 +102,12 @@ RUN set -eux; \
|
|||||||
chown $USERNAME /tmp/.X11-unix/; \
|
chown $USERNAME /tmp/.X11-unix/; \
|
||||||
#
|
#
|
||||||
# make directories for neko
|
# make directories for neko
|
||||||
mkdir -p /etc/neko /var/www /var/log/neko /home/$USERNAME/.config/pulse /home/$USERNAME/.local/share/xorg; \
|
mkdir -p /etc/neko /var/www /var/log/neko \
|
||||||
|
/tmp/runtime-$USERNAME \
|
||||||
|
/home/$USERNAME/.config/pulse \
|
||||||
|
/home/$USERNAME/.local/share/xorg; \
|
||||||
chmod 1777 /var/log/neko; \
|
chmod 1777 /var/log/neko; \
|
||||||
chown $USERNAME /var/log/neko/; \
|
chown $USERNAME /var/log/neko/ /tmp/runtime-$USERNAME; \
|
||||||
chown -R $USERNAME:$USERNAME /home/$USERNAME; \
|
chown -R $USERNAME:$USERNAME /home/$USERNAME; \
|
||||||
#
|
#
|
||||||
# clean up
|
# clean up
|
||||||
@ -123,6 +126,7 @@ COPY .docker/base/xorg.conf /etc/neko/xorg.conf
|
|||||||
ENV USER=$USERNAME
|
ENV USER=$USERNAME
|
||||||
ENV DISPLAY=:99.0
|
ENV DISPLAY=:99.0
|
||||||
ENV PULSE_SERVER=unix:/tmp/pulseaudio.socket
|
ENV PULSE_SERVER=unix:/tmp/pulseaudio.socket
|
||||||
|
ENV XDG_RUNTIME_DIR=/tmp/runtime-$USERNAME
|
||||||
ENV NEKO_PASSWORD=neko
|
ENV NEKO_PASSWORD=neko
|
||||||
ENV NEKO_PASSWORD_ADMIN=admin
|
ENV NEKO_PASSWORD_ADMIN=admin
|
||||||
ENV NEKO_BIND=:8080
|
ENV NEKO_BIND=:8080
|
||||||
|
@ -105,9 +105,12 @@ RUN set -eux; \
|
|||||||
chown $USERNAME /tmp/.X11-unix/; \
|
chown $USERNAME /tmp/.X11-unix/; \
|
||||||
#
|
#
|
||||||
# make directories for neko
|
# make directories for neko
|
||||||
mkdir -p /etc/neko /var/www /var/log/neko /home/$USERNAME/.config/pulse /home/$USERNAME/.local/share/xorg; \
|
mkdir -p /etc/neko /var/www /var/log/neko \
|
||||||
|
/tmp/runtime-$USERNAME \
|
||||||
|
/home/$USERNAME/.config/pulse \
|
||||||
|
/home/$USERNAME/.local/share/xorg; \
|
||||||
chmod 1777 /var/log/neko; \
|
chmod 1777 /var/log/neko; \
|
||||||
chown $USERNAME /var/log/neko/; \
|
chown $USERNAME /var/log/neko/ /tmp/runtime-$USERNAME; \
|
||||||
chown -R $USERNAME:$USERNAME /home/$USERNAME; \
|
chown -R $USERNAME:$USERNAME /home/$USERNAME; \
|
||||||
#
|
#
|
||||||
# clean up
|
# clean up
|
||||||
@ -127,6 +130,7 @@ COPY .docker/base/intel/add-render-group.sh /usr/bin/add-render-group.sh
|
|||||||
ENV USER=$USERNAME
|
ENV USER=$USERNAME
|
||||||
ENV DISPLAY=:99.0
|
ENV DISPLAY=:99.0
|
||||||
ENV PULSE_SERVER=unix:/tmp/pulseaudio.socket
|
ENV PULSE_SERVER=unix:/tmp/pulseaudio.socket
|
||||||
|
ENV XDG_RUNTIME_DIR=/tmp/runtime-$USERNAME
|
||||||
ENV NEKO_PASSWORD=neko
|
ENV NEKO_PASSWORD=neko
|
||||||
ENV NEKO_PASSWORD_ADMIN=admin
|
ENV NEKO_PASSWORD_ADMIN=admin
|
||||||
ENV NEKO_BIND=:8080
|
ENV NEKO_BIND=:8080
|
||||||
|
@ -201,9 +201,12 @@ RUN set -eux; \
|
|||||||
chown $USERNAME /tmp/.X11-unix/; \
|
chown $USERNAME /tmp/.X11-unix/; \
|
||||||
#
|
#
|
||||||
# make directories for neko
|
# make directories for neko
|
||||||
mkdir -p /etc/neko /var/www /var/log/neko /home/$USERNAME/.config/pulse /home/$USERNAME/.local/share/xorg; \
|
mkdir -p /etc/neko /var/www /var/log/neko \
|
||||||
|
/tmp/runtime-$USERNAME \
|
||||||
|
/home/$USERNAME/.config/pulse \
|
||||||
|
/home/$USERNAME/.local/share/xorg; \
|
||||||
chmod 1777 /var/log/neko; \
|
chmod 1777 /var/log/neko; \
|
||||||
chown $USERNAME /var/log/neko/; \
|
chown $USERNAME /var/log/neko/ /tmp/runtime-$USERNAME; \
|
||||||
chown -R $USERNAME:$USERNAME /home/$USERNAME; \
|
chown -R $USERNAME:$USERNAME /home/$USERNAME; \
|
||||||
#
|
#
|
||||||
# clean up
|
# clean up
|
||||||
@ -263,6 +266,7 @@ COPY .docker/base/nvidia/entrypoint.sh /bin/entrypoint.sh
|
|||||||
ENV USER=$USERNAME
|
ENV USER=$USERNAME
|
||||||
ENV DISPLAY=:99.0
|
ENV DISPLAY=:99.0
|
||||||
ENV PULSE_SERVER=unix:/tmp/pulseaudio.socket
|
ENV PULSE_SERVER=unix:/tmp/pulseaudio.socket
|
||||||
|
ENV XDG_RUNTIME_DIR=/tmp/runtime-$USERNAME
|
||||||
ENV NEKO_PASSWORD=neko
|
ENV NEKO_PASSWORD=neko
|
||||||
ENV NEKO_PASSWORD_ADMIN=admin
|
ENV NEKO_PASSWORD_ADMIN=admin
|
||||||
ENV NEKO_BIND=:8080
|
ENV NEKO_BIND=:8080
|
||||||
|
Reference in New Issue
Block a user