diff --git a/Dockerfile b/Dockerfile index cbb9a7bfe1246cccb971b2f421803afa17e99f09..30353fc9df2d72b196d43cd5f50cd226a81dbd72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,10 @@ RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0E163286C20D07B9787EB WORKDIR /app -RUN curl -fSL "https://s3.amazonaws.com/rocketchatbuild/rocket.chat-develop.tgz" -o rocket.chat.tgz \ +RUN URL="https://github.com/RocketChat/Rocket.Chat/releases/latest" \ +&& FILE="/rocket.chat.tgz" \ +&& HEADER=$(curl -I -s "$URL" | grep -Fi Location: | sed -En 's/.*(https?:\/\/[a-zA-Z0-9\/.-_]*).*$/\1/p' | sed 's/\/tag\//\/download\//' ) \ +&& curl -fSL "$HEADER$FILE" -o rocket.chat.tgz \ && tar zxvf ./rocket.chat.tgz \ && rm ./rocket.chat.tgz \ && cd /app/bundle/programs/server \ diff --git a/README.md b/README.md index 4169ea44fa48de3599667348c7e749a993e68af2..0826156decae34852e5df16724ba4431df673306 100644 --- a/README.md +++ b/README.md @@ -61,29 +61,17 @@ Now compatible with all Android devices as old as version 4.0.x - [download here ## Heroku Host your own Rocket.Chat server for **FREE** with [One-Click Deploy](https://heroku.com/deploy?template=https://github.com/RocketChat/Rocket.Chat/tree/master) -Branch **master** (Latest stable version): - -[](https://heroku.com/deploy?template=https://github.com/RocketChat/Rocket.Chat/tree/master) - -Branch **develop** (Newer but unstable): - [](https://heroku.com/deploy?template=https://github.com/RocketChat/Rocket.Chat/tree/develop) ## Scalingo Deploy your own Rocket.Chat server instantly on [Scalingo](https://scalingo.com) -Branch **master** (Latest stable version): - -[](https://my.scalingo.com/deploy?source=https://github.com/RocketChat/Rocket.Chat#master) - -Branch **develop** (Newer but unstable): - [](https://my.scalingo.com/deploy?source=https://github.com/RocketChat/Rocket.Chat#develop) ## Sandstorm.io [](https://apps.sandstorm.io/app/vfnwptfn02ty21w715snyyczw0nqxkv3jvawcah10c6z7hj1hnu0) -_*Grab*_ the latest [Sandstorm SPK](https://s3.amazonaws.com/rocketchatbuild/rocket.chat-develop.spk) for testing on your own server. +_*Grab*_ the [Sandstorm SPK for the latest Rocket.Chat release](https://github.com/RocketChat/Rocket.Chat/releases/latest) for testing on your own server. ## Sloppy.io Host your docker container at [sloppy.io](http://sloppy.io). Get an account and use the [quickstarter](https://github.com/sloppyio/quickstarters/tree/master/rocketchat) @@ -93,20 +81,20 @@ Host your docker container at [sloppy.io](http://sloppy.io). Get an account and or -Use the automated build image of our [most recent in-development code](https://hub.docker.com/r/rocketchat/rocket.chat/) +Use the automated build image of our [most recent release](https://hub.docker.com/r/rocketchat/rocket.chat/) [](https://hub.docker.com/r/rocketchat/rocket.chat/) ``` -docker pull rocketchat/rocket.chat:develop +docker pull rocketchat/rocket.chat:lastest ``` -OR the latest available stable (master) branch code: +OR select a specific release ([details of releases available](https://github.com/RocketChat/Rocket.Chat/releases)): ``` -docker pull rocketchat/rocket.chat:latest +docker pull rocketchat/rocket.chat:vX.X.X ``` -OR our [official docker registry image](https://hub.docker.com/_/rocket.chat/), containing recent MAJOR release: +OR our [official docker registry image](https://hub.docker.com/_/rocket.chat/), containing recent stable release build approved by Docker: ``` docker pull rocket.chat diff --git a/docker-compose.yml b/docker-compose.yml index 7fc1a9f81e0551979bb7691724b523b74f1a9049..33a72bd0126ab9835c1d98fb8b07fdb1c7dc6ba1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ mongo: command: mongod --smallfiles --oplogSize 128 rocketchat: - image: rocketchat/rocket.chat:develop + image: rocketchat/rocket.chat:latest # volumes: # - ./uploads:/app/uploads environment: @@ -35,4 +35,4 @@ hubot: - rocketchat:rocketchat # this is used to expose the hubot port for notifications on the host on port 3001, e.g. for hubot-jenkins-notifier ports: - - 3001:8080 \ No newline at end of file + - 3001:8080