Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
OpenConnect
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
OpenConnect
Commits
ce90805e
Commit
ce90805e
authored
Aug 20, 2022
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cisco anyconnect
parent
e8f25bcf
Pipeline
#15940
failed with stages
in 1 minute and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
Dockerfile
Dockerfile
+13
-3
entrypoint.sh
entrypoint.sh
+9
-0
No files found.
Dockerfile
View file @
ce90805e
FROM
debian:bullseye-slim
FROM
debian:bullseye-slim
RUN
apt update
&&
apt
-y
--no-install-recommends
install
\
RUN
apt update
&&
apt
-y
--no-install-recommends
install
\
openconnect ca-certificates iproute2 iptables ipset
&&
\
wget procps libxml2 libglib2.0-0 kmod ca-certificates
&&
\
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
CMD
["openconnect"]
RUN
wget http://dl1.technet24.ir/Downloads/Software/Cisco/AnyConnect/anyconnect-linux64-4.10.05111-predeploy-k9.tar.gz
-O
- |
tar
-xz
&&
\
cd
anyconnect-linux64-4.10.05111/vpn
&&
\
rm
license.txt
&&
\
mkdir
-p
/usr/share/desktop-directories /usr/share/applications
&&
\
bash
-c
"mkdir -p /usr/share/icons/hicolor/{48x48,64x64,96x96,128x128,256x256}/apps"
&&
\
./vpn_install.sh
&&
\
rm
-rf
anyconnect-linux64-4.10.05111
WORKDIR
/opt/cisco/anyconnect/bin/
COPY
entrypoint.sh .
CMD
["./entrypoint.sh"]
entrypoint.sh
0 → 100644
View file @
ce90805e
#!/bin/bash
# https://stackoverflow.com/a/55817495
cp
/etc/resolv.conf /etc/resolv.conf.bak
umount /etc/resolv.conf
cp
/etc/resolv.conf.bak /etc/resolv.conf
vpnagentd
echo
-e
"
${
username
}
\n
${
password
}
"
| vpn
-s
connect
${
host
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment