Commit Graph

232 Commits

Author SHA1 Message Date
Agnès Toulet
d12c808279
Docker: Fix renderer plugin in custom Dockerfile (#88223)
* Docker: fix renderer plugin in custom Dockerfile

* Update Dockerfile
2024-05-30 10:27:26 +02:00
Gilles De Mey
8765c48389
Alerting: Remove legacy alerting (#83671)
Removes legacy alerting, so long and thanks for all the fish! 🐟

---------

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
Co-authored-by: Sonia Aguilar <soniaAguilarPeiron@users.noreply.github.com>
Co-authored-by: Armand Grillet <armandgrillet@users.noreply.github.com>
Co-authored-by: William Wernert <rwwiv@users.noreply.github.com>
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-03-14 15:36:35 +01:00
andrea denisse
9b9d91e7ae
Packaging: Use the GRAFANA_HOME variable in postinst script on Debian (#80853)
This commit addresses the issue where the postinst script was not using
the GRAFANA_HOME variable from the /etc/default/grafana-server
configuration file on Debian systems. Instead, it was relying on a
hardcoded home directory.

Fixes #80852
2024-01-19 18:10:40 -05:00
Horst Gutmann
01e430e821
chore: Bump Alpine base image to 3.18.5 (#80540) 2024-01-16 15:24:40 +01:00
Orgad Shaneh
b0b2158dea
Chore: Update ubuntu image to 22.04 (#70719) 2023-09-28 08:48:41 -05:00
Horst Gutmann
85abf2bebd
Chore: Upgrade Alpine base image to 3.18.3 (#74984) 2023-09-18 12:44:04 +03:00
Hamed Karbasi
df4f569b68
Build: Update plugin installation in custom Dockerfile (#68310)
Update custom dockerfile

Add `set -e` command to the custom Dockerfile to prevent missing plugins in installation.
2023-05-11 16:03:02 -04:00
MichaIng
a40f95e8a6
Packaging: Start Grafana service after InfluxDB (#64090)
as done with other database services, supported as Grafana data sources.

Signed-off-by: MichaIng <micha@dietpi.com>
2023-03-08 12:47:11 -05:00
Emil Tullstedt
110b05a0c0
Chore: Upgrade Go to 1.20.1 and Alpine to 3.17 (#63639) 2023-02-27 14:50:32 +01:00
MichaIng
71e5024d7a
Packaging: Stop and disable service on DEB package removal (#59580)
* Stop and disable service on DEB package removal

The condition for this code to run applies on package removal only, not on upgrade or reinstall which generally invoke the prerm script as well.

Currently the service keeps running after package removal, failing at some point due to missing files. And if enabled, the attempted service start on every boot is doomed to fail.

If the invoke-rc.d command exists, it can be assumed that update-rc.d exists as well, as both are part of the same init-system-helpers package in dpkg distro repositories.

If neither systemd, nor the init system helper package is installed, the service is not tried to be disabled, since we cannot know a safe method to do so.

Compared to the postinst script, "set -e" is skipped here, since we do not run any command which is allowed to fail the whole package removal.

Signed-off-by: MichaIng <micha@dietpi.com>

* Add postrm script to package build

Signed-off-by: MichaIng <micha@dietpi.com>

* Remove redundant check

Co-authored-by: Dan Cech <dan@aussiedan.com>

---------

Signed-off-by: MichaIng <micha@dietpi.com>
Co-authored-by: Dan Cech <dan@aussiedan.com>
2023-02-21 10:40:38 -05:00
Dan Cech
9c4051bfa1
Switch grafana server command to use urfave/cli/v2 (#60684)
* switch grafana server to use urfave/cli/v2

* autocomplete support

* lint fix
2022-12-24 22:33:18 -05:00
Dan Cech
1dbc22d18b
Build: don't remove grafana-server and grafana-cli binaries from deb and rpm packages (#59890)
* don't remove grafana-server and grafana-cli binaries from /usr/share/grafana/bin in deb and rpm packages

* don't add config overrides in /usr/sbin/grafana-server
2022-12-06 10:36:43 -05:00
Dan Cech
c4bb9d637e
Build: Unify custom dockerfiles, fix missing semicolon (#59615)
* unify custom dockerfiles, fix missing semicolon

* tweak verbiage

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* update example description

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2022-12-01 11:08:31 -05:00
Dan Cech
7436872dab
Build: Unified dockerfile for all builds (#59173)
* unified dockerfile for all builds

* update builder

* include docker commands and output in logs

* quiet docker build

* quiet gsutil
2022-11-28 16:18:53 -05:00
Dan Cech
9fec54df2d
Build: Streamline and sync dockerfiles (#58101)
* streamline and sync dockerfiles

* improve go dependency cacheability

* unify alpine and ubuntu Dockerfiles

* include glibc support in locally-built alpine images
2022-11-28 14:43:42 -05:00
Dan Cech
de99ce139c
Server: Switch from separate server & cli to a unified grafana binary (#58286)
* avoid the need for a second bulky binary for grafana-cli

* look for grafana-server in $PATH as well as same directory

* implement unified "grafana" command

* update dockerfiles, fix grafana-cli -v

* update packaging to work with single binary

- add wrapper scripts for grafana and grafana-server
- update and sync package files
- implement --sign flag of build package command
- stop packaging scripts folder, they are not useful for end users
- add support for --configOverrides in server command
- remove unused nfpm.yaml config file

* windows support
2022-11-22 11:53:43 -05:00
Simon Podlipsky
d32a9a62b5
Docker: Remove Edge repos (#53875)
Co-authored-by: Leonard Gram <leo@xlson.com>
2022-11-02 09:44:39 -04:00
Dan Cech
6a4a10fa92
remove unneeded package updates (#58005) 2022-11-02 09:30:20 -04:00
Jean-Philippe Quéméner
2fef8e6f2c
Alerting: add docs for file provisioning (#53101) 2022-08-17 18:53:36 +02:00
Jean-Philippe Quéméner
8c5f5e7a32
Alerting: create provisioning dir in docker image (#53594) 2022-08-12 00:16:02 +02:00
Scott Lepper
dbc2171401
fix dockerfile for oracle alpine image (#52667)
fix dockerfile for oracle alpine image
2022-07-25 10:12:22 -04:00
Emil Tullstedt
c12d1727f0
Docker: Update glibc version (#51107) 2022-07-06 17:30:56 +02:00
Dimitris Sotirakis
696405ba7b
Remove folder (#48617) 2022-05-05 12:19:35 +01:00
matt abrams
cb99fe7f22
remove ncurses upgrade in docker image (#44883) 2022-02-09 19:15:17 +01:00
Greg Myers
c1ff35a7ee
Fix typos in READMEs (#44084)
packaging/docker/README.md:31: compatability ==> compatibility
public/app/plugins/panel/debug/README.md:5: performace ==> performance
2022-01-21 16:10:48 +01:00
idafurjes
3ca58c0e0c
Chore: Upgrade go and alpine (#43801)
* Upgrade go and alpine

* Bump grabpl version

* Bump alpine version

* Fix version of grabpl

* Bump alpine version

* Bump alpine in Dockerfiles
2022-01-07 17:27:22 +01:00
Marcus Efraimsson
7c8410c057
Docker: Upgrade changelog v8.2.6 (#42677) 2021-12-02 17:54:16 +01:00
Marcus Andersson
170da29173
Docker: updating and syncing change log for docker hub (#42353)
* Syncing and updating README with docker hub.

* Update packaging/docker/README.md

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Update packaging/docker/README.md

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2021-11-26 11:49:35 +01:00
Leonard Gram
d624230b5d
Packaging: removes an unused dependency (#42071)
* Packaging: removes an unused dependency

libfontconfig1 was used by phantomjs but we aren't using phantomjs
anymore

* Packaging: removes further libfontconfig1 references
2021-11-24 10:45:29 +01:00
Dave Henderson
fc7277920c
Dockerfile: Bump Go and Alpine versions (#41922)
* Dockerifle: Bump Go and Alpine versions

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* Updating .drone.yml with 'make drone'

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2021-11-19 18:59:24 +01:00
Kevin Minehart
641a18b92e
upgrade ncurses in docker image (#41002) 2021-10-27 18:03:09 +02:00
Kevin Minehart
ca4b35e596
Packaging: remove private users setting in systemd unit files (#40815)
* Remove privateusers=true from grafana-server.service
2021-10-22 16:19:55 +02:00
Kevin Minehart
7e05536a22
update dockerfile (#40699) 2021-10-20 17:04:45 +03:00
Kevin Minehart
fe5e49476b
Packaging: Remove ProcSubset option in systemd (#40339)
* update rpm service file

* Update grafana-server.service
2021-10-12 11:18:49 -05:00
Kevin Minehart
cdea812cee
remove systemcallfilters sections from systemd unit files (#40176) 2021-10-08 15:50:59 +02:00
Torkel Ödegaard
bc01c9cdbc
Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00
MichaIng
68c7d054bf
Update PID file location form /var/run to /run (#35739)
Signed-off-by: MichaIng <micha@dietpi.com>
2021-09-03 10:50:13 -05:00
erdnaxe
5f521bd9ae
packaging: systemd unit hardening (#38109) 2021-09-02 07:36:35 -05:00
Dimitris Sotirakis
a5ce61b539
Chore: Update to alpine:3.14.2 (#38813)
* Update apline to 3.14.2

* Remove libcrypto1.1 libssl1.1 version dependencies

* Update grabpl version
2021-09-02 12:57:11 +03:00
Dimitris Sotirakis
00886afaf1
Force use versions of libcrypto1.1 and libssl1.1 (#38585) 2021-08-26 15:22:53 +02:00
Kevin Minehart
b3c4b20953
Docker: Update base alpine version (fix CVE-2021-36159) (#38088)
* update base alpine version and update apk packages in Dockerfile

* update base alpine version

* don't need to apk update

* remove space

* Update to alpine 3.14.1

Co-authored-by: Malcolm Holmes <mdh@odoko.co.uk>
2021-08-20 12:54:03 +01:00
Agnès Toulet
acf54905ee
Image Renderer: update env variable in docs and custom Docker files (#36501)
* Docs: fix env variable for grafana-image-renderer plugin

* Fix image renderer env variable in custom Docker files
2021-07-07 18:05:55 +02:00
Gabriel MABILLE
d56a653e73
AccessControl: Add provisioning folder to the packaging process (#34398)
* AccessControl: Add provisioning folder to the packaging process
2021-05-20 09:41:39 +02:00
Ben van B
752a0f3a65
[GH-33898] Add missing --no-cache to Dockerfile. (#33906) 2021-05-11 15:45:08 +02:00
Arve Knudsen
c2c1ec7d0f
Chore: Move from master to main branch (#33693)
* Chore: Move from master branch to main

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* CI: Upgrade build pipeline tool to v2

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-05-06 16:29:29 +02:00
Will Browne
6958340b24
Plugins: Support installing to folders with whitespace and fix pluginUrl trailing and leading whitespace failures (#32506)
* Plugins: Support installing to folders with whitespace and fix pluginUrl trailing and leading whitespace failures

* update docs

* update docs
2021-04-27 16:30:59 +02:00
Dimitris Sotirakis
814db3d28e
Chore: Change from double to single quotes (#32430) 2021-03-29 17:40:26 +03:00
Pureewat Kaewpoi
05d6d32f3e
Docker: Support pre-installing plugins from other sources in custom Dockerfiles (#31234)
Update custom Dockerfiles to support pre-installing plugins from other sources.

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2021-03-11 12:17:34 +01:00
Arve Knudsen
357cd8eb81
CI: Upgrade Dockerfiles wrt. Go, Node, Debian (#31407)
* CI: Upgrade Dockerfiles wrt. Go 1.16, Node, Debian

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-02-24 08:52:48 +01:00
Andrey Chugunov
2be217e026
Docker: use root group in the custom Dockerfile (#28639) 2020-10-29 15:02:09 +01:00