Skip to content

Commit e17c562

Browse files
authored
Merge pull request #30 from universal-development/ubuntu-toolbox
Add ubuntu toolbox image
2 parents a72a21f + 98d5159 commit e17c562

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ on:
2828
- ubuntu-ssh
2929
- tgenv-tfenv
3030
- ubuntu-22.04-toolbox
31+
- ubuntu-toolbox
3132

3233
jobs:
3334
build:

ubuntu-toolbox/Dockerfile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

ubuntu-toolbox/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ubuntu 22.04 toolbox image
2+
3+
* rsync
4+
* ssh
5+
* rclone
6+
* restic
7+
* aws cli
8+

0 commit comments

Comments
 (0)