Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Ubuntu 24.04 LTS #229

Open
Nowaker opened this issue Jul 28, 2024 · 1 comment
Open

Support for Ubuntu 24.04 LTS #229

Nowaker opened this issue Jul 28, 2024 · 1 comment

Comments

@Nowaker
Copy link

Nowaker commented Jul 28, 2024

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

@Nowaker
Copy link
Author

Nowaker commented Jul 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant