Skip to content

Instantly share code, notes, and snippets.

@jonasrosland
Created December 2, 2016 02:55
Show Gist options
  • Save jonasrosland/42b6b7dbf3647ccfd95b913cdc61102e to your computer and use it in GitHub Desktop.
Save jonasrosland/42b6b7dbf3647ccfd95b913cdc61102e to your computer and use it in GitHub Desktop.
REX-Ray on Alpine
FROM smebberson/alpine-base
RUN apk add curl
#RUN curl -sSL https://dl.bintray.com/emccode/rexray/install | sh -s -- stable 0.3.3
RUN curl -o rexray-Linux-x86_64-0.6.1.tar.gz -sSL https://emccode.bintray.com/rexray/stable/0.6.1/rexray-Linux-x86_64-0.6.1.tar.gz
RUN tar zxvf rexray*.gz
RUN apk add --update -t deps wget ca-certificates openssl
RUN apk add --update -t openssl
WORKDIR /tmp
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-2.23-r3.apk https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.23-r3/glibc-bin-2.23-r3.apk
RUN apk add --allow-untrusted glibc-bin-2.23-r3.apk glibc-2.23-r3.apk
RUN mkdir /etc/rexray
# Create a valid config.yml file in the same dir as the Dockerfile
COPY config.yml /etc/rexray
ENTRYPOINT ["/init"]
CMD ["/rexray", "start", "-f", "-l", "debug"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment