-
Notifications
You must be signed in to change notification settings - Fork 1
/
toolbox_extended.multiarch.alpine.Dockerfile
69 lines (63 loc) · 2.27 KB
/
toolbox_extended.multiarch.alpine.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM ghcr.io/tob1as/docker-tools:toolbox
#USER root
# Database Tools
RUN apk add --no-cache \
mariadb-client mariadb-backup \
postgresql14-client postgresql15-client postgresql16-client \
mongodb-tools \
mosquitto-clients \
; \
#ln -snf /usr/libexec/postgresql15 /usr/libexec/postgresql ; \
mariadb --version ; \
psql --version ; \
mongostat --version | grep mongostat ; \
echo ">> Databse-Tools Part 1 installed!"
# Database Tools Part 2 (npm packages)
# mongosh (as nodejs/npm package; binary not working on alpine, see https://jira.mongodb.org/browse/MONGOSH-1246)
# and
# elasticdump (multielasticdump)
RUN \
apk add --no-cache \
npm \
; \
npm i -g mongosh ; \
mongosh --version ; \
npm i -g elasticdump ; \
elasticdump --version ; \
echo ">> Databse-Tools Part 2 (via npm) installed!"
# Datbase Tools Part 3
#COPY --from=ghcr.io/yannh/redis-dump-go:latest-alpine /redis-dump-go /usr/local/bin/redis-dump-go
COPY --from=redis:alpine /usr/local/bin/redis-cli /usr/local/bin/redis-cli
#RUN \
# redis-cli --version ; \
# echo ">> Databse-Tools Part 3 (via COPY) installed!"
# Storage Tools
#COPY --from=tobi312/tools:azcopy /azcopy /usr/local/bin/azcopy
RUN apk add --no-cache \
aws-cli \
samba-client \
openssh-client \
rsync \
sshpass \
libc6-compat \
; \
aws --version ; \
smbclient --version ; \
\
ARCH=`uname -m` ; \
echo "ARCH=$ARCH" ; \
if [ "$ARCH" == "x86_64" ]; then \
echo "AZCopy: install on x86_64 (amd64) arch" ; \
# AzCopy need libc6-compat, see https://github.com/Azure/azure-storage-azcopy/issues/621#issuecomment-538617518
wget -qO- https://aka.ms/downloadazcopy-v10-linux | tar xfz - --strip-components=1 -C /usr/local/bin/ ; chmod +x /usr/local/bin/azcopy ; \
azcopy --version ; \
elif [ "$ARCH" == "aarch64" ]; then \
echo "AZCopy: install on aarch64 (arm64) arch" && \
wget -qO- https://aka.ms/downloadazcopy-v10-linux-arm64 | tar xfz - --strip-components=1 -C /usr/local/bin/ ; chmod +x /usr/local/bin/azcopy ; \
azcopy --version ; \
else \
echo "AZCopy: unsupported arch" ; \
fi ; \
\
echo ">> Storage-Tools installed!"
#USER user