File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed
Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 2828 - ubuntu-ssh
2929 - tgenv-tfenv
3030 - ubuntu-22.04-toolbox
31+ - ubuntu-toolbox
3132
3233jobs :
3334 build :
Original file line number Diff line number Diff line change 1+ FROM ubuntu:22.04
2+
3+ # Avoid prompts from apt during installation
4+ ENV DEBIAN_FRONTEND=noninteractive
5+
6+ # Update apt package lists
7+ RUN apt-get update && apt-get install -y \
8+ ssh \
9+ rsync \
10+ unzip \
11+ curl \
12+ wget \
13+ jq \
14+ p7zip-full \
15+ bzip2 \
16+ && rm -rf /var/lib/apt/lists/*
17+
18+ # Set specific versions
19+ ENV RCLONE="1.68.1"
20+ ENV RESTIC="0.16.4"
21+ ENV MINIO_CLIENT="RELEASE.2024-03-15T01-07-19Z"
22+
23+ # Download and install Rclone specific version
24+ RUN curl -L https://github.com/rclone/rclone/releases/download/v${RCLONE}/rclone-v${RCLONE}-linux-amd64.deb -o rclone.deb \
25+ && dpkg -i rclone.deb \
26+ && rm rclone.deb
27+
28+ # Download and install Restic specific version
29+ RUN curl -L https://github.com/restic/restic/releases/download/v${RESTIC}/restic_${RESTIC}_linux_amd64.bz2 -o restic.bz2 \
30+ && bzip2 -d restic.bz2 \
31+ && chmod +x restic \
32+ && mv restic /usr/local/bin/
33+
34+ # Download and install MinIO Client specific version
35+ RUN curl -L https://dl.min.io/client/mc/release/linux-amd64/archive/mc.${MINIO_CLIENT} -o mc \
36+ && chmod +x mc \
37+ && mv mc /usr/local/bin/
38+
39+ # Download and install AWS CLI v2
40+ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
41+ && unzip awscliv2.zip \
42+ && ./aws/install \
43+ && rm -rf awscliv2.zip ./aws
44+
45+ # Verify installation
46+ RUN aws --version
Original file line number Diff line number Diff line change 1+ # Ubuntu 22.04 toolbox image
2+
3+ * rsync
4+ * ssh
5+ * rclone
6+ * restic
7+ * aws cli
8+
You can’t perform that action at this time.
0 commit comments