--- a/codesys-ide/Dockerfile +++ b/codesys-ide/Dockerfile @@ -24,37 +24,14 @@ ADD install2.sh /home/wineuser/ RUN ./install2.sh; test -f /home/wineuser/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe -USER root -RUN apt-get install -y tigervnc-standalone-server - -# -# Stage 2 -# Cleaner image, just containing CODESYS in wine -# -FROM debian:stretch -ENV WINEPREFIX=/home/wineuser/.wine.cds - -USER root -RUN dpkg --add-architecture i386 -RUN apt-get update && \ - apt-get install -y wine32-development wine64-development wget subversion winbind python-requests psmisc \ - locales xvfb - -# Configure locales -RUN useradd -ms /bin/bash wineuser -RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ - locale-gen -ENV LANG en_US.UTF-8 -ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 - -USER wineuser -COPY --from=0 /home/wineuser/.wine.cds /home/wineuser/.wine.cds -USER root -RUN chown -R wineuser:users /home/wineuser/.wine.cds ADD codesys /usr/local/bin/codesys ADD scripts /usr/local/share/codesys USER wineuser +#RUN codesys install https://forge.codesys.com/svn/prj,cfunit,code/tags/v1.0.0.0/CfUnit.package +ADD SimpleCfUnitExample.project / +RUN ls -1 /usr/bin/wine*-development +RUN codesys save-projectarchive + CMD [ "echo" ]