Skip to content

Commit

Permalink
Cleaning up Dockerfile - changing transcripts path
Browse files Browse the repository at this point in the history
  • Loading branch information
bsobbe committed Aug 3, 2023
1 parent d359557 commit 43c9507
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
26 changes: 11 additions & 15 deletions jigasi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,17 @@ RUN apt-dpkg-wrap apt-get update && \

COPY --chown=noroot:noroot rootfs/ /

RUN mkdir /config
RUN mkdir -pm777 /tmp/transcripts

RUN chown -R noroot:noroot /etc/cont-init.d
RUN chown -R noroot:noroot /etc/services.d
RUN chown -R noroot:noroot /tmp
RUN chown -R noroot:noroot /run
RUN chown -R noroot:noroot /config
RUN chown -R noroot:noroot /var
RUN chown -R noroot:noroot /usr/share
RUN chown -R noroot:noroot /defaults
RUN chmod +x /etc/cont-init.d/*
RUN chmod +x /etc/services.d/jigasi/*
RUN chmod +x /usr/share/jigasi/jigasi.sh
RUN chown -R noroot:noroot /etc/cont-init.d && \
chown -R noroot:noroot /etc/services.d && \
chown -R noroot:noroot /usr/share && \
chown -R noroot:noroot /defaults && \
mkdir -pm777 /config/transcripts && \
mkdir -p /config && chown -R noroot:noroot /config

RUN chmod +x /etc/cont-init.d/* && \
chmod +x /etc/services.d/jigasi/* && \
chmod +x /usr/share/jigasi/jigasi.sh

USER noroot

VOLUME ["/config", "/tmp/transcripts"]
VOLUME /config
2 changes: 1 addition & 1 deletion jigasi/rootfs/defaults/sip-communicator.properties
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ net.java.sip.communicator.service.gui.ALWAYS_TRUST_MODE_ENABLED=true
# Transcription config
org.jitsi.jigasi.ENABLE_TRANSCRIPTION=true
org.jitsi.jigasi.transcription.ENABLE_TRANSLATION=true
org.jitsi.jigasi.transcription.DIRECTORY=/tmp/transcripts
org.jitsi.jigasi.transcription.DIRECTORY=/config/transcripts
org.jitsi.jigasi.transcription.BASE_URL={{ .Env.PUBLIC_URL }}/transcripts
org.jitsi.jigasi.transcription.jetty.port=-1
org.jitsi.jigasi.transcription.ADVERTISE_URL={{ .Env.JIGASI_TRANSCRIBER_ADVERTISE_URL | default "false"}}
Expand Down
2 changes: 1 addition & 1 deletion jigasi/rootfs/etc/services.d/jigasi/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ JAVA_SYS_PROPS="-Djava.util.logging.config.file=/config/logging.properties"
DAEMON=/usr/share/jigasi/jigasi.sh
DAEMON_OPTS="--nocomponent=true --configdir=/ --configdirname=config --min-port=${JIGASI_PORT_MIN:-20000} --max-port=${JIGASI_PORT_MAX:-20050}"

exec s6-setuidgid /bin/bash -c "JAVA_SYS_PROPS=\"$JAVA_SYS_PROPS\" exec $DAEMON $DAEMON_OPTS"
exec /bin/bash -c "JAVA_SYS_PROPS=\"$JAVA_SYS_PROPS\" exec $DAEMON $DAEMON_OPTS"

0 comments on commit 43c9507

Please sign in to comment.