Opensearch-dashboards : Docker build failure on Mac M1

Hello,

I’m currently trying to build opensearch-dashboards on a Mac with M1 chip but without any success.

The build command :

yarn build --docker

fails during the yum install in docker build because of ‘missing’ libnss3.so package.

...
│ #6 51.76 Last metadata expiration check: 0:00:31 ago on Wed Sep 22 09:14:05 2021.
│ #6 51.90 Package shadow-utils-2:4.6-12.el8.aarch64 is already installed.
│ #6 51.90 No match for argument: libnss3.so
│ #6 51.91 Error: Unable to find a match: libnss3.so
...

Here is the information from the CentOS 8 image pulled during the dockerbuild :

[root@2ac4ec7235d6 /]# uname -a
Linux 2ac4ec7235d6 5.10.47-linuxkit #1 SMP PREEMPT Sat Jul 3 21:50:16 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
[root@2ac4ec7235d6 /]# arch
aarch64
[root@2ac4ec7235d6 /]#
[root@2ac4ec7235d6 /]# yum -v repolist
Failed to set locale, defaulting to C.UTF-8
YUM version: 4.4.2
cachedir: /var/cache/dnf
CentOS Linux 8 - AppStream 490 kB/s | 7.3 MB 00:15
CentOS Linux 8 - BaseOS 437 kB/s | 5.9 MB 00:13
CentOS Linux 8 - Extras 16 kB/s | 10 kB 00:00
Repo-id : appstream
Repo-name : CentOS Linux 8 - AppStream
Repo-revision : 8.4.2105
Repo-distro-tags : [cpe:/o:centos:centos:8]: , 8, C, O, S, e, n, t
Repo-updated : Wed Sep 15 19:31:25 2021
Repo-pkgs : 5256
Repo-available-pkgs: 4301
Repo-size : 7.3 G
Repo-mirrors : http://mirrorlist.centos.org/?release=8&arch=aarch64&repo=AppStream&infra=container
Repo-baseurl : http://mirror.crexio.com/centos/8.4.2105/AppStream/aarch64/os/ (9 more)
Repo-expire : 172800 second(s) (last: Wed Sep 22 13:44:35 2021)
Repo-filename : /etc/yum.repos.d/CentOS-Linux-AppStream.repo

Repo-id : baseos
Repo-name : CentOS Linux 8 - BaseOS
Repo-revision : 8.4.2105
Repo-distro-tags : [cpe:/o:centos:centos:8]: , 8, C, O, S, e, n, t
Repo-updated : Wed Sep 15 19:31:10 2021
Repo-pkgs : 1603
Repo-available-pkgs: 1601
Repo-size : 2.4 G
Repo-mirrors : http://mirrorlist.centos.org/?release=8&arch=aarch64&repo=BaseOS&infra=container
Repo-baseurl : http://distrib-coffee.ipsl.jussieu.fr/pub/linux/centos/8.4.2105/BaseOS/aarch64/os/ (9 more)
Repo-expire : 172800 second(s) (last: Wed Sep 22 13:44:57 2021)
Repo-filename : /etc/yum.repos.d/CentOS-Linux-BaseOS.repo

Repo-id : extras
Repo-name : CentOS Linux 8 - Extras
Repo-revision : 1629987250
Repo-updated : Thu Aug 26 14:13:22 2021
Repo-pkgs : 37
Repo-available-pkgs: 37
Repo-size : 416 k
Repo-mirrors : http://mirrorlist.centos.org/?release=8&arch=aarch64&repo=extras&infra=container
Repo-baseurl : http://mirrors.standaloneinstaller.com/centos/8.4.2105/extras/aarch64/os/ (9 more)
Repo-expire : 172800 second(s) (last: Wed Sep 22 13:44:59 2021)
Repo-filename : /etc/yum.repos.d/CentOS-Linux-Extras.repo
Total packages: 6896
[root@abf6750f2594 /]# yum whatprovides libnss3.so
Failed to set locale, defaulting to C.UTF-8
CentOS Linux 8 - AppStream 791 kB/s | 7.3 MB 00:09
CentOS Linux 8 - BaseOS 738 kB/s | 5.9 MB 00:08
CentOS Linux 8 - Extras 21 kB/s | 10 kB 00:00
Error: No Matches found

If I take a look at the repo, I’m able to find the nss packages : http://mirror.crexio.com/centos/8.4.2105/AppStream/aarch64/os/Packages/

Has anyone ever had this issue?

Note : I’m able to successfully build the docker image on Intel Mac with the x86_64 CentOS without any issue.

M1 is not yet supported. It’s flagged for 1.3

1 Like

Good news for the 1.3 ! Thanks Kyle !

1 Like