Update Dockerfile
This commit is contained in:
Родитель
02bf0252ab
Коммит
618c7e8967
14
Dockerfile
14
Dockerfile
|
@ -18,7 +18,10 @@ RUN \
|
|||
&& git submodule update \
|
||||
&& \
|
||||
rm -rf /lds/build && mkdir /lds/build && cd /lds/build \
|
||||
&& ls -l /lds \
|
||||
&& sed 's/LogSystem[[:blank:]]*=.*/LogSystem=file/' /lds/etc/ualds.conf > /lds/etc/ualds.conf \
|
||||
&& sed 's/LogFile[[:blank:]]*=.*/LogFile=\/app\/Logs\/opcualds.log/' /lds/etc/ualds.conf > /lds/etc/ualds.conf \
|
||||
&& sed 's/LogFileSize[[:blank:]]*=.*/LogFileSize=10/' /lds/etc/ualds.conf > /lds/etc/ualds.conf \
|
||||
&& sed 's/CertificateStorePath[[:blank:]]*=.*/CertificateStorePath=\/app\/Shared\/ualds/' /lds/etc/ualds.conf > /lds/etc/ualds.conf \
|
||||
&& cmake .. && cmake --build . \
|
||||
&& \
|
||||
cp /lds/docker-initd.sh /etc/init.d/lds \
|
||||
|
@ -30,7 +33,14 @@ RUN \
|
|||
&& \
|
||||
echo "#!/bin/bash" > /lds/start.sh \
|
||||
&& echo "service lds start" >> /lds/start.sh \
|
||||
&& echo 'exec dotnet Opc.Ua.Publisher.dll $@' >> /lds/start.sh \
|
||||
&& echo "until [ -e /app/Shared/ualds/own/certs/ualdscert.der ]; do" >> /lds/start.sh \
|
||||
&& echo " sleep 3 " >> /lds/start.sh \
|
||||
&& echo "done" >> /lds/start.sh \
|
||||
&& echo 'cp /app/Shared/ualds/own/certs/ualdscert.der "/app/Shared/CertificateStores/UA Applications/certs"' >> /lds/start.sh \
|
||||
&& echo 'chmod u+x "/app/Shared/CertificateStores/UA Applications/certs/ualdscert.der"' >> /lds/start.sh \
|
||||
&& echo 'rm -rf /app/Shared/ualds/trusted/certs' >> /lds/start.sh \
|
||||
&& echo 'ln -s "/app/Shared/CertificateStores/UA Applications/certs" /app/Shared/ualds/trusted/certs' >> /lds/start.sh \
|
||||
&& echo 'exec dotnet $@' >> /lds/start.sh \
|
||||
&& chmod +x /lds/start.sh
|
||||
|
||||
EXPOSE 5353
|
||||
|
|
Загрузка…
Ссылка в новой задаче