Last active
January 25, 2021 04:57
-
-
Save psychemedia/9b703653497d762f708e7ddcd381e9da to your computer and use it in GitHub Desktop.
Robotlab demo - wine in guacamole container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM hurricane/dockergui:x11rdp1.3 | |
#Use an updated build | |
#FROM psychemedia/dockergui | |
######################################### | |
## ENVIRONMENTAL CONFIG ## | |
######################################### | |
# Set environment variables | |
# User/Group Id gui app will be executed as default are 99 and 100 | |
ENV USER_ID=99 | |
ENV GROUP_ID=100 | |
# Gui App Name default is "GUI_APPLICATION" | |
ENV APP_NAME="Robotlab" | |
# Default resolution, change if you like | |
ENV WIDTH=1280 | |
ENV HEIGHT=720 | |
# Use baseimage-docker's init system | |
CMD ["/sbin/my_init"] | |
######################################### | |
## REPOSITORIES AND DEPENDENCIES ## | |
######################################### | |
#echo 'deb http://archive.ubuntu.com/ubuntu trusty main universe restricted' > #/etc/apt/sources.list | |
#echo 'deb http://archive.ubuntu.com/ubuntu trusty-updates main universe restricted' >> #/etc/apt/sources.list | |
# Install packages needed for app | |
######################################### | |
## GUI APP INSTALL ## | |
######################################### | |
# Install steps for X app | |
RUN dpkg --add-architecture i386 | |
RUN apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/' | |
RUN wget https://dl.winehq.org/wine-builds/Release.key && sudo apt-key add Release.key | |
RUN apt update && apt install -y winehq-stable | |
# Copy X app start script to right location | |
COPY startapp.sh /startapp.sh | |
COPY Apps/ /opt/Apps | |
######################################### | |
## EXPORTS AND VOLUMES ## | |
######################################### | |
# Place whater volumes and ports you want exposed here: | |
#Trying to expose /nobody and running with -v "${PWD}/files":/nobody doesn't seem to work? | |
RUN mkdir -p /share | |
VOLUME /share | |
EXPOSE 3389 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export WINEDLLOVERRIDES="mscoree,mshtml=" | |
DISPLAY=:1 wine /opt/Apps/RobotLab/RobotLab.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment