#Dockerfile
FROM registry-dev.uihcloud.cn/hsw/dotnet/aspnet:6.0-uih
ARG CODEMETER
ENV CODEMETER=$CODEMETER
ADD $CODEMETER Server.ini entrypoint.sh /app/
RUN apt-get update && \
apt-get install -y -f /app/$CODEMETER && \
rm /app/$CODEMETER && \
mv /app/Server.ini /etc/wibu/CodeMeter/Server.ini && \
bash -c "sed -i 's/\r//g' /app/entrypoint.sh /app/entrypoint.sh" && \
chmod +x /app/entrypoint.sh
# 22350 communication between protected app and codemeter license server
# 22351 CmWANPort
# http://127.0.0.1:22352/dashboard.html
# https://127.0.0.1:22353/dashboard.html
EXPOSE 22350/tcp 22351/tcp 22352/tcp 22353/tcp
CMD /app/entrypoint.sh
# entrypoint.sh
#!/bin/bash
# start codemeter as background process
/usr/sbin/CodeMeterLin
# start web admin as docker main process
/usr/sbin/CmWebAdmin
#Server.ini
[Backup]
Interval=24
Path=/var/lib/CodeMeter/Backup
UpdateCertifiedTime=0
[General]
ActionTimeIntervall=10
ApiCommunicationMode=1
BindAddress=0.0.0.0
CleanUpTimeOut=120
CmInstanceUid=4006602765
CmWANPort=22351
EnabledContainerTypes=4294967295
ExePath=/usr/sbin
HelpFile=/usr/share/doc/CodeMeter
IsCmWANServer=0
IsNetworkServer=1
LogCleanupTimeout=336
LogCmActDiag=1
LogLicenseTracking=0
LogLicenseTrackingPath=/var/log/CodeMeter
Logging=1
LogPath=/var/log/CodeMeter
MaxMessageLen=67108864
NetworkAccessFsb=0
NetworkPort=22350
NetworkTimeout=40
ProxyPort=0
ProxyServer=
ProxyUser=
UseSystemProxy=1
StartDaemon=1
TimeServerTimeout=20
TimeServerURL1=cmtime.codemeter.com
TimeServerURL2=cmtime.codemeter.us
TimeServerURL3=cmtime.codemeter.de
UDPCachingTime=20
UDPWaitingTime=1000
DiagnoseLevel=0
ApiCommunicationModeServer=1
HostNameResolveTimeout=10
CmActPath=
LtClientsCleanupTime=2400
[BorrowClient]
[BorrowServer]
[BorrowManage]
[CmAct\ErrorLogger]
[CmAct\PSNs]
[HTTP]
DigestAuthentication=0
RemoteRead=2
Port=22352
ReadAuthenticationEnabled=0
ReadPassword=
WritePassword=
PreparedBorrowingConfiguration=0
[TripleModeRedundancy]
TmrEnabled=0
[HTTPS]
Port=22353
Enabled=0
CertificateChainFile=
PrivateKeyFile=
已打包镜像地址:Docker Hubhttps://hub.docker.com/repository/docker/jdbogdan/codemeter