Initial commit.

This commit is contained in:
Like Ma 2017-03-07 11:22:45 +08:00
commit 9e83043355
4 changed files with 47 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
.git

26
Dockerfile Normal file
View File

@ -0,0 +1,26 @@
FROM ubuntu:xenial
MAINTAINER Like Ma <likemartinma@gmail.com>
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y --no-install-recommends sudo sshpass ruby \
glusterfs-client nodejs-legacy \
ruby-dev npm git make g++ libsqlite3-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* && \
npm install -g bower && \
echo "gem: --no-rdoc --no-ri" > ~/.gemrc && \
gem install bundler && \
git clone https://github.com/oss2016summer/gluster-web-interface.git /gluster-web
WORKDIR /gluster-web
RUN bower install --allow-root && \
bundle install && \
bin/rake db:migrate && \
rm -rf Gemfile.* ~/.gem ~/.bundle /usr/lib/ruby/gems/2.3.0/cache && \
apt-get remove --purge -y ruby-dev npm git make g++ libsqlite3-dev && \
apt-get autoremove --purge -y
COPY entrypoint /
EXPOSE 3000
ENTRYPOINT ["/entrypoint"]

17
README.md Normal file
View File

@ -0,0 +1,17 @@
# docker-gluster-web-interface
[gluster-web-interface](https://github.com/oss2016summer/gluster-web-interface) is Web UI to manage GlusterFS.
## Pull the image
```bash
docker pull like/gluster-web-interface
```
## Run the instance
```bash
docker run -it -p 3000:3000 like/gluster-web-interface
```
Please open http://&lt;ip address&gt;:3000/ by browser to access gluster-web-interface.

3
entrypoint Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
rails s -b 0.0.0.0