Initial commit.
This commit is contained in:
commit
9e83043355
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
.git
|
26
Dockerfile
Normal file
26
Dockerfile
Normal 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
17
README.md
Normal 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://<ip address>:3000/ by browser to access gluster-web-interface.
|
3
entrypoint
Executable file
3
entrypoint
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
rails s -b 0.0.0.0
|
Loading…
Reference in New Issue
Block a user