Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreozoux committed Jul 10, 2015
1 parent bf860c6 commit a951f48
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Dockerfile

28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM node:0.10.39

MAINTAINER pierre@ozoux.net

RUN groupadd -r rocketchat \
&& useradd -r -g rocketchat rocketchat

# gpg: key 4FD08014: public key "Rocket.Chat Buildmaster <buildmaster@rocket.chat>" imported
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0E163286C20D07B9787EBE9FD7F9D0414FD08104

ENV RC_VERSION v0.4.0

RUN curl -fSL "https://rocket.chat/dists/$RC_VERSION/rocket.chat-$RC_VERSION.tgz" -o rocket.chat.tgz \
&& curl -fSL "https://rocket.chat/dists/$RC_VERSION/rocket.chat-$RC_VERSION.tgz.asc" -o rocket.chat.tgz.asc \
&& gpg --verify rocket.chat.tgz.asc \
&& tar zxvf ./rocket.chat.tgz \
&& rm ./rocket.chat.tgz

WORKDIR /app/bundle/programs/server
RUN npm install

WORKDIR /app/bundle
USER rocketchat
ENV MONGO_URL=mongodb://db:27017/meteor
ENV PORT=3000
EXPOSE 3000
CMD ["node", "main.js"]

52 changes: 51 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,52 @@
# Official Image Here
# Official Rocket.Chat image

## Supported tags and respective `Dockerfile` links

- [`0.4.0`, `latest` (*Dockerfile*)](https://github.com/RocketChat/Docker.Official.Image/blob/master/Dockerfile)

For more information about this image and its history, please see the [relevant manifest file (`library/Rocket.Chat`)](https://github.com/docker-library/official-images/blob/master/library/Rocket.Chat) in the [`docker-library/official-images` GitHub repo](https://github.com/docker-library/official-images).

## Rocket.Chat

Rocket.Chat is a Web Chat Server, developed in JavaScript, using the Meteor fullstack framework.

It is a great solution for communities and companies wanting to privately host their own chat service or for developers looking forward to build and evolve their own chat platforms.

![Rocket.Chat logo](https://rocket.chat/images/logo/logo-dark.svg?v2)

## How to use this image

First, start an instance of mongo:

docker run --name db -d mongo mongod --smallfiles

Then start Rocket.Chat linked to this mongo instance:

docker run --name rocketchat --env ROOT_URL=http://localhost --link db Rocket.Chat

This will start a Ghost instance listening on the default Ghost port of 3000.

If you'd like to be able to access the instance from the host without the container's IP, standard port mappings can be used:

docker run --name rocketchat -p 80:3000 --env ROOT_URL=http://localhost --link db:db -d Rocket.Chat

Then, access it via `http://localhost:80` or `http://host-ip:80` in a browser.

## User Feedback

### Documentation

Documentation for this image is stored in the [`Rocket.Chat/` directory](https://github.com/docker-library/docs/tree/master/Rocket.Chat) of the [`docker-library/docs` GitHub repo](https://github.com/docker-library/docs). Be sure to familiarize yourself with the [repository's `README.md` file](https://github.com/docker-library/docs/blob/master/README.md) before attempting a pull request.

### Issues

If you have any problems with or questions about this image, please contact us through a [GitHub issue](https://github.com/RocketChat/Docker.Official.Image/issues).

You can also reach many of the official image maintainers via the `#docker-library` IRC channel on [Freenode](https://freenode.net).

### Contributing

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a [GitHub issue](https://github.com/RocketChat/Docker.Official.Image/issues), especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

0 comments on commit a951f48

Please sign in to comment.