aws / efs-utils

Utilities for Amazon Elastic File System (EFS)
MIT License
285 stars 187 forks source link

Support for Ubuntu 24.04 LTS #229

Open Nowaker opened 1 month ago

Nowaker commented 1 month ago

Is it currently in the works? Or planned with a rough target date, say, in months or quarters?

Nowaker commented 1 month ago

I had GPT convert your Circle CI script into a local Docker build and it succeeded without an issue. The DEB file installed in 24:04 without an issue too. Got stuff mounted with option tls,iam.

Please kindly enable build for 24.04 in your CircleCI, update your README, and expose the binaries for public use.

Until then, my DEB package is attached (zipped because GitHub won't allow a direct upload of DEB). Here's a local build script.

#!/bin/bash

# Define image and container name
IMAGE_NAME="ubuntu:noble"
CONTAINER_NAME="efs-utils-build"

# Create and start the container
docker pull $IMAGE_NAME
docker run -itd --name $CONTAINER_NAME $IMAGE_NAME bash

# Update repository information
docker exec $CONTAINER_NAME apt-get update

# Install required packages
docker exec $CONTAINER_NAME apt-get install -y curl binutils git rustc cargo pkg-config libssl-dev

# Clone the repository
docker exec $CONTAINER_NAME git clone https://github.com/aws/efs-utils /efs-utils

# Configure git to treat all directories as safe
docker exec $CONTAINER_NAME bash -c "git config --global --add safe.directory /efs-utils"

# Build DEB package
docker exec $CONTAINER_NAME bash -c "cd /efs-utils && ./build-deb.sh"

# Install the package
docker exec $CONTAINER_NAME bash -c "cd /efs-utils && DEBIAN_FRONTEND=noninteractive apt-get install -y ./build/amazon-efs-utils*deb"

# Check if installed successfully
docker exec $CONTAINER_NAME mount.efs --version

# Copy the built .deb package to the current directory on the host
docker cp $CONTAINER_NAME:/efs-utils/build .

# Stop the container but do not remove it
docker stop $CONTAINER_NAME

echo "Build process completed! The build directory is in your current directory."
echo "To remove the container and its data, execute: docker rm $CONTAINER_NAME"
echo
ls -la build

amazon-efs-utils-2.0.4-1_all.deb.zip