Commit graph

19 commits

Author SHA1 Message Date
Harshil Sharma
2ab4e95289
Updated go version (#3189)
* Updated go version

* Generated mocks

* lint fix

* lint fix

* lint fix

* Updated gitlab builder image
2022-06-06 10:18:21 +02:00
Spiros Economakis
539aee6a46
Fix configuration for prometheus address (#2763)
The env variable for prometheus address is not respected as it should be set as
viper default config.

Ticket: https://mattermost.atlassian.net/browse/43295
2022-04-12 17:43:29 -04:00
Ossi Väänänen
efd7821e07
Pin the FROM in dockerfiles. This prevents supply chain attacks where the latest image is replaced with a malicious version. (#2302)
Pinning done by using https://github.com/Jille/dockpin
2022-03-18 10:57:26 -07:00
Mickael V
5600d79ff1
Add chown for nobody in the docker run example (#2193)
Co-authored-by: Mickael <me@mvest.tech>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-31 16:52:02 +05:30
Jesús Espino
74161aa1ca
Remove duplicated restart on docker compose (#1067) 2021-08-23 16:38:34 +02:00
jingkai
6df2dd93dd
fix: fixed user nobody not owning /data (#683)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
Co-authored-by: Carlos Tadeu Panato Junior <carlos@mattermost.com>
2021-07-20 15:01:02 +02:00
Carlos Tadeu Panato Junior
41d01c18fb
docker: fix docker file image and apply some good practices (#552)
* docker: fix docker file image and apply some good practices

* update docker-compose
2021-07-01 11:46:03 +02:00
Stavros Foteinopoulos
1f7470aca7
Expose 9092 port on docker container (#517)
If this commit merged focalboard helm chart would be able to implement a metrics endpoint.
2021-06-22 11:08:16 +03:00
Kassim
69df147723
Add Docker volume persistence (#159)
* Add persistence to the default Docker container

This sets a default volume of `/data` for the Docker container.
This allows for persistence when using the default SQLite database, and the option of mounting the volume to the host for backing up.

* Add -v flag description

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-06-07 11:20:32 +02:00
Spiros Economakis
8f746a44bd
Enable prometheus metrics for Focalboard to enable observability (#414)
As an SRE team we would like to expose standard metrics and grouped by version
of the application. Right now will expose only metrics related to Go but instrumentor
should be used in other parts of the codebase so we can track other metrics, eg.
number of tasks, boards, users etc. Similar as we do in MM.

It will run in port `localhost:9092` and it is a new config `prometheus_address`.

Also in the commit we introduced, `group.Add` which helps us to handle gracefully
errors for goroutines. It's a good practice and there are couple of articles by
Golang for this.
2021-05-18 17:12:51 +03:00
Marco
12e793b7ad
recreate dockerfile (#168)
This commit recreates the entire dockerfile for several reasons:
* compile focalboard instead of downloading and extracting a tarball
* it uses an alpine image and intermediate containers to obtain a much
  smaller image
* run focalboard as user inside the container instead of root

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-04-28 16:55:29 +02:00
Chen-I Lim
acd2a89d5a Update dockerfile and docs to v0.6.5 release 2021-04-21 10:37:06 -07:00
Jesús Espino
4fbb99b254 Set consistent spacing in the config file for the docker compose 2021-03-20 09:41:53 +01:00
Jeremiah Butler
9d26fac616 update docker-compose for dependency handling 2021-03-19 11:15:20 -04:00
Jeremiah Butler
f0a7713b16 update with changes to main 2021-03-19 11:09:19 -04:00
Jeremiah Butler
9738fca088 update files from main 2021-03-19 11:07:50 -04:00
Jeremiah Butler
d26aa73b32 reorder dockerfile install to alphabetize 2021-03-18 20:38:02 -04:00
Jeremiah Butler
f204a7fd92 update docker-compose and add README 2021-03-18 20:35:54 -04:00
Jeremiah Butler
7fa9017d25 add docker-compose 2021-03-18 15:53:38 +00:00