Project

General

Profile

Actions

Feature #12406

open

Support for building on Alpine Linux

Added by Francis Chuang almost 9 years ago. Updated over 7 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

We are interested in running ceph on Alpine Linux because Alpine is a very lightweight and minimal linux distro that makes it very suitable as a base image for running docker containers.

Currently, building on Alpine Linux fails.

This is the Dockerfile we're using:

FROM alpine

RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >>/etc/apk/repositories \
  && echo "@edge-main http://nl.alpinelinux.org/alpine/edge/main" >>/etc/apk/repositories \
  && apk update \
  && apk add bash yasm libtool util-linux-dev udev-dev automake autoconf build-base git perl keyutils keyutils-dev crypto++@testing snappy@edge-main snappy-dev@edge-main \
  && wget -O ceph.tar.gz http://ceph.com/download/ceph-9.0.2.tar.gz \
  && tar xvzf ceph.tar.gz \
  && cd ceph-9.0.2 \
  && ./autogen.sh \
  && ./configure \
  && make \
  && rm -rf /var/cache/apk/*

Even though snappy and snappy-dev was installed, ./configure was not able to find them:

checking for snappy_compress in -lsnappy... no
configure: error: in `/ceph-9.0.2':
configure: error: libsnappy not found
See `config.log' for more details

It would be really awesome if ceph can be built on Alpine.

Actions #1

Updated by John Coyle over 8 years ago

Been messing around with this.

https://github.com/dx9/build-alpine-ceph
https://github.com/dx9/ceph

It's a work in progress, but it builds. Lots of little issues that could be broken into separate PRs.

Is this something people are open to?

Actions #2

Updated by Greg Farnum over 8 years ago

We've taken lots of changes to support building on alternative distributions and OSes. Smaller changes that can be evaluated independently are a lot more likely to get timely review, though. :) And I've no idea what kind of issues need to be dealt with to build on Alpine.

Actions #3

Updated by John Coyle over 8 years ago

Cool I'll work at busting it into pulls for review.

Actions #4

Updated by Sage Weil over 8 years ago

  • Status changed from New to In Progress

I merged several of these PR's.. are there more?

Actions

Also available in: Atom PDF