|
a/codesys-ide/Dockerfile |
|
b/codesys-ide/Dockerfile |
|
... |
|
... |
| 4 |
# |
4 |
# |
| 5 |
FROM debian:stretch |
5 |
FROM debian:stretch |
| 6 |
|
6 |
|
| 7 |
RUN dpkg --add-architecture i386 |
7 |
RUN dpkg --add-architecture i386 |
| 8 |
RUN apt-get update && \ |
8 |
RUN apt-get update && \ |
| 9 |
apt-get install -y wine32-development wine64-development wget subversion winbind python-requests cabextract xvfb xdotool jwm procps |
9 |
apt-get install -y wine32-development wine64-development wget subversion winbind python-requests cabextract msitools xvfb xdotool jwm procps |
| 10 |
|
10 |
|
| 11 |
RUN useradd -ms /bin/bash wineuser |
11 |
RUN useradd -ms /bin/bash wineuser |
| 12 |
|
12 |
|
| 13 |
# Configure locales |
13 |
# Configure locales |
| 14 |
RUN apt-get install -y locales |
14 |
RUN apt-get install -y locales |
|
... |
|
... |
| 19 |
ENV LC_ALL en_US.UTF-8 |
19 |
ENV LC_ALL en_US.UTF-8 |
| 20 |
|
20 |
|
| 21 |
# Install CODESYS |
21 |
# Install CODESYS |
| 22 |
USER wineuser |
22 |
USER wineuser |
| 23 |
WORKDIR "/home/wineuser" |
23 |
WORKDIR "/home/wineuser" |
| 24 |
ADD install.sh /home/wineuser/ |
24 |
ADD install2.sh /home/wineuser/ |
| 25 |
RUN ./install.sh --xvfb; test -f /home/wineuser/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe |
25 |
RUN ./install2.sh; test -f /home/wineuser/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe |
| 26 |
|
26 |
|
| 27 |
USER root |
27 |
USER root |
| 28 |
RUN apt-get install -y tigervnc-standalone-server |
28 |
RUN apt-get install -y tigervnc-standalone-server |
| 29 |
|
29 |
|
| 30 |
# |
30 |
# |
|
... |
|
... |
| 55 |
ADD codesys /usr/local/bin/codesys |
55 |
ADD codesys /usr/local/bin/codesys |
| 56 |
ADD scripts /usr/local/share/codesys |
56 |
ADD scripts /usr/local/share/codesys |
| 57 |
|
57 |
|
| 58 |
USER wineuser |
58 |
USER wineuser |
| 59 |
|
59 |
|
| 60 |
# test code |
|
|
| 61 |
#ADD Test.library /tmp/Test.library |
|
|
| 62 |
#RUN cd /tmp && \ |
|
|
| 63 |
# codesys compile-library && \ |
|
|
| 64 |
# ls /tmp && \ |
|
|
| 65 |
# ls /tmp/Test.compiled-library |
|
|
| 66 |
|
|
|
| 67 |
CMD [ "echo" ] |
60 |
CMD [ "echo" ] |