From ce0b89a26ef5d45b6aa797eac9426faa7c04d2d2 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 19 Jun 2015 09:00:28 -0400 Subject: Adding linux setup instructions to readme. Adding Dockerrun.aws.json file --- README.md | 33 ++++++++++++++++++++++++++++++--- docker/Dockerrun.aws.json | 13 +++++++++++++ 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100755 docker/Dockerrun.aws.json diff --git a/README.md b/README.md index db513b16b..0a3798aef 100644 --- a/README.md +++ b/README.md @@ -24,18 +24,44 @@ You're installing "Mattermost Preview", a pre-released 0.40 version intended for That said, any issues at all, please let us know on the Mattermost forum at: http://bit.ly/1MY1kul -Developer Machine Setup (Docker/Mac) ------------------------------------- +Local Machine Setup (Docker) +----------------------------- + +### Mac OSX ### 1. Follow the instructions at http://docs.docker.com/installation/mac/ 1. Use the Boot2Docker command-line utility 2. If you do command-line setup use: `boot2docker init eval “$(boot2docker shellinit)”` 2. Get your Docker IP address with `boot2docker ip` 3. Add a line to your /etc/hosts that goes ` dockerhost` -4. Run `boot2docker shellinit` and copy the export statements to your ~/.bash_profile +4. Run `boot2docker shellinit` and copy the export statements to your ~/.bash\_profile 5. Run `docker run --name mattermost-dev -d --publish 8065:80 mattermost/platform:helium` 6. When docker is done fetching the image, open http://dockerhost:8065/ in your browser +### Ubuntu ### +1. Follow the instructions at https://docs.docker.com/installation/ubuntulinux/ or use the summery below. +`sudo apt-get update` +`sudo apt-get install wget` +`wget -qO- https://get.docker.com/ | sh` +`sudo usermod -aG docker ` +`sudo service docker start` +`newgrp docker` +2. Run `docker run -d --publish 8086:80 mattermost/platform` +3. When docker is done fetching the image, open http://localhost:8086/ in your browser + +### Arch ### +1. Install docker using the following commands +`pacman -S docker` +`systemctl enable docker.service` +`systemctl start docker.service` +`gpasswd -a docker` +`newgrp docker` +2. docker run -d --publish 8086:80 mattermost/platform +3. When docker is done fetching the image, open http://localhost:8086/ in your browser + +### Notes ### +If your ISP blocks port 25 then you may install locally but email will not be sent. + If you want to work with the latest bits in the repo you can run the cmd `docker run --name mattermost-dev -d --publish 8065:80 mattermost/platform:latest` @@ -46,6 +72,7 @@ If you wish to remove mattermost-dev use the following commands 1. `docker stop mattermost-dev` 2. `docker rm -v mattermost-dev` + AWS Elastic Beanstalk Setup (Docker) ------------------------------------ diff --git a/docker/Dockerrun.aws.json b/docker/Dockerrun.aws.json new file mode 100755 index 000000000..52bbb2ae5 --- /dev/null +++ b/docker/Dockerrun.aws.json @@ -0,0 +1,13 @@ +{ + "AWSEBDockerrunVersion": "1", + "Image": { + "Name": "mattermost/platform", + "Update": "true" + }, + "Ports": [ + { + "ContainerPort": "80" + } + ], + "Logging": "/var/log/" +} -- cgit v1.2.3-1-g7c22 From 60ccc8fcfe35c4c8baa3816ea11a7f90425c4d17 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 19 Jun 2015 09:21:16 -0400 Subject: Adding name and tag to commands --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a3798aef..ed51ad652 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Local Machine Setup (Docker) `sudo usermod -aG docker ` `sudo service docker start` `newgrp docker` -2. Run `docker run -d --publish 8086:80 mattermost/platform` +2. Run `docker run --name mattermost-dev -d --publish 8086:80 mattermost/platform:helium 3. When docker is done fetching the image, open http://localhost:8086/ in your browser ### Arch ### @@ -56,7 +56,7 @@ Local Machine Setup (Docker) `systemctl start docker.service` `gpasswd -a docker` `newgrp docker` -2. docker run -d --publish 8086:80 mattermost/platform +2. docker run --name mattermost-dev -d --publish 8086:80 mattermost/platform:helium 3. When docker is done fetching the image, open http://localhost:8086/ in your browser ### Notes ### -- cgit v1.2.3-1-g7c22 From 4f0563ddea6cfc2ad067f141123d4c6023927c2e Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 19 Jun 2015 09:23:27 -0400 Subject: Switching port --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ed51ad652..7e564fdd6 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,8 @@ Local Machine Setup (Docker) `sudo usermod -aG docker ` `sudo service docker start` `newgrp docker` -2. Run `docker run --name mattermost-dev -d --publish 8086:80 mattermost/platform:helium -3. When docker is done fetching the image, open http://localhost:8086/ in your browser +2. Run `docker run --name mattermost-dev -d --publish 8065:80 mattermost/platform:helium +3. When docker is done fetching the image, open http://localhost:8065/ in your browser ### Arch ### 1. Install docker using the following commands @@ -56,8 +56,8 @@ Local Machine Setup (Docker) `systemctl start docker.service` `gpasswd -a docker` `newgrp docker` -2. docker run --name mattermost-dev -d --publish 8086:80 mattermost/platform:helium -3. When docker is done fetching the image, open http://localhost:8086/ in your browser +2. docker run --name mattermost-dev -d --publish 8065:80 mattermost/platform:helium +3. When docker is done fetching the image, open http://localhost:8065/ in your browser ### Notes ### If your ISP blocks port 25 then you may install locally but email will not be sent. -- cgit v1.2.3-1-g7c22