mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
d85952d6a0
Bumps ubuntu from 20.04 to 22.04. --- updated-dependencies: - dependency-name: ubuntu dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
20 lines
693 B
Docker
20 lines
693 B
Docker
FROM ubuntu:22.04
|
|
ARG EXTERNAL_ENCODED_VPN
|
|
ARG VPN_ENCODED_LOGIN
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y curl bridge-utils iputils-ping openvpn openssh-client && \
|
|
mkdir -p /dev/net && \
|
|
mknod /dev/net/tun c 10 200 && \
|
|
chmod 600 /dev/net/tun
|
|
|
|
RUN if [[ -z "$EXTERNAL_ENCODED_VPN" ]] ; then echo "no vpn provided" ; \
|
|
else echo -n $EXTERNAL_ENCODED_VPN | base64 -di > external.ovpn && \
|
|
if [[ -z "$VPN_ENCODED_LOGIN" ]]; then echo "no passcode provided" ; \
|
|
else echo -n $VPN_ENCODED_LOGIN | base64 -di > authfile && \
|
|
sed -i 's/auth-user-pass/auth-user-pass authfile/g' external.ovpn; fi ; fi
|
|
|
|
WORKDIR .
|
|
COPY scripts/run_tests.sh .
|
|
COPY scripts/init.sh .
|