docker icon indicating copy to clipboard operation
docker copied to clipboard

How i can build this for ARM server

Open sumersm7 opened this issue 3 years ago • 9 comments

how can i build it to deploye on my ARM server

sumersm7 avatar May 12 '22 05:05 sumersm7

@sumersm7 Please refer to the Dockerfile from the mattermost-server repo. I was able to build for arm64 a while back, I just replaced the amd64 to arm64.

FirzenYogesh avatar May 16 '22 19:05 FirzenYogesh

can you help me with the commands i need to build the image. iam new to docker.

sumersm7 avatar May 17 '22 04:05 sumersm7

Yea sure! So first clone the mattermost-server repo and cd into the build directory

After that run the following command

docker build -t mattermost:latest  .

This will start the docker build and the image will be available as mattermost:latest

FirzenYogesh avatar May 17 '22 05:05 FirzenYogesh

thanks that worked but when i run the image what are the env variables and other container i need to make it work (mysql PostgreSQL web-server).

is there a way to instant message u. if u got the time

sumersm7 avatar May 17 '22 06:05 sumersm7

I would suggest you to read the official documentation, it has the information you need regarding the web server and database setup. By default it uses PostgreSQL DB, if you want to use mysql, then you should change the docker-compose.yml to accommodate it. The env has a variable for database driver, you should set it to mysql if you want to use mysql database.

Otherwise you can use the defaults provided in this repo itself.

Also take a look at the repo’s docker-compose.yml.

FirzenYogesh avatar May 17 '22 06:05 FirzenYogesh

thanks a lot i was able to deploy it on my server

but i think ARM version doesn't have playbook. or i need to have License. coz in my amd64 local version have both playbook and boards

sumersm7 avatar May 17 '22 08:05 sumersm7

I think playbook is available from v6.7.0. The docker file on the server repo has the version 6.6.x. Maybe try changing that version and check again?

FirzenYogesh avatar May 17 '22 13:05 FirzenYogesh

@FirzenYogesh Great instructions. I was able to build the arm64 build from your direction. But as @sumersm7 said, I only see channels. Not playbooks and boards. I'm running v7.2.0. Is there any way to enable it or before docker build?

kirtan403 avatar Sep 09 '22 20:09 kirtan403

I was able to add them from the Marketplace! Thanks a lot for the wonderful guide! Now, I'm able to run it from my raspberry pi 4.

kirtan403 avatar Sep 09 '22 20:09 kirtan403