Commit Graph

145 Commits

Author SHA1 Message Date
Simon Podlipsky
b7d5587018
Dockerfile: Fix go deps (#89857)
Add missing deps
2024-06-27 17:53:43 -04:00
Andreas Zilly
f894c22b21
Chore: Add missing build elements to Dockerfile (#89714)
Several go.* files that are referenced in go.work were missing in Dockerfile.
2024-06-26 15:22:37 -04:00
Dave Henderson
20c90ff60d
Chore: bump Go to 1.22.4 (#88794)
* chore: bump Go to 1.22.4

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

* use go-version-file for ephemeral instances workflows too

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

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-06-05 14:29:27 -04:00
Stephanie Hingtgen
d365d442fa
Chore: Upgrade go to 1.22.3 (#87463) 2024-05-07 15:23:21 -05:00
Jack Westbrook
0f4db3f5ad
Fix: yarn build in DockerFile (#86858) 2024-04-30 07:58:25 +02:00
Kristin Laemmert
f1aa6549f6
Chore: Upgrade go version to 1.22.2 (#86873)
* Chore: Upgrade go version to 1.22.2
* upgrade to latest swagger for go 1.22 compatibility
* regen openapi spec
* upgrade go in github workflows
2024-04-24 14:26:14 -04:00
Dave Henderson
5cfca8dbf6
chore: bump Go to 1.21.9 (#85964)
* chore: bump Go to 1.21.9

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

* regen .drone.yml

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

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-04-11 15:37:07 -04:00
Simon Podlipsky
61e4cfac65
Docker: Fix missing go dependencies (#85441)
ci: fix missing go dependencies

```
 > [go-builder 11/25] RUN go mod download:
0.303 go: cannot load module pkg/build/wire listed in go.work file: open pkg/build/wire/go.mod: no such file or directory
------
Dockerfile:64
--------------------
  62 |     COPY pkg/promlib/go.* pkg/promlib/
  63 |
  64 | >>> RUN go mod download
  65 |     RUN if [[ "$BINGO" = "true" ]]; then \
  66 |           go install github.com/bwplotka/bingo@latest && \
  ```
2024-04-03 14:01:09 +01:00
Simon Podlipsky
708ee9f9ee
Docker: Do not run apk on non-alpine distros (#83361) 2024-04-03 13:21:27 +01:00
Mathieu Parent
4a50897f39
CI: Fix missing vendor dependencies (#84375)
Fixes: #84342
2024-03-19 12:41:27 +01:00
Andreas Christou
0236053f70
Chore: Bump docker image versions (#84033)
Bump docker image versions
2024-03-07 13:04:37 +00:00
Dave Henderson
01fb2cff62
chore: bump Go to 1.21.8 (#83927)
* chore: bump Go to 1.21.8

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

* bump workflows too

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

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-03-05 15:24:34 -05:00
Saturn IDC
ac284def02
CI: Fix missing vendor dependencies (#83464) 2024-02-27 12:29:58 +00:00
Andreas Christou
7730a38474
CI: Remove inline-builds flag (#83306)
Remove inline-builds
2024-02-23 15:11:04 +02:00
Ben Donnelly
fa37d8467f
fix(build): make python and gcc are needed for some yarn dependencies… (#83228)
fix(build): make python and gcc are needed for some yarn dependencies to build
2024-02-23 11:14:54 +01:00
Andreas Christou
d503107d7a
Docker: Add workaround for building on arm64 (#83242)
Add workaround for building on arm64
2024-02-22 18:59:06 +00:00
Timur Olzhabayev
4083d23f01
Chore: Bumping go to 1.21.6 (#80709)
* Bumping go to 1.25.6

* bumping sqlite to 1.14.19

* Bumping sqlite version
2024-01-23 14:32:26 +01:00
Timur Olzhabayev
7c74ab7059
Revert "bumping go to 1.25.6"
This reverts commit 73439f2cd3.
2024-01-17 11:40:25 +01:00
Timur Olzhabayev
73439f2cd3
bumping go to 1.25.6 2024-01-17 11:38:25 +01:00
Horst Gutmann
01e430e821
chore: Bump Alpine base image to 3.18.5 (#80540) 2024-01-16 15:24:40 +01:00
Jack Westbrook
de01e1db18
Chore: Remove unused babel dependencies and references (#76791)
* build(babel): remove unused babel dependenices and references from project

* chore: put back ts-loader

* chore(yarn): refresh lock file

* revert: remove ts-loader
2024-01-16 14:26:43 +01:00
Timur Olzhabayev
4991e71b85
Chore: Upgrade Go to 1.21.5 (#79329)
* bumping grafanas go version to 1.21.5

* adding how to upgrade go doc

* removing the whole ci-build and corresponding pipelines

* clarifying that we have to run make drone

* fixing starlark linter and removing unused code

* Adding note about enterprise

* trying to change the underyling image to avoid musl issues

* only need to golang one
2023-12-15 10:36:49 +01:00
Xavi Lacasa
31dbf57aef
fix: Add vendored dependencies to Dockerfile (#78285)
Add vendored dependencies to Dockerfile
2023-11-17 17:38:46 +01:00
Ryan McKinley
5d5f8dfc52
Chore: Upgrade Go to 1.21.3 (#77304) 2023-11-01 09:17:38 -07:00
Jack Westbrook
69af9f9ad7
Chore: Update to node 20 (#76097)
* chore(node): update node version to 20

* chore(node): bump to 20.8.0, update drone variables

* chore(drone): update yaml config

* chore(yarn): bump yarn to latest to fix building binaries ERR_IMPORT_ASSERTION_TYPE_MISSING errors

* test(grafana-data): update whitespace in time formats for node 20 (18.13+)

* chore(node): move to LTS 20.8.1

* chore(node): bump to LTS 20.9.0
2023-10-26 09:34:50 +02:00
Andres Martinez Gotor
157ea31b03
Build testdata frontend standalone (#75833) 2023-10-16 17:31:43 +02:00
Horst Gutmann
6b52bb9c27
Chore: Upgrade Go to 1.20.10 (#76359) 2023-10-11 16:49:24 +03:00
Sam Jewell
bbadbeb2be
Build: removing .linguirc to the copied files in the Dockerfile (#75703)
Local Dockerfile fails with:

```
 => ERROR [js-builder  8/12] COPY tsconfig.json .eslintrc .editorconfig .browserslistrc .prettierrc.js babel.config.json .linguirc ./                                0.0s
 => [go-builder  3/20] WORKDIR /tmp/grafana                                                                                                                          0.0s
 => [go-builder  4/20] COPY go.* ./                                                                                                                                  0.3s
 => [go-builder  5/20] COPY .bingo .bingo                                                                                                                            0.0s
 => CANCELED [go-builder  6/20] RUN go mod download                                                                                                                  2.2s
------
 > [js-builder  8/12] COPY tsconfig.json .eslintrc .editorconfig .browserslistrc .prettierrc.js babel.config.json .linguirc ./:
------
Dockerfile:24
--------------------
  22 |     RUN yarn install --immutable
  23 |
  24 | >>> COPY tsconfig.json .eslintrc .editorconfig .browserslistrc .prettierrc.js babel.config.json .linguirc ./
  25 |     COPY public public
  26 |     COPY scripts scripts
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref cc72e2cc-395a-46c9-b6ce-98fa942823cd::dy0j4lc6k08aluey90uugfvr4: "/.linguirc": not found
make: *** [build-docker-full] Error 1
```

That file has not existed on `main` since PR #75658 got merged.
2023-09-29 08:27:00 +00:00
Horst Gutmann
85abf2bebd
Chore: Upgrade Alpine base image to 3.18.3 (#74984) 2023-09-18 12:44:04 +03:00
Horst Gutmann
39dbd98458
Chore: Upgrade Go to 1.20.8 (#74978)
chore: Update to Go 1.20.8
2023-09-18 11:29:50 +03:00
Kevin Minehart
364ca3daa0
Docker: Add musl as a ubuntu dependency (#74127)
Add musl as a ubuntu dependency
2023-08-30 20:26:35 +03:00
Horst Gutmann
6277c04caf
Add LICENSE file to generated Docker images (#74082) 2023-08-30 13:26:50 +02:00
Emil Tullstedt
e07fbeef60
Chore: Upgrade Go to 1.20.6 (#71440) 2023-07-12 15:32:40 +02:00
Sofia Papagiannaki
9812ad2cb2
Chore: Upgrade Go to 1.20.4 (#67748)
Upgrade Go to 1.20.4
2023-05-04 10:52:43 +03:00
Ricky Whitaker
5765514397
rolling back sed command to add ubuntu mirrors (#67780) 2023-05-03 22:21:54 +03:00
Ricky Whitaker
00a6a14a23
adding backup ubuntu mirrors into Dockerfile (#67341) 2023-05-03 12:53:14 -05:00
Guilherme Caulada
614427c602
Build: Add optional build-args for COMMIT_SHA and BUILD_BRANCH (#66672)
* Remove .git from .dockerignore

* Revert "Remove .git from .dockerignore"

This reverts commit 5a4658f270.

* Add optional COMMIT_SHA and BUILD_BRANCH environment variables
2023-04-18 10:03:27 -03:00
Emil Tullstedt
202afb9041
Chore: Upgrade Go to 1.20.3 (#66264) 2023-04-14 10:01:14 +02:00
Guilherme Caulada
ac09372abf
Docker: Allow to get commit sha when using root Dockerfile (#65870)
* Allow to get commit sha when using root Dockerfile
2023-04-03 15:24:14 -03:00
Ricky Whitaker
412fc4dcfb
Add Curl in Alpine to Support Docker Health Check (#65547)
adding curl into alpine build for this issue: https://github.com/grafana/grafana/issues/60805
2023-03-31 15:36:57 -05:00
Guilherme Caulada
ac03c0efed
Docker: Allow docker-build-full to work for BSD and GNU based systems (#65216)
* Replace tmp folder for tar stdin on build-docker-full

* Fix building linux/arm64 images using the Dockerfile
   Introduces JS_PLATFORM variable with linux/amd64 as default to allow building node packages.

* Revert unintended white line changes on Dockerfile
2023-03-23 12:03:25 -03:00
Kevin Minehart
dfee4249e8
Packaging: Dockerfile copy local folder (#64766)
Dockerfile copy local folder
2023-03-14 14:44:11 -05:00
Guilherme Caulada
69aba3eed3
Dockerfile: Allow building docker images locally for different editions (#63893)
* Allow to build different editions from dockerfile

* Fix missing argument on dockerfile
2023-02-28 17:18:00 -03: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
Jack Westbrook
2281abaf37
Revert: Babel removal and runtime update (#63641)
* Revert "Update babel monorepo to v7.21.0 (#63532)"

This reverts commit 3d974fc716.

* Revert "Chore: Remove babel deps and config (#62461)"

This reverts commit 21a988a659.
2023-02-23 09:22:35 -05:00
Jack Westbrook
21a988a659
Chore: Remove babel deps and config (#62461)
* chore: remove unused frontend build deps babel and ts-loader

* chore(babel): delete redundant config file and remove ref in pr-commands

* chore: clean up references to babel.config.js
2023-02-23 11:59:05 +01:00
Emil Tullstedt
c72d18f5e6
Revert "Chore: Upgrade Go to 1.20.1 and Alpine to 3.17 (#63506)" (#63567)
This reverts commit 747ddf7b33.
2023-02-22 08:14:26 -05:00
Emil Tullstedt
747ddf7b33
Chore: Upgrade Go to 1.20.1 and Alpine to 3.17 (#63506) 2023-02-22 11:53:06 +01:00
Sofia Papagiannaki
29d3e696f0
Swagger: Fix circular reference (#62673)
* Swagger: Fix circular reference

* gitignore intermediate swagger file

* Update specs

* Do not generate specs when building the backend
2023-02-02 13:18:04 +02:00
Ashley Harrison
64352e8d08
Chore: Move to node 18 again (#62079)
move to node 18 again
2023-01-26 10:19:39 +00:00