Commit Graph

27 Commits

Author SHA1 Message Date
Michael Eischer 46f3ece883 Merge pull request #5597 from MichaelEischer/bump-go-for-standalone-docker
bump go version in dockerfile to go 1.25
2025-11-17 22:05:45 +01:00
ferringb 87f26accb7 feat: add integrated nice and ionice options for docker (#5448)
The intended usage here is to basically kick restic as a background
"do it, but don't bother my normal load" process.

This allows passing the following environment variables in to
influence scheduling:

- NICE: usual CPU nice.  Defaults to 0.  This requires CAP_SYS_NICE
  to set a negative nice (IE, prioritize).
- IONICE_CLASS: usual ionice class.  Note that setting realtime
  requires CAP_SYS_ADMIN.  Also note the actual ionice default
  is "none".
- IONICE_PRIORITY: set the priority within the given class.  Ignored
  if no class is specified due to class default of "no scheduler".

---------

Signed-off-by: Brian Harring <ferringb@gmail.com>
Co-authored-by: Michael Eischer <michael.eischer@fau.de>
2025-11-16 16:42:33 +01:00
Michael Eischer 10a10b8d63 bump go version in dockerfile to go 1.25
Note that this go version is independent of that used for the official
release binaries.
2025-11-16 14:22:43 +01:00
Tobias Karch 8f858829ed Add OpenContainers labels to Dockerfile.release 2025-09-22 17:37:17 +00:00
Michael Eischer d5a94583ed bump dockerfile to go 1.23 2025-01-18 18:27:43 +01:00
Srigovind Nayak b48b1fa2c9 docker: update the base image to golang:1.22-alpine 2024-03-03 16:18:13 +05:30
Peter Dave Hello 6edfc73879 Remove additional --update for apk in Dockerfile 2023-10-01 18:00:15 +08:00
Michael Eischer 3a93e28605 CI: Remove .dockerignore to ensure reproducible builds
Since go 1.18, built binaries also include VCS information such as the
built commit. This information is also included in the official
binaries. To ensure that the Docker container recreates the same
binaries, the .git folder must also be transferred into the container.
Thus, remove the .dockerignore file.

The copied files must also be owned by the current user within the
container, as git refuses to work otherwise.
2023-07-08 23:16:14 +02:00
Michael Eischer 31e07cecbb docker: update to Go 1.20 for custom container builds 2023-07-08 23:05:39 +02:00
Michael Eischer 43fa051546 Directly build restic binary in release Docker container 2023-07-08 23:05:02 +02:00
Michael Eischer 2293835242 Release multi-platform docker containers 2023-07-08 23:05:02 +02:00
Louis Matthijssen dbe2eef80c Add hostname flag to Docker docs
Fixes #4380
2023-07-01 18:46:31 +02:00
Niklas Wagner c1101ede19 Add jq to container image 2023-02-21 14:01:43 +01:00
Leo R. Lundgren 0a4cddb34d docker: Increase Go version to 1.19 2022-11-03 22:59:59 +01:00
cimnine f28c8bc1c2 Multistage Docker build 2021-09-21 08:23:33 +02:00
Michael Eischer 781378a65e Bump go version to 1.16 2021-03-04 23:24:26 +01:00
vrenaville adc7a6555f [FIX] Timezone in docker image 2020-11-27 08:05:19 +01:00
J0WI 090a73f7c5 Update Go version to 1.15 in Docker build script 2020-09-20 15:42:12 +00:00
J0WI 9c3414374a Update Go version to 1.14.6 in Docker build script 2020-07-25 14:45:36 +02:00
iambryancs 4bcd56fbae Update Go version to 1.13.6 in Docker build script 2020-01-17 02:13:11 +08:00
Christian Groschupp 92ecca1808 Add ssh binary to docker image to allow sftp repository 2018-10-14 19:56:02 +02:00
Alexander Neumann 5aa0deeff9 Merge pull request #2026 from gottwald/update-go4docker
Update Go version to 1.11.1 in Docker build script
2018-10-06 13:11:19 +02:00
Johannes Hertenstein 63647e93e4 Escape subcommand in docker build script 2018-10-05 22:13:49 +02:00
Ingo Gottwald 2c4b0d975e Update Go version to 1.11.1 in Docker build script
Restic cannot be built with Go 1.8.3 any more, it requires at least Go
1.9.0.
2018-10-05 21:13:28 +02:00
Alexander Neumann b1e1b71bab docker: Base image on latest alpine release 2018-10-03 21:33:13 +02:00
Bruno Clermont d702227af0 install fuse and ca-certificates 2017-06-23 10:38:19 +02:00
Bruno Clermont b7251dbea5 add docker image 2017-06-23 10:28:18 +02:00