-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation on building/running Docker container #91
Comments
simple instructions
Now that a Dockerfile has been created, if whomever controlled the mattermost docker hub account could
the most simple
That being said, here is a
|
@metanerd can you take care of this? How can we automatize that process? something like "as part of the release". |
https://hub.docker.com/repository/create Link it to your repository here, and then you can configure automatic builds & tags on commits to master or releases |
@jwilander are you the person to contact for this? |
Yep. I can make the dockerhub repo right now. As for getting the automation configured someone should be able to submit a circleci configuration for it. @metanerd or myself can configure the secrets in circleci for dockerhub for it but we've got a bunch of other high priority stuff we're working on right now so if you need more than that we'll need a JIRA ticket and to prioritize accordingly. |
Actually looks like I can hook it directly up to dockerhub for auto-building per what @dustin-hawkins said. Let me just do that. |
It's now set up here https://hub.docker.com/r/mattermost/focalboard. New pushes to master will get built as |
nice! |
@jwilander Thanks! |
For what it's worth, I have setup a build for ARM images for deploying on raspberry pi, available at Dockerhub: |
Do we need to be concerned about the API limits on Dockerhub?
I've no idea what the current rate of pulls is for this container, but if it takes off then we could easily surpass those limits I guess. Perhaps one to keep in mind for the future if nothing else? |
Mattermost has a paid DockerHub account so there will be no limits for how many pulls can be made from |
Probably not so much an issue for this particular project, but I've got a client who builds containers from stuff on DockerHub via CI/CD and they've been hitting the 100 pull limit frequently of late. We're now in the process of setting up a local mirror for that container to work around this! Good to know it won't be an issue for Focalboard though! |
@jwilander I'm not sure what exactly happened, but there's no tags available to download for the docker image you specified at Docker hub: https://hub.docker.com/r/mattermost/focalboard/tags?page=1&ordering=last_updated Only the tag Could you take a look at that, if possible, please? Thanks |
@fjorgemota that's because the Dockerfile didn't exist when the tags were created so those older versions of the repo don't have it and dockerhub won't build it @chenilim / @jespino thoughts about tagging again so there's a tagged docker image? |
Ahhh, fair enough. Thanks for the fast answer! And sorry for bothering with such a simple question. =) |
Focalboard's Caprover One-Click-Apps also added caprover/one-click-apps/pull/414 |
Just trying to clean up old issues. @jespino, are there any follow up actions required on this one? Thanks. |
What is the volume to be exposed for persistence? Also, a |
Any volume we can use for persistence? Would like to make sure data is persisted after any restarts 🤷 Could hunt to see what kind of persistence myself, but it should be called out for sure. Edit: Looks like there is a nice docker-compose file (docker-compose-db-nginx.yml), which I'm happy exists, and it looks like it was included in docker/README.md Docker Hub, however, doesn't have this information and it would be good to have it there as well 👍 |
None of the two docker compose files in (https://github.com/mattermost/focalboard/tree/main/docker) uses SQLite. I'd like to mount a SQLite db file (from my home folder to the container) through the "volumes" command, where should be the targeted location? Thanks! |
@datafj There are currently Duplicate Instructions on how to use/build it with Docker. I suppose what you are looking for is in docker/README: Where "/home/user/focalboard-data" is the Path in your Host System. Be Aware that you currently can't access the Config that Way. I am currently trying Possibilities to add that too. |
https://www.focalboard.com/download/personal-edition/docker/ Why isn't there any mention about persistent storage?? |
@btxtiger its doubled Information, There, the Path to Relevant Data inside the Container is given: There is some trouble Providing the Config at Startup: |
I experimented a bit, creating a reliable docker setup. This is my solution so far, hope it helps. Feel free to use it in the docs. Create a new project dir, e.g. {
"serverRoot": "http://localhost:8000",
"port": 8000,
"dbtype": "postgres",
"dbconfig": "postgres://focalboard:my_db_password@db/focalboard_docker?sslmode=disable&connect_timeout=10",
"postgres_dbconfig": "dbname=focalboard sslmode=disable",
"useSSL": false,
"webpath": "./pack",
"filespath": "./data/files",
"telemetry": false,
"session_expire_time": 2592000,
"session_refresh_time": 18000,
"localOnly": false,
"enableLocalMode": true,
"localModeSocketLocation": "/var/tmp/focalboard_local.socket"
}
version: "3"
networks:
app_group:
external: false
volumes:
data_volume:
driver: local
db_volume:
driver: local
services:
fb:
container_name: focalboard_app
image: mattermost/focalboard
volumes:
- data_volume:/opt/focalboard/data
- ./focalboard-config.json:/opt/focalboard/config.json:rw
ports:
- 9991:8000
restart: unless-stopped
networks:
- app_group
depends_on:
- db
db:
container_name: focalboard_db
image: postgres:15-alpine
environment:
POSTGRES_PASSWORD: my_db_password
POSTGRES_USER: focalboard
POSTGRES_DB: focalboard_docker
volumes:
- db_volume:/var/lib/postgresql/data
restart: unless-stopped
networks:
- app_group Finally run |
There should be some information on how to build and run the Docker container in the README.
The text was updated successfully, but these errors were encountered: