Merge branch 'feature/KASM-1420_build_restricted_file_chooser_gtk' into 'develop'

Resolve KASM-1420 "Feature/ build restricted file chooser gtk"

Closes KASM-1420

See merge request kasm-technologies/internal/workspaces-images!2
This commit is contained in:
Matthew McClaskey 2021-07-20 09:46:54 +00:00
commit 344ef797ff
13 changed files with 46 additions and 2 deletions

View File

@ -25,6 +25,10 @@ ENV LAUNCH_URL http://kasmweb.com
COPY ./src/ubuntu/install/brave/custom_startup.sh $STARTUPDIR/custom_startup.sh COPY ./src/ubuntu/install/brave/custom_startup.sh $STARTUPDIR/custom_startup.sh
RUN chmod +x $STARTUPDIR/custom_startup.sh RUN chmod +x $STARTUPDIR/custom_startup.sh
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
######### End Customizations ########### ######### End Customizations ###########
RUN chown 1000:0 $HOME RUN chown 1000:0 $HOME
@ -35,4 +39,3 @@ WORKDIR $HOME
RUN mkdir -p $HOME && chown -R 1000:0 $HOME RUN mkdir -p $HOME && chown -R 1000:0 $HOME
USER 1000 USER 1000

View File

@ -29,6 +29,9 @@ RUN chmod +x $STARTUPDIR/custom_startup.sh
# COPY ./src/ubuntu/install/certificates $INST_SCRIPTS/certificates/ # COPY ./src/ubuntu/install/certificates $INST_SCRIPTS/certificates/
# RUN bash $INST_SCRIPTS/certificates/install_ca_cert.sh && rm -rf $INST_SCRIPTS/certificates/ # RUN bash $INST_SCRIPTS/certificates/install_ca_cert.sh && rm -rf $INST_SCRIPTS/certificates/
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
######### End Customizations ########### ######### End Customizations ###########

View File

@ -29,6 +29,10 @@ RUN chmod +x $STARTUPDIR/custom_startup.sh
COPY ./src/ubuntu/install/chrome_flash $INST_SCRIPTS/chrome_flash/ COPY ./src/ubuntu/install/chrome_flash $INST_SCRIPTS/chrome_flash/
RUN bash $INST_SCRIPTS/chrome_flash/install_flash.sh && rm -rf $INST_SCRIPTS/chrome_flash/ RUN bash $INST_SCRIPTS/chrome_flash/install_flash.sh && rm -rf $INST_SCRIPTS/chrome_flash/
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
######### End Customizations ########### ######### End Customizations ###########

View File

@ -19,6 +19,10 @@ RUN cp $HOME/.config/xfce4/xfconf/single-application-xfce-perchannel-xml/* $HOME
RUN cp /usr/share/extra/backgrounds/bg_kasm.png /usr/share/extra/backgrounds/bg_default.png RUN cp /usr/share/extra/backgrounds/bg_kasm.png /usr/share/extra/backgrounds/bg_default.png
RUN apt-get remove -y xfce4-panel RUN apt-get remove -y xfce4-panel
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
# Setup the custom startup script that will be invoked when the container starts # Setup the custom startup script that will be invoked when the container starts
ENV LAUNCH_URL http://kasmweb.com ENV LAUNCH_URL http://kasmweb.com

View File

@ -29,6 +29,9 @@ RUN chmod +x $STARTUPDIR/custom_startup.sh
# COPY ./src/ubuntu/install/certificates $INST_SCRIPTS/certificates/ # COPY ./src/ubuntu/install/certificates $INST_SCRIPTS/certificates/
# RUN bash $INST_SCRIPTS/certificates/install_ca_cert.sh && rm -rf $INST_SCRIPTS/certificates/ # RUN bash $INST_SCRIPTS/certificates/install_ca_cert.sh && rm -rf $INST_SCRIPTS/certificates/
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
######### End Customizations ########### ######### End Customizations ###########

View File

@ -28,6 +28,10 @@ RUN chmod +x $STARTUPDIR/custom_startup.sh
COPY ./src/ubuntu/install/firefox_flash $INST_SCRIPTS/firefox_flash/ COPY ./src/ubuntu/install/firefox_flash $INST_SCRIPTS/firefox_flash/
RUN bash $INST_SCRIPTS/firefox_flash/install_flash.sh && rm -rf $INST_SCRIPTS/firefox_flash/ RUN bash $INST_SCRIPTS/firefox_flash/install_flash.sh && rm -rf $INST_SCRIPTS/firefox_flash/
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
######### End Customizations ########### ######### End Customizations ###########
RUN chown 1000:0 $HOME RUN chown 1000:0 $HOME

View File

@ -19,6 +19,10 @@ RUN cp $HOME/.config/xfce4/xfconf/single-application-xfce-perchannel-xml/* $HOME
RUN cp /usr/share/extra/backgrounds/bg_kasm.png /usr/share/extra/backgrounds/bg_default.png RUN cp /usr/share/extra/backgrounds/bg_kasm.png /usr/share/extra/backgrounds/bg_default.png
RUN apt-get remove -y xfce4-panel RUN apt-get remove -y xfce4-panel
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
# Setup the custom startup script that will be invoked when the container starts # Setup the custom startup script that will be invoked when the container starts
ENV LAUNCH_URL about:blank ENV LAUNCH_URL about:blank
RUN echo $' \n\ RUN echo $' \n\

View File

@ -10,3 +10,5 @@ This Image contains a browser-accessible version of [Brave](https://brave.com/).
* `LAUNCH_URL` - The default URL the browser launches to when created. * `LAUNCH_URL` - The default URL the browser launches to when created.
* `APP_ARGS` - Additional arguments to pass to the browser when launched. * `APP_ARGS` - Additional arguments to pass to the browser when launched.
* `KASM_RESTRICTED_FILE_CHOOSER` - Confine "File Upload" and "File Save"
dialogs to ~/Desktop. On by default.

View File

@ -10,3 +10,5 @@ This Image contains a browser-accessible version of [Google Chrome](https://www.
* `LAUNCH_URL` - The default URL the browser launches to when created. * `LAUNCH_URL` - The default URL the browser launches to when created.
* `APP_ARGS` - Additional arguments to pass to the browser when launched. * `APP_ARGS` - Additional arguments to pass to the browser when launched.
* `KASM_RESTRICTED_FILE_CHOOSER` - Confine "File Upload" and "File Save"
dialogs to ~/Desktop. On by default.

View File

@ -10,3 +10,5 @@ This Image contains a browser-accessible version of [Microsoft Edge Insider Prev
* `LAUNCH_URL` - The default URL the browser launches to when created. * `LAUNCH_URL` - The default URL the browser launches to when created.
* `APP_ARGS` - Additional arguments to pass to the browser when launched. * `APP_ARGS` - Additional arguments to pass to the browser when launched.
* `KASM_RESTRICTED_FILE_CHOOSER` - Confine "File Upload" and "File Save"
dialogs to ~/Desktop. On by default.

View File

@ -10,3 +10,5 @@ This Image contains a browser-accessible version of [Mozilla Firefox](https://ww
* `LAUNCH_URL` - The default URL the browser launches to when created. * `LAUNCH_URL` - The default URL the browser launches to when created.
* `APP_ARGS` - Additional arguments to pass to the browser when launched. * `APP_ARGS` - Additional arguments to pass to the browser when launched.
* `KASM_RESTRICTED_FILE_CHOOSER` - Confine "File Upload" and "File Save"
dialogs to ~/Desktop. On by default.

View File

@ -8,4 +8,6 @@ This Image contains a browser-accessible version of [Tor Browser](https://www.to
# Environment Variables # Environment Variables
* `APP_ARGS` - Additional arguments to pass to the application when launched. * `APP_ARGS` - Additional arguments to pass to the application when launched.
* `KASM_RESTRICTED_FILE_CHOOSER` - Confine "File Upload" and "File Save"
dialogs to ~/Desktop. On by default.

View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
libgtk_deb=libgtk.deb
wget https://kasmweb-build-artifacts.s3.amazonaws.com/kasm-gtk-3-restricted-file-chooser/de486e8c3c5f3d3c0f898fb9d6e05755897b1970/output/libgtk-3-0_3.22.30-1ubuntu4_amd64.deb -O $libgtk_deb
apt-get install -y --allow-downgrades ./"$libgtk_deb"
rm "$libgtk_deb"