a/codesys-ide/Dockerfile | b/codesys-ide/Dockerfile | ||
---|---|---|---|
1 | # |
1 | # |
2 | # Stage 1: |
2 | # Install CODESYS in debian buster with wine-development version |
3 | # Install CODESYS in debian stretch with wine-development version |
||
3 | # Note: We sometimes need to switch users from "wineuser" to root and back. |
||
4 | # The reason is, that things inside linux need to be installed as root, |
||
5 | # while things inside of wine, need to be installed as wineuser. |
||
4 | # |
6 | # |
5 | FROM debian:buster |
7 | FROM debian:buster |
6 | 8 | ||
7 | RUN dpkg --add-architecture i386 |
9 | RUN dpkg --add-architecture i386 |
8 | RUN apt-get update && \ |
10 | RUN apt-get update && \ |
9 | apt-get install -y wine32-development wine64-development wget subversion winbind python-requests cabextract msitools xvfb xdotool jwm procps |
11 | apt-get install -y wine32-development wine64-development wget subversion winbind python-requests cabextract msitools xvfb xdotool jwm procps multiarch-support |
10 | 12 | ||
11 | RUN useradd -ms /bin/bash wineuser |
13 | RUN useradd -ms /bin/bash wineuser |
12 | 14 | ||
13 | # Configure locales |
15 | # Configure locales |
14 | RUN apt-get install -y locales |
16 | RUN apt-get install -y locales |
... |
... |
||
23 | WORKDIR "/home/wineuser" |
25 | WORKDIR "/home/wineuser" |
24 | ADD install2.sh /home/wineuser/ |
26 | ADD install2.sh /home/wineuser/ |
25 | RUN ./install2.sh --silent; \ |
27 | RUN ./install2.sh --silent; \ |
26 | test -f /home/wineuser/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe |
28 | test -f /home/wineuser/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe |
27 | 29 | ||
28 | ADD codesys /usr/local/bin/codesys |
30 | # Add automation scripts, which can be used for CI/CD jobs |
29 | ADD scripts /usr/local/share/codesys |
31 | ADD codesys /usr/local/bin/codesys |
32 | ADD codesyscontrol /usr/local/bin/codesyscontrol |
||
33 | ADD scripts /usr/local/share/codesys |
||
34 | |||
35 | |||
36 | # Install Linux SL package (in IDE and the runtime) |
||
37 | RUN codesys install https://store.codesys.com/ftp_download/3S/LinuxSL/2302000005/3.5.16.0/CODESYS%20Control%20for%20Linux%20SL%203.5.16.0.package |
||
38 | |||
39 | USER root |
||
40 | RUN dpkg -i "/home/wineuser/.wine.cds/drive_c/users/wineuser/CODESYS Control for Linux SL/Dependency/codemeter-lite_7.0.3918.500_amd64.deb" |
||
41 | RUN dpkg -i "/home/wineuser/.wine.cds/drive_c/users/wineuser/CODESYS Control for Linux SL/Delivery/codesyscontrol_x64_linux_V3.5.16.0.deb" |
||
30 | 42 | ||
31 | USER wineuser |
43 | USER wineuser |
32 | 44 | ||
45 | |||
33 | # basic test of the image |
46 | # basic test of the image |
34 | RUN codesys test |
47 | RUN codesys test |
35 | 48 | ||
36 | CMD [ "echo" ] |
49 | CMD [ "echo" ] |