/docker-brew-alt

Primary LanguageShellGNU General Public License v2.0GPL-2.0

docker-brew-alt

This project space exists as an upload entry point to import the official ALT Linux Docker Base Images built in Hasher (ALT's Build System) so that they may be submitted to the official-images repository for the Docker Hub.

These images are built as profile "docker" from a mkimage-profiles that is part of the sub-project of BaseALT. If there is an issue or request for a change to the contents of the ALT Docker Base Image, please file an bug.

Docker Base Image Build process

  1. Prepare build system:

    1. Install ALT Linux.
    2. Install hasher and mkimage apt-get install hasher mkimage
    3. Install livecd-qemu-arch and qemu-user-static for cross-build for aarch64. apt-get install livecd-qemu-arch qemu-user-static Run (after every reboot) register-qemu-aarch64 for register aarch64 in binfmt.
    4. Add non-root user for hasher. hasher-useradd joe
  2. Run the ./prep-docker-brew-branch.sh script as non-root user, this will build a new base image.

./prep-docker-brew-branch.sh p8

At the end of the script you will see something similar to:

21:15:56 (1:31) $TMP/tmp.e3Mw8oMhta/workspace/out/docker-20180522-i586.tar.xz [24M]
** graphviz missing, target graph dot file: build/targets.dot
** diffable log: build/reports/cleanlog.log
21:17:24 (1:27) $TMP/tmp.e3Mw8oMhta/workspace/out/docker-20180522-x86_64.tar.xz [24M]
** graphviz missing, target graph dot file: build/targets.dot
** diffable log: build/reports/cleanlog.log
21:21:21 (3:56) $TMP/tmp.e3Mw8oMhta/workspace/out/docker-20180522-aarch64.tar.xz [23M]
** graphviz missing, target graph dot file: build/targets.dot
** diffable log: build/reports/cleanlog.log
  1. Make sure that the result of the previous is correct, it should look like the following:
$ git show --stat p8
commit a3fd4f897bda9424ac515dccfc33c0a46da96a64
Author: Mikhail Gordeev <obirvalger@altlinux.org>
Date:   17 hours ago

    Update altlinux p8 - 20180814

 i586/Dockerfile                      |  10 ++++++++++
 i586/alt-p8-i586-20180814.tar.xz     | Bin 0 -> 23896040 bytes
 x86_64/Dockerfile                    |  10 ++++++++++
 x86_64/alt-p8-x86_64-20180814.tar.xz | Bin 0 -> 24017716 bytes
 4 files changed, 20 insertions(+)
  1. Force push to alt-cloud/docker-brew-alt on github in order to overwrite history so we aren’t storing giant piles of tarballs in git.
$ git push -f origin p8
  1. Record commit logs of the updates here

  2. Send a Pull Request from alt-cloud/official-images to docker-library/official-images