Skip to content

Commit

Permalink
Add ubuntu toolbox image
Browse files Browse the repository at this point in the history
  • Loading branch information
denis256 committed Oct 6, 2024
1 parent a72a21f commit 98d5159
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ on:
- ubuntu-ssh
- tgenv-tfenv
- ubuntu-22.04-toolbox
- ubuntu-toolbox

jobs:
build:
Expand Down
46 changes: 46 additions & 0 deletions ubuntu-toolbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM ubuntu:22.04

# Avoid prompts from apt during installation
ENV DEBIAN_FRONTEND=noninteractive

# Update apt package lists
RUN apt-get update && apt-get install -y \
ssh \
rsync \
unzip \
curl \
wget \
jq \
p7zip-full \
bzip2 \
&& rm -rf /var/lib/apt/lists/*

# Set specific versions
ENV RCLONE="1.68.1"
ENV RESTIC="0.16.4"
ENV MINIO_CLIENT="RELEASE.2024-03-15T01-07-19Z"

# Download and install Rclone specific version
RUN curl -L https://github.com/rclone/rclone/releases/download/v${RCLONE}/rclone-v${RCLONE}-linux-amd64.deb -o rclone.deb \
&& dpkg -i rclone.deb \
&& rm rclone.deb

# Download and install Restic specific version
RUN curl -L https://github.com/restic/restic/releases/download/v${RESTIC}/restic_${RESTIC}_linux_amd64.bz2 -o restic.bz2 \
&& bzip2 -d restic.bz2 \
&& chmod +x restic \
&& mv restic /usr/local/bin/

# Download and install MinIO Client specific version
RUN curl -L https://dl.min.io/client/mc/release/linux-amd64/archive/mc.${MINIO_CLIENT} -o mc \
&& chmod +x mc \
&& mv mc /usr/local/bin/

# Download and install AWS CLI v2
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install \
&& rm -rf awscliv2.zip ./aws

# Verify installation
RUN aws --version
8 changes: 8 additions & 0 deletions ubuntu-toolbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ubuntu 22.04 toolbox image

* rsync
* ssh
* rclone
* restic
* aws cli

0 comments on commit 98d5159

Please sign in to comment.