Skip to content

Commit

Permalink
Add release-candidate version
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Apr 6, 2017
1 parent 9323473 commit 4789c38
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .docker/release-candidate/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM rocketchat/base:4

ENV RC_VERSION release-candidate

MAINTAINER buildmaster@rocket.chat

RUN set -x \
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/download" -o rocket.chat.tgz \
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \
&& mkdir /app \
&& gpg --verify rocket.chat.tgz.asc \
&& mkdir -p /app \
&& tar -zxf rocket.chat.tgz -C /app \
&& rm rocket.chat.tgz rocket.chat.tgz.asc \
&& cd /app/bundle/programs/server \
&& npm install \
&& npm cache clear \
&& chown -R rocketchat:rocketchat /app

USER rocketchat

VOLUME /app/uploads

WORKDIR /app/bundle

# needs a mongoinstance - defaults to container linking with alias 'mongo'
ENV MONGO_URL=mongodb://mongo:27017/rocketchat \
HOME=/tmp \
PORT=3000 \
ROOT_URL=http://localhost:3000 \
Accounts_AvatarStorePath=/app/uploads

EXPOSE 3000

CMD ["node", "main.js"]
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ services:
branches:
only:
- develop
- experimental
- "/^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$/"
- release-candidate
- "/^\\d+\\.\\d+\\.\\d+(-rc\\.\\d+)?$/"
git:
depth: 1
node_js:
Expand Down Expand Up @@ -86,7 +86,7 @@ deploy:
after_deploy:
- ".travis/docker.sh"
- ".travis/update-releases.sh"
- ".travis/snap.sh"
#- ".travis/snap.sh"
env:
global:
- DISPLAY=:99.0
Expand Down

0 comments on commit 4789c38

Please sign in to comment.