Update Dockerfile: use 5.1.14.145 installer, add desktop-directories
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2025-12-24 22:32:52 +00:00
parent 51feea00bb
commit b71fe3bf95
2 changed files with 36434 additions and 20 deletions

View File

@@ -33,32 +33,20 @@ RUN cd /lib/systemd/system/sysinit.target.wants/ && \
rm -f /lib/systemd/system/plymouth* && \
rm -f /lib/systemd/system/systemd-update-utmp*
# Copy and extract pre-built Cisco Secure Client 5.1.14.145
COPY cisco-secureclient-5.1.14.145.tar.gz /tmp/
RUN mkdir -p /opt/cisco && \
tar -xzf /tmp/cisco-secureclient-5.1.14.145.tar.gz -C /opt/cisco && \
rm /tmp/cisco-secureclient-5.1.14.145.tar.gz
# Pre-create directories needed by Cisco installer
RUN mkdir -p /usr/share/desktop-directories
# Install Cisco Secure Client 5.1.14.145
COPY cisco-secure-client-linux64-5.1.14.145-core-vpn-webdeploy-k9.sh /tmp/cisco-install.sh
RUN chmod +x /tmp/cisco-install.sh && \
/tmp/cisco-install.sh && \
rm /tmp/cisco-install.sh
# Copy user data (hostscan, etc)
COPY cisco-userdata.tar.gz /tmp/
RUN tar -xzf /tmp/cisco-userdata.tar.gz -C /root && \
rm /tmp/cisco-userdata.tar.gz
# Create Cisco systemd service
RUN mkdir -p /etc/systemd/system && \
echo '[Unit]' > /etc/systemd/system/vpnagentd.service && \
echo 'Description=Cisco AnyConnect Secure Mobility Client Agent' >> /etc/systemd/system/vpnagentd.service && \
echo 'After=network.target' >> /etc/systemd/system/vpnagentd.service && \
echo '' >> /etc/systemd/system/vpnagentd.service && \
echo '[Service]' >> /etc/systemd/system/vpnagentd.service && \
echo 'Type=forking' >> /etc/systemd/system/vpnagentd.service && \
echo 'ExecStart=/opt/cisco/secureclient/bin/vpnagentd' >> /etc/systemd/system/vpnagentd.service && \
echo 'Restart=on-failure' >> /etc/systemd/system/vpnagentd.service && \
echo '' >> /etc/systemd/system/vpnagentd.service && \
echo '[Install]' >> /etc/systemd/system/vpnagentd.service && \
echo 'WantedBy=multi-user.target' >> /etc/systemd/system/vpnagentd.service && \
systemctl enable vpnagentd.service 2>/dev/null || true
COPY vpn-sso.sh /root/vpn-sso.sh
RUN chmod +x /root/vpn-sso.sh

File diff suppressed because one or more lines are too long