Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
KubeOperator Webkubectl
Commits
630347cb
Commit
630347cb
authored
4 years ago
by
liqiang-fit2cloud
Browse files
Options
Download
Email Patches
Plain Diff
dep: Upgrade installed packages of alpine linux.
parent
b6a3174e
master
v2.10.4
v2.10.3
v2.10.2
v2.10.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+1
-1
Dockerfile
with
1 addition
and
1 deletion
+1
-1
Dockerfile
+
1
-
1
View file @
630347cb
...
...
@@ -19,7 +19,7 @@ USER root
COPY
--from=gotty-build /gotty /usr/bin/
RUN
ARCH
=
$(
uname
-m
)
&&
case
$ARCH
in
aarch64
)
ARCH
=
"arm64"
;;
x86_64
)
ARCH
=
"amd64"
;;
esac
&&
echo
"ARCH: "
$ARCH
&&
\
echo
>
/etc/apk/repositories
&&
echo
-e
"https://dl-cdn.alpinelinux.org/alpine/latest-stable/main
\n
https://dl-cdn.alpinelinux.org/alpine/latest-stable/community"
>>
/etc/apk/repositories
&&
\
apk add
--update
--no-cache
bash bash-completion curl git wget openssl iputils busybox-extras vim ncurses
&&
sed
-i
"s/nobody:
\/
/nobody:
\/
nonexistent/g"
/etc/passwd
&&
\
apk
update
&&
apk upgrade
&&
apk
add
--update
--no-cache
bash bash-completion curl git wget openssl iputils busybox-extras vim ncurses
&&
sed
-i
"s/nobody:
\/
/nobody:
\/
nonexistent/g"
/etc/passwd
&&
\
curl
-sLf
https://storage.googleapis.com/kubernetes-release/release/v1.20.5/bin/linux/
${
ARCH
}
/kubectl
>
/usr/bin/kubectl
&&
chmod
+x /usr/bin/kubectl
&&
\
git clone
--branch
v0.8.0 https://github.com/ahmetb/kubectx /opt/kubectx
&&
chmod
-R
755 /opt/kubectx
&&
ln
-s
/opt/kubectx/kubectx /usr/local/bin/kubectx
&&
ln
-s
/opt/kubectx/kubens /usr/local/bin/kubens
&&
\
git clone
--branch
master
--depth
1 https://github.com/ahmetb/kubectl-aliases /opt/kubectl-aliases
&&
chmod
-R
755 /opt/kubectl-aliases
&&
\
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help