Skip to content
Snippets Groups Projects
Unverified Commit 0041eac0 authored by Dixon Fred's avatar Dixon Fred Committed by GitHub
Browse files

Merge pull request #10185 from tdjac0bs/bbb_web_improvements

Make the bigbluebutton user id be mapped on startup
parents f7750ce2 29ff2504
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ if (($INSTANCE_NUMBER >= 1)); then
iptables -C $FORWARD_RULE || iptables -I $FORWARD_RULE
docker run --network bbb-libreoffice --name bbb-libreoffice-${INSTANCE_NUMBER} -p $PORT:8000 -v${SOFFICE_WORK_DIR}:${SOFFICE_WORK_DIR} --rm bbb-libreoffice &
docker run --network bbb-libreoffice --user `id -u bigbluebutton` --name bbb-libreoffice-${INSTANCE_NUMBER} -p $PORT:8000 -v${SOFFICE_WORK_DIR}:${SOFFICE_WORK_DIR} --rm bbb-libreoffice &
wait $!
else
......
......@@ -4,26 +4,12 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt update
ARG user_id
RUN echo "User id = $user_id"
RUN addgroup --system --gid $user_id libreoffice
# We need to ensure that this user id is the same as the user bigbluebutton in the host
RUN adduser --disabled-password --system --disabled-login --shell /sbin/nologin --gid $user_id --uid $user_id libreoffice
RUN apt -y install locales-all fontconfig libxt6 libxrender1
RUN apt -y install libreoffice --no-install-recommends
RUN dpkg-reconfigure fontconfig && fc-cache -f -s -v
VOLUME ["/usr/share/fonts/"]
RUN chown libreoffice /home/libreoffice/
ADD ./bbb-libreoffice-entrypoint.sh /home/libreoffice/
RUN chown -R libreoffice /home/libreoffice/
RUN chmod 700 /home/libreoffice/bbb-libreoffice-entrypoint.sh
USER libreoffice
ADD ./bbb-libreoffice-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["/home/libreoffice/bbb-libreoffice-entrypoint.sh" ]
ENTRYPOINT ["/usr/local/bin/bbb-libreoffice-entrypoint.sh" ]
File mode changed from 100644 to 100755
......@@ -25,7 +25,7 @@ fi
IMAGE_CHECK=`docker image inspect bbb-libreoffice &> /dev/null && echo 1 || echo 0`
if [ "$IMAGE_CHECK" = "0" ]; then
echo "Docker image doesn't exists, building"
docker build -t bbb-libreoffice --build-arg user_id=`id -u bigbluebutton` docker/
docker build -t bbb-libreoffice docker/
else
echo "Docker image already exists";
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment