GithubHelp home page GithubHelp logo

manjaro / manjaro-docker Goto Github PK

View Code? Open in Web Editor NEW
179.0 10.0 41.0 141 KB

Base Docker for Manjaro

Home Page: https://hub.docker.com/r/manjarolinux/base

License: GNU General Public License v3.0

Dockerfile 58.98% Makefile 41.02%
docker docker-image manjaro

manjaro-docker's Introduction

Docker Base Image for Manjaro Linux

This repository contains all scripts and files needed to create a Docker base image for the Manjaro Linux distribution.

Purpose

  • Provide the Manjaro experience in a Docker MultiArch Docker Image for amd64 and arm64
  • Provide the most simple but complete image to base every other upon
  • pacman needs to work out of the box
  • All installed packages have to be kept unmodified

manjaro-docker's People

Contributors

boredland avatar dependabot[bot] avatar oberon-manjaro avatar philmmanjaro avatar renovate[bot] avatar sileshn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

manjaro-docker's Issues

pacstrap: invalid option -- 'd'

I needed a rootfs as a base to build manjaro image with packer. Came across this repository and make rootfs returns pacstrap error:

Test snippet:

cd manjaro-docker/x86_docker

docker run --privileged -ti --rm --volume .:/build -v /proc:/proc manjarolinux/base:latest \
  bash -c 'cd /build && pacman -Sy --noconfirm make arch-install-scripts manjaro-tools docker && make rootfs'

The error:

  Skipped: Running in chroot.
(8/9) Warn about old perl modules
(9/9) Cleaning up package cache...
env -i pacstrap -C /usr/share/manjaro-tools/pacman-default.conf -c -d -G -M /tmp/tmp.7DLhH40wnp archlinux-keyring awk coreutils gzip manjaro-keyring pacman sed systemd
==> ERROR: pacstrap: invalid option -- 'd'
make: *** [Makefile:7: rootfs] Error 1

But As soon as I modify Makefile git diff Makefile:

diff --git i/x86_docker/Makefile w/x86_docker/Makefile
index 64f7b18..418adeb 100644
--- i/x86_docker/Makefile
+++ w/x86_docker/Makefile
@@ -4,7 +4,7 @@ DOCKER_IMAGE:=base

 rootfs:
        $(eval TMPDIR := $(shell mktemp -d))
-       env -i pacstrap -C /usr/share/manjaro-tools/pacman-default.conf -c -d -G -M $(TMPDIR) $(shell cat packages)
+       env -i pacstrap -C /usr/share/manjaro-tools/pacman-default.conf -c -G -M $(TMPDIR) $(shell cat packages)
        cp --recursive --preserve=timestamps --backup --suffix=.pacnew rootfs/* $(TMPDIR)/
        arch-chroot $(TMPDIR) locale-gen
        arch-chroot $(TMPDIR) pacman-key --init

and re-run the same docker command, everything works fine and it buils manjaro.tar:

::United_States   : https://forksystems.mm.fcix.net/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
tar --numeric-owner --xattrs --acls --exclude-from=exclude -C /tmp/tmp.VrreVf5HIV -c . -f manjaro.tar
rm -rf /tmp/tmp.VrreVf5HIV

ls -laih manjaro.tar
7661437 -rw-r--r-- 1 root root 689M Mar 11 10:25 manjaro.tar

glibc in manjarolinux/base is broken

$ docker run --platform=linux/amd64 -it --rm manjarolinux/base
[root@7ce55ca02dbb /]# gpg
gpg: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libsqlite3.so.0)
[root@7ce55ca02dbb /]# sed -i 's/^IgnorePkg/#IgnorePkg/g' /etc/pacman.conf
[root@7ce55ca02dbb /]# pacman -Syu
:: Synchronizing package databases...
 core                                                                            166.2 KiB   124 KiB/s 00:01 [################################################################] 100%
 extra                                                                          1889.4 KiB  1799 KiB/s 00:01 [################################################################] 100%
 community                                                                         7.0 MiB  7.03 MiB/s 00:01 [################################################################] 100%
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) glibc-2.35-2

Total Download Size:    9.95 MiB
Total Installed Size:  48.28 MiB
Net Upgrade Size:       2.24 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 glibc-2.35-2-x86_64                                                               9.9 MiB  3.83 MiB/s 00:03 [################################################################] 100%
(1/1) checking keys in keyring                                                                               [################################################################] 100%
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity                                                                             [################################################################] 100%
error: GPGME error: Invalid crypto engine
error: glibc: missing required signature
:: File /var/cache/pacman/pkg/glibc-2.35-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
[root@7ce55ca02dbb /]#

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
base.Dockerfile
build.Dockerfile
github-actions
.github/workflows/image_build.yaml
  • actions/checkout v4@0ad4b8fadaa221de15dcec353f45205ec38ea70b
  • docker/setup-qemu-action v3@68827325e0b33c7199eb31dd4e31fbe9023e06e3
  • docker/setup-buildx-action v3@d70bba72b1f3fd22344832f00baa16ece964efeb
  • docker/login-action v3@e92390c5fb421da1463c202d546fed0ec5c39f20
  • docker/build-push-action v5@2cdde995de11925a030ce8070c3d77a52ffcf1c0
  • docker/build-push-action v5@2cdde995de11925a030ce8070c3d77a52ffcf1c0
  • ubuntu 22.04

  • Check this box to trigger a request for Renovate to run again on this repository

Broken glibc in basestrap?

Hi,

i wanted to use this image for automatic rootfs building in a ci with containers.

I really dont have a clue what the problem here is, but i have to explicitly write glibc into the list of packages. I expected a needed dependency to be in "base".

Used was the latest docker image available in manjarolinux/base today.

Here is the command log with error:

[root@ad57c79b991d /]# basestrap -d /mnt/ base
==> Creating install root at /mnt/
  -> Installing packages to /mnt/
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
resolving dependencies...
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "base"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "base"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "readline", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "libreadline.so=8-64", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "bash"
warning: cannot resolve "bash", a dependency of "base"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "coreutils"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "attr"
warning: cannot resolve "attr", a dependency of "acl"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "attr"
warning: cannot resolve "libattr.so", a dependency of "acl"
warning: cannot resolve "acl", a dependency of "coreutils"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "attr"
warning: cannot resolve "attr", a dependency of "coreutils"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "gmp"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "readline", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "libreadline.so=8-64", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "bash"
warning: cannot resolve "sh", a dependency of "gmp"
warning: cannot resolve "gmp", a dependency of "coreutils"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "libcap"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "pam"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "krb5"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "readline", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "libreadline.so=8-64", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "bash"
warning: cannot resolve "sh", a dependency of "e2fsprogs"
warning: cannot resolve "e2fsprogs", a dependency of "krb5"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "gdbm"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "readline", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "libreadline.so=8-64", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "bash"
warning: cannot resolve "sh", a dependency of "gdbm"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "libreadline.so=8-64", a dependency of "gdbm"
warning: cannot resolve "gdbm", a dependency of "libsasl"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "gdbm"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "readline", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "readline"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "libncursesw.so=6-64", a dependency of "readline"
warning: cannot resolve "libreadline.so=8-64", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "bash"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc", a dependency of "ncurses"
warning: ignoring package glibc-2.35-6
warning: cannot resolve "glibc>=2.27", a dependency of "gcc-libs"
warning: cannot resolve "gcc-libs", a dependency of "ncurses"
warning: cannot resolve "ncurses", a dependency of "bash"
warning: cannot resolve "sh", a dependency of "gdbm"
^C
Interrupt signal received

==> ERROR: Failed to install packages to new root
[root@ad57c79b991d /]#

And here is the working one:

[root@ad57c79b991d /]# 
[root@ad57c79b991d /]# basestrap -d /mnt/ glibc base
==> Creating install root at /mnt/
  -> Installing packages to /mnt/
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: glibc is in IgnorePkg/IgnoreGroup. Install anyway? [Y/n] 
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: bashrc-manjaro will be installed before its bash dependency

Packages (127) acl-2.3.1-2  archlinux-keyring-20220713-2  argon2-20190702-4  attr-2.5.1-2  audit-3.0.8-1  bash-5.1.016-2  bashrc-manjaro-5.1.016-2  brotli-1.0.9-8
               bzip2-1.0.8-4  ca-certificates-20210603-1  ca-certificates-mozilla-3.81-1  ca-certificates-utils-20210603-1  coreutils-9.1-1  cryptsetup-2.4.3-2
               curl-7.84.0-2  db-5.3.28-5  dbus-1.14.0-1  device-mapper-2.03.16-1  e2fsprogs-1.46.5-4  expat-2.4.8-1  fakeroot-1.29-1  file-5.42-1
               filesystem-2022.06.08-3  findutils-4.9.0-1  gawk-5.1.1-1  gcc-libs-12.1.0-3  gdbm-1.23-1  gettext-0.21-2  glib2-2.72.3-1  gmp-6.2.1-2  gnupg-2.2.36-1
               gnutls-3.7.6-1  gpgme-1.17.1-1  grep-3.7-1  gzip-1.12-1  hwdata-0.361-1  iana-etc-20220603-1  icu-71.1-1  iproute2-5.18.0-1  iptables-1:1.8.8-1
               iputils-20211215-1  json-c-0.16-1  kbd-2.5.1-1  keyutils-1.6.3-1  kmod-30-1  krb5-1.19.3-3  less-1:590-1  libarchive-3.6.1-1  libassuan-2.5.5-1
               libbpf-0.8.1-1  libcap-2.65-1  libcap-ng-0.8.3-1  libelf-0.187-1  libevent-2.1.12-1  libffi-3.4.2-5  libgcrypt-1.10.1-1  libgpg-error-1.45-2
               libidn2-2.3.3-1  libksba-1.6.0-1  libldap-2.6.3-1  libmnl-1.0.5-1  libnetfilter_conntrack-1.0.9-1  libnfnetlink-1.0.2-1  libnftnl-1.2.2-1
               libnghttp2-1.48.0-1  libnl-3.7.0-1  libnsl-2.0.0-2  libp11-kit-0.24.1-1  libpcap-1.10.1-2  libpsl-0.21.1-1  libsasl-2.1.28-1  libseccomp-2.5.4-1
               libsecret-0.20.5-2  libssh2-1.10.0-1  libsysprof-capture-3.44.0-1  libtasn1-4.18.0-1  libtirpc-1.3.2-1  libunistring-1.0-1  libverto-0.3.2-4
               libxcrypt-4.4.28-2  libxml2-2.9.14-1  licenses-20220125-1  linux-api-headers-5.17.5-2  lz4-1:1.9.3-2  manjaro-keyring-20220514-2  mpfr-4.1.0.p13-2
               ncurses-6.3-3  nettle-3.8-1  npth-1.6-3  openssl-1.1.1.q-1  p11-kit-0.24.1-1  pacman-6.0.1-12  pacman-mirrors-4.23.2-2  pam-1.5.2-1  pambase-20211210-1
               pciutils-3.8.0-2  pcre-8.45-1  pcre2-10.40-1  perl-5.36.0-1  pinentry-1.2.0-1  popt-1.18-3  procps-ng-3.3.17-1  psmisc-23.5-1  python-3.10.5-1
               python-certifi-2022.06.15-1  python-chardet-4.0.0-5  python-idna-3.3-4  python-npyscreen-4.10.5-7  python-requests-2.27.1-1  python-urllib3-1.26.9-1
               readline-8.1.002-1  sed-4.8-1  shadow-4.11.1-1  sqlite-3.39.1-1  systemd-251.3-1  systemd-libs-251.3-1  systemd-sysvcompat-251.3-1  tar-1.34-1
               tpm2-tss-3.2.0-1  tzdata-2022a-1  util-linux-2.38-1  util-linux-libs-2.38-1  xz-5.2.5-3  zlib-1:1.2.12-2  zstd-1.5.2-7  base-3-2  glibc-2.35-6

Total Download Size:    67.54 MiB
Total Installed Size:  602.11 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 systemd-251.3-1-x86_64                                                      4.0 MiB  5.74 MiB/s 00:00 [###################################--------------------------]  59%
^Cotal (  0/122)                                                             4.0 MiB  5.74 MiB/s 00:11 [###----------------------------------------------------------]   5%
Interrupt signal received

==> ERROR: Failed to install packages to new root
[root@ad57c79b991d /]# 

Best regards
hasechris

What is the root password?

I created an image using yours as a base, but running on podman with systemd active, but on the login screen, it appears for logal, there is no user manjaro, if you have the manjaro password it doesn't work, root also didn't work, which root password?

make docker-image error

[captain@captain-pc manjaro-docker]$ make docker-image
env -i pacstrap -C /usr/share/manjaro-tools/pacman-default.conf -c -d -G -M /tmp/tmp.izcbBSqBfE sed gzip pacman systemd
==> ERROR: This script must be run with root privileges
make: *** [Makefile:7:rootfs] 错误 1
[captain@captain-pc manjaro-docker]$ sudo make docker-image
[sudo] captain 的密码:
env -i pacstrap -C /usr/share/manjaro-tools/pacman-default.conf -c -d -G -M /tmp/tmp.9UZmmeGcR8 sed gzip pacman systemd
==> Creating install root at /tmp/tmp.9UZmmeGcR8
==> Installing packages to /tmp/tmp.9UZmmeGcR8
error: config file /usr/share/manjaro-tools/pacman-default.conf could not be read: No such file or directory
==> ERROR: Failed to install packages to new root
make: *** [Makefile:7:rootfs] 错误 1

So many pre-installed packages for a Base image

Image size is a problem that keeps users stay away from it. Could we have another minimal Manjaro docker image that only installs the basics? Pulling the latest amd64 image requires 364MB bandwidth (1.08GB unpacked). We probably need a rootless image that an AUR-helper like Yay is pre-installed but that's for another issue.

One could compare the list of packages from different implementations using these commands:

# Window a
docker run --rm -it --entrypoint bash archlinux
pacman -Qe
# Window b
docker run --rm -it --entrypoint bash manjarolinux/base
pacman -Qe

I have got some ideas for a minimal image:

TL;DR 👍 pacman -Rsuc systemd git git-lfs cmake make automake binutils gettext m4 pkgconf sudo texinfo libtool gcc gawk bison groff patch which gzip grep libxml2 elfutils

  1. Remove Systemd, Docker itself already takes care of what Systemd does.
  2. Remove Git.
  3. Remove base-devel (Not entirely, Pacman is still vital) and Cmake

Doesn't seem to work

I get this on running the latest (of 2019-12-19) from Docker Hub:

% sudo docker run manjarolinux/build
[sudo] password for raxod502: 
Unable to find image 'manjarolinux/build:latest' locally
latest: Pulling from manjarolinux/build
798f18f2e1fa: Pull complete 
4c11829494bd: Pull complete 
aaae14de6f91: Pull complete 
6a2a0ef6d5cb: Pull complete 
332b0f3303cc: Pull complete 
bc889f79a4eb: Pull complete 
47944b7c6fef: Pull complete 
5079faf9ff00: Pull complete 
b7f5d2aa45bc: Pull complete 
Digest: sha256:6b206fb1d55fcce2f34a1d1c90317387982bc67428010facb27efc3caa46c36c
Status: Downloaded newer image for manjarolinux/build:latest
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
gpg: WARNING: unsafe permissions on homedir '/home/builder/.gnupg'
gpg: keybox '/home/builder/.gnupg/pubring.kbx' created
gpg: /home/builder/.gnupg/trustdb.gpg: trustdb created
Initialising local package repository...
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
==> Creating updated database file '/build/packages/packages.db.tar.xz'
==> WARNING: No packages remain, creating empty database.
==> WARNING: No packages remain, creating empty database.
::INFO Downloading mirrors from repo.manjaro.org
::INFO User generated mirror list
::------------------------------------------------------------
::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  1.101 Germany        : https://mirror.alpix.eu/manjaro/
  1.143 Germany        : https://mirror.23media.com/manjaro/
  0.709 Germany        : http://mirror.23media.com/manjaro/
  1.268 Germany        : http://mirror.ragenetwork.de/manjaro/
  1.258 Germany        : https://ftp.halifax.rwth-aachen.de/manjaro/
  ..... Germany        : ftp://ftp.halifax.rwth-aachen.de/manjaro/
  1.513 Germany        : http://ftp.tu-chemnitz.de/pub/linux/manjaro/
  ..... Germany        : ftp://ftp.tu-chemnitz.de/pub/linux/manjaro/
  1.234 Germany        : https://mirror.netzspielplatz.de/manjaro/packages/
  1.191 Germany        : https://mirror.netcologne.de/manjaro/
  1.665 Germany        : https://manjaro.moson.eu/
  1.374 Germany        : http://manjaro.moson.eu/
::INFO Writing mirror list
::Germany         : https://mirror.23media.com/manjaro/stable/$repo/$arch
::Germany         : https://mirror.alpix.eu/manjaro/stable/$repo/$arch
::Germany         : https://mirror.netcologne.de/manjaro/stable/$repo/$arch
::Germany         : https://mirror.netzspielplatz.de/manjaro/packages/stable/$repo/$arch
::Germany         : http://mirror.ragenetwork.de/manjaro/stable/$repo/$arch
::Germany         : https://manjaro.moson.eu/stable/$repo/$arch
::Germany         : https://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch
::Germany         : http://ftp.tu-chemnitz.de/pub/linux/manjaro/stable/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
::INFO To reset custom mirrorlist 'sudo pacman-mirrors -id'
::INFO To remove custom config run  'sudo pacman-mirrors -c all'
grep: PKGBUILD: No such file or directory
/makepackage.sh: line 39: PKGBUILD: No such file or directory

Is this image suitable for public use yet? Is there any official Manjaro image?

Where is the documentation?

Sorry, I may be an idiot, but the rest of the community deserve a good documentation. When I get it working I will start it.

"failed to initialize alpm library" when using manjarolinux/base in Dockerfile

Assuming this project is manjarolinux/base and assuming this could be a possible issue with this repository..
I’ve made this simple Dockerfile and I’d like to upload it to the docker hub.

Dockerfile

FROM manjarolinux/base:latest
LABEL version="0.1"
LABEL maintainer="Folaht"
LABEL release-date="2021-04-31"

# Update Manjaro Linux OS and Install dependencies
RUN yes | pacman -Syu btrfs-progs

# Install Manjaro Arm Installer
RUN yes | pacman -S manjaro-arm-installer

# Run command on Docker launch
CMD ["/usr/bin/manjaro-arm-installer"]

However, while the script runs fine on my computer,
I run into the following issue on docker hub…

Step 5/7 : RUN yes | pacman -Syu btrfs-progs
---> Running in 56d1c5886ea7
e[91merror: failed to initialize alpm library
(could not find or read directory: /var/lib/pacman/)
e[0m
Removing intermediate container 56d1c5886ea7
The command '/bin/sh -c yes | pacman -Syu btrfs-progs' returned a non-zero code: 255

Is this an issue with this project, my dockerfile, archlinux or docker hub?

I'm saying archlinux due to coming across during websearches for solutions:

https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/56
https://bbs.archlinux.org/viewtopic.php?id=263379

available on docker hub?

Is this base image available on docker hub?

If no; it would be very useful to have an official base image I could use for my docker images.
If yes; having a reference to and from this repo here would be good.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.