Last active
November 7, 2016 08:10
-
-
Save yosukehara/42cc2b8e2299a733cc573faa435da116 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
leo_storage.dockerfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## LeoFS/LeoStorage | |
## | |
FROM leofs/erlang:latest | |
MAINTAINER LeoFS <leo-project.net/leofs/> | |
ENV LANG=en_US.UTF-8 \ | |
HOME=/var/local/leofs/leo_storage/ \ | |
TERM=xterm | |
WORKDIR /tmp/leofs-build | |
## | |
## Installing LeoFS/LeoStorage | |
## | |
RUN mkdir -p ${HOME} && \ | |
chown -R 1001:0 ${HOME} && \ | |
apk --no-cache --update upgrade && \ | |
apk add --no-cache --virtual .leofs-build \ | |
cmake check git autoconf build-base && \ | |
cd $HOME && \ | |
git clone -b develop --single-branch --depth 1 https://github.com/leo-project/leo_storage.git . && \ | |
./rebar get-deps && \ | |
make release && \ | |
mkdir -p /var/local/leofs/packages/ && \ | |
mv rel/leo_storage /var/local/leofs/packages/ && \ | |
cd /var/local/leofs/packages/leo_storage && \ | |
ls -la && \ | |
rm -rf ${HOME} | |
WORKDIR /var/local/leofs/packages/leo_storage/ | |
CMD ["/bin/sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Size of each docker image is as below: