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
Dan Cech
0c8a2bbfd5
copy .github folder into golang build container since we rely on codeowners ( #62122 )
...
* copy .github folder into golang build container since we rely on codeowners
* remove .github for .dockerignore
2023-01-25 10:31:16 -05:00
Emil Tullstedt
67661c2535
Fix: Use an existing Dockerfile for the Go image ( #61158 )
2023-01-10 17:11:43 +01:00
Emil Tullstedt
bf574e98c8
Chore: Upgrade Go to 1.19.4 ( #60794 )
2022-12-29 13:03:56 +01: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
Ashley Harrison
ff1afbb699
Revert "Chore: move to node 18 ( #58570 )" ( #58754 )
...
This reverts commit 0a9129cf90 .
2022-11-15 13:47:14 +00:00
Ashley Harrison
0a9129cf90
Chore: move to node 18 ( #58570 )
...
* bump node version to 18
* update folder to 18.x
* update README for m1 instructions
* update drone
* update unit test
* update README
2022-11-11 11:34:00 +00:00
Emil Tullstedt
428dd54094
Chore: Upgrade Go to 1.19.3 ( #58052 )
2022-11-04 14:50:43 +01:00
Dan Cech
6a4a10fa92
remove unneeded package updates ( #58005 )
2022-11-02 09:30:20 -04:00
Emil Tullstedt
c2d3a31772
Chore: Upgrade Go to 1.19.2 ( #56355 )
2022-10-07 12:47:24 +02:00
Emil Tullstedt
b287047052
Chore: Upgrade Go to 1.19.1 ( #54902 )
...
* WIP
* Set public_suffix to a pre Ruby 2.6 version
* we don't need to install python
* Stretch->Buster
* Bump versions in lib.star
* Manually update linter
Sort of messy, but the .mod-file need to contain all dependencies that
use 1.16+ features, otherwise they're assumed to be compiled with
-lang=go1.16 and cannot access generics et al.
Bingo doesn't seem to understand that, but it's possible to manually
update things to get Bingo happy.
* undo reformatting
* Various lint improvements
* More from the linter
* goimports -w ./pkg/
* Disable gocritic
* Add/modify linter exceptions
* lint + flatten nested list
Go 1.19 doesn't support nested lists, and there wasn't an obvious workaround.
https://go.dev/doc/comment#lists
2022-09-12 12:03:49 +02:00
malcolmholmes
a19d82124b
Build: upgrade Alpine images ( #53743 )
2022-08-15 18:17:55 +02:00
Jean-Philippe Quéméner
8c5f5e7a32
Alerting: create provisioning dir in docker image ( #53594 )
2022-08-12 00:16:02 +02:00
Holger Freyther
27709adac3
docker: The cue directory is gone. Catch-up ( #52606 )
...
The files got removed in 8876d56495 but
the container was not updated yet.
2022-07-29 10:47:27 -05:00
Emil Tullstedt
78f26a079c
Chore: Upgrade to Go version 1.17.12 ( #52523 )
2022-07-20 14:27:44 +02:00
Dimitris Sotirakis
7b750cc0f0
Update Golang - bump grabpl and build-container ( #50253 )
2022-06-06 15:38:39 +02:00
Emil Tullstedt
24038d9985
Chore: Update Go version ( #47914 )
...
* Remove makefile (it's not used anymore)
* Directly download and install nodejs package
The Packages file for deb.nodesource.com/node_16.x doesn't list older
versions, so only the most recent version of nodejs is available. We
don't want to require every update to the build container to have to
update nodejs if a never version is available, so I manually download
the deb and install it with dpkg.
* Update Go version
* Update lib.star
* Generate new .drone.yml
2022-04-20 09:14:12 +02:00
Dimitris Sotirakis
a29159f362
Update golang ( #46458 )
2022-03-11 16:09:17 +01:00
ying-jeanne
b512a3d75f
bump go version to 1.17.7 ( #45772 )
2022-02-23 15:30:48 +02:00
Sofia Papagiannaki
35fe58de37
API: Extract OpenAPI specification from source code using go-swagger ( #40528 )
...
* API: Using go-swagger for extracting OpenAPI specification from source code
* Merge Grafana Alerting spec
* Include enterprise endpoints (if enabled)
* Serve SwaggerUI under feature flag
* Fix building dev docker images
* Configure swaggerUI
* Add missing json tags
Co-authored-by: Ying WANG <ying.wang@grafana.com >
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2022-02-08 13:38:43 +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
d71cd65dbc
Chore: Update developer guide with instructions building from Windows ( #42390 )
...
In addition, removess copying of local directory in Dockerfile since that directory
normally doesn't exist.
2021-12-01 10:34:00 +01:00
Jean-Philippe Quéméner
f3b023ffa6
Fix: add the babel config to the dockerfiles ( #42021 )
2021-11-20 15:40:13 +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
Guilherme Caulada
aac3f88603
Fix binaries copy step on dockerfile ( #41281 )
2021-11-04 12:35:32 -03:00
Guilherme Caulada
3cefa0bbba
Add support for local Makefile to docker ( #41296 )
2021-11-04 11:13:10 -03:00