Build by travis.
This commit is contained in:
parent
85aac3efb8
commit
7df26c6572
7
.travis.yml
Normal file
7
.travis.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker build -t $DOCKER_USERNAME/gluster-web-interface .
|
||||||
|
- docker push $DOCKER_USERNAME/gluster-web-interface
|
38
Dockerfile
38
Dockerfile
@ -1,26 +1,30 @@
|
|||||||
FROM ubuntu:xenial
|
FROM ubuntu:xenial
|
||||||
MAINTAINER Like Ma <likemartinma@gmail.com>
|
MAINTAINER Like Ma <likemartinma@gmail.com>
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade -y && \
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN set -eux; \
|
||||||
|
apt-get update; \
|
||||||
apt-get install -y --no-install-recommends sudo sshpass ruby \
|
apt-get install -y --no-install-recommends sudo sshpass ruby \
|
||||||
glusterfs-client nodejs-legacy \
|
glusterfs-client nodejs-legacy netbase \
|
||||||
ruby-dev npm git make g++ libsqlite3-dev && \
|
ruby-dev npm git make g++ libsqlite3-dev; \
|
||||||
apt-get clean && \
|
npm install -g bower; \
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* && \
|
echo "gem: --no-rdoc --no-ri" > ~/.gemrc; \
|
||||||
npm install -g bower && \
|
gem install bundler; \
|
||||||
echo "gem: --no-rdoc --no-ri" > ~/.gemrc && \
|
git clone https://github.com/oss2016summer/gluster-web-interface.git \
|
||||||
gem install bundler && \
|
/gluster-web; \
|
||||||
git clone https://github.com/oss2016summer/gluster-web-interface.git /gluster-web
|
cd /gluster-web; \
|
||||||
|
bower install --allow-root; \
|
||||||
WORKDIR /gluster-web
|
gem install tzinfo-data; \
|
||||||
|
bundle install; \
|
||||||
RUN bower install --allow-root && \
|
bin/rake db:migrate; \
|
||||||
bundle install && \
|
apt-get clean; \
|
||||||
bin/rake db:migrate && \
|
rm -rf /var/lib/apt/lists/* /tmp/* Gemfile.* ~/.gem ~/.bundle \
|
||||||
rm -rf Gemfile.* ~/.gem ~/.bundle /usr/lib/ruby/gems/2.3.0/cache && \
|
/usr/lib/ruby/gems/2.3.0/cache; \
|
||||||
apt-get remove --purge -y ruby-dev npm git make g++ libsqlite3-dev && \
|
apt-get remove --purge -y ruby-dev npm git make g++ libsqlite3-dev; \
|
||||||
apt-get autoremove --purge -y
|
apt-get autoremove --purge -y
|
||||||
|
|
||||||
|
WORKDIR /gluster-web
|
||||||
COPY entrypoint /
|
COPY entrypoint /
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
ENTRYPOINT ["/entrypoint"]
|
ENTRYPOINT ["/entrypoint"]
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
rails s -b 0.0.0.0
|
exec rails s -b 0.0.0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user