summaryrefslogtreecommitdiff
path: root/build-docker.sh
AgeCommit message (Collapse)Author
2026-03-02Merge branch 'master' into arm64Serge Schneider
2026-03-02More qemu-user-static->qemu-user-binfmt changesSerge Schneider
2025-08-19Merge branch 'master' into arm64Serge Schneider
2025-08-19bookworm -> trixieSerge Schneider
2025-01-22Merge branch 'master' into arm64Serge Schneider
2025-01-22Switch docker build to Debian BookwormStefan Becker
2024-02-26Merge branch 'master' into arm64Serge Schneider
2024-02-23Remove QCOW2 build mechanism (#648)Mark Spatz
2023-11-27Merge branch 'master' into arm64Serge Schneider
2023-11-22Fix typo (#725)Ponj
depoy > deploy
2023-10-17Merge branch 'master' into arm64Serge Schneider
2023-10-17Fix build-docker.sh CONTINUE=1 mode (#716)Stefan Becker
This fixes commit ed68013abbe46c0f665a157a9bdfd06603811101 Remove extra quotes so that docker sees pigen_work, not "pigen_work".
2023-09-25fix: support bash v3 by removing array usage (#705)Reuben Miller
2023-09-25fix: support bash v3 by removing array usage (#705)Reuben Miller
2023-05-09Register aarch64 in binfmt misc (#694)Stefan Becker
This modifies commit 6dc45a80e764eacd6e311c32164b623bbe7f8e08 for the arm64 branch. For 64-bit builds we need to register qemu-aarch64-static instead. Improves on #685
2023-05-09Skip binfmt_misc register when unnecessary (#693)Stefan Becker
This improves commit 6dc45a80e764eacd6e311c32164b623bbe7f8e08 Check if interpreter is already registered before running the register step. This avoids unnecessary "sudo" execution which may require user interaction for the password. Improves on #685
2023-04-25Merge branch 'master' into arm64Serge Schneider
2023-04-03Copy container log to deploy (#688)Stefan Becker
The container log is much more detailed than the default build.log, which makes life much easier for a build maintainer. Before deleting the container copy the log out to the deploy/ directory.
2023-04-03Register binfmt_misc entry for docker build (#685)Mohsen Tahmasebi
2023-03-28Merge branch 'master' into arm64Serge Schneider
2023-03-28DRY removal for docker run command line (#686)Stefan Becker
Factor out the differences into variables so that there is only one implementation of the "docker run" command line to maintain.
2023-03-27Merge branch 'master' into arm64Serge Schneider
2023-03-27Ensure that deploy is always owned by user (#680)Stefan Becker
Switch "docker cp" to tar streaming mode. As the receiving "tar" command is executed outside Docker the resulting directories & files are owned by the calling user.
2023-03-27Check that docker is not set up in rootless mode (#679)Stefan Becker
Mounting binfmt_misc inside the container requires root rights. If "docker info" indicates rootless mode then fall back to "sudo docker". Allow the user to override the docker command with the DOCKER by setting the environment variable.
2022-04-25Docker: always use debian:bullseye for arm64 imageXECDesign
Fixes #613
2022-02-02Strip trailing spacesSerge Schneider
2022-01-31Fix docker build with debian bullseye imagesimonliedl
- Fix missing sfdisk which is not included anymore in bullseye container - Fix problem with binfmt_misc not being mounted inside docker although present on host
2021-10-05Switch to bullseyeSerge Schneider
2021-06-17Added simple catch for default case in which PIGEN_DOCKER_OPTS is ↵DBongiorno-CG
unspecified during docker build (#522)
2021-06-16Added PIGEN_DOCKER_OPTS to build-docker.sh (#521)Claude Warren
2021-02-10Add QCOW2 build mechanism (#349)Holger Pandel
2020-10-06Automagically use i386/debian:buster (#415)Ani
* Autmagically use 1386/debian:buster when running on 64-bit host to prevent error #271
2020-02-20BusyBox realpath does not support -s flag, fallback to use no flags (#384)Tim Visée
* BusyBox realpath does not support -s flag, fallback to use no flags * Fix config sourcing problem
2019-11-11OS X does not have realpath (#342)snoe925
Check that realpath is present. OS X doesn't have realpath. The RPi builds on Docker for Mac if you increase the VM size. I am using 256G for my image. See the Docker for Mac preferences.
2019-08-11Moved git-hash determination to passed in build variable (#273)Kevin Stone
2019-07-30Ensure that the configuration file is an absolute path in Docker build (#306)Hugo Hromic
* Use `&&` instead of `;` in Docker pipeline * In case of error, `&&` does not continue execution * Silence shellcheck warning * SC2086: Double quote to prevent globbing and word splitting. * Ensure that the configuration file is an absolute path in Docker build The specific problem is in commit 2ddd7c1, where the passed config file (using the `-c` option) is now mounted inside the container using the `--volume src:dest:opt` Docker option. The problem is that Docker requires absolute paths for mounting single files inside the container, otherwise it silently tries to mount a volume name instead as an empty directory. Therefore the Docker build no longer works with the following invocation forms (relative config-paths): ./build-docker.sh -c myconfig /path/to/build-docker.sh -c myconfig # also doesn't work This commit uses `realpath` (included in coreutils) in the Docker build script to ensure that the passed configuration file is always an absolute path before passing it to Docker.
2019-07-23Make build_docker.sh portable again (#308)Jens Hilligsøe
Last commit made the script break on macOS. From `man sed` (On Linux): ``` -E, -r, --regexp-extended use extended regular expressions in the script (for portability use POSIX -E). ```
2019-07-02build-docker.sh does not assume PWD=<repo root> (#302)Samuele Maci
* bash variables in build-docker.sh are wrapped by curly brackets * Ensure presence of config file while running build-docker.sh * Do not assume that build-docker.sh is run from the repository root directory * Mount config file in predictable location in docker container
2019-04-25Silence shellcheck warnings (#279)Hugo Hromic
* SC1091: the `config` file might not be present, which is normal. * SC2086: Double quote to prevent globbing and word splitting. Tested clean output using: `find -name "*.sh" -exec shellcheck -x {} \;`
2019-02-18Silence shellcheck warnings (#255)Hugo Hromic
* Made more specific shellcheck disables * Fixed variable quoting (SC2086,SC2064) * Use `$*` expansion instead of `$@` when not using arrays (SC2124) * Use cleaner `$()` syntax instead of back quotes (SC2006) * Improved comparator (SC2166) * Minor improvements in coding style Tested clean output using: `find -name "*.sh" | xargs -n1 shellcheck -x`.
2019-02-18Ensure extra config file is passed to dockerSam Tygier
Fixes #253 Rather than use --env-file, which gets overwritten by the regular config file, pass the any arguments to build-docker.sh through to build.sh.
2018-12-21Add commandline argument for config fileSam Tygier
A config file can be specified when running build, e.g.: ./build.sh myconfig
2018-03-13shellcheckSerge Schneider
2018-03-05Add option to preserve build container (#160)andig
2018-01-02Correct help text (#145)andig
2017-09-21fix docker-in-docker copying when not doing CONTINUE=1Claus Strasburger
2017-09-21Docker-Build enhancementsClaus Strasburger
- don't use any volume mounts anymore to allow using docker-in-docker (with docker.sock mounted) - smaller Docker build context by ignoring some files
2017-09-04[fixing] docker partsJacen
2017-07-27Corrected various typos (#91)TJ Rana
* Rename License.md to LICENSE * Correct typos * Clean up code layout Organize layout with extra lines
2017-07-17Docker build: move to debian stretchClaus Strasburger