Skip to content

Instantly share code, notes, and snippets.

@yosukehara
Last active November 7, 2016 08:10
Show Gist options
  • Save yosukehara/42cc2b8e2299a733cc573faa435da116 to your computer and use it in GitHub Desktop.
Save yosukehara/42cc2b8e2299a733cc573faa435da116 to your computer and use it in GitHub Desktop.
leo_storage.dockerfile
##
## 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"]
@yosukehara
Copy link
Author

Size of each docker image is as below:

$ docker images
REPOSITORY                         TAG                 IMAGE ID            CREATED             SIZE
leofs/leo_storage                  develop             b30d08eae2de        6 minutes ago       413 MB
leofs/erlang                       latest              41abe5dd4ded        3 hours ago         112.4 MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment