diff options
author | Jesús <heckyel@hyperbola.info> | 2021-03-08 22:40:03 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-03-08 22:40:03 -0500 |
commit | df917a69fc5e85dee90ed563b720a8329f2649a4 (patch) | |
tree | 52a8b18619ea040b9ce68eb0e4e65e2af190605d /Dockerfile-Hyperbola-v03 | |
parent | 90a22862873fd6714ea707f209450b62daecd95f (diff) | |
download | hyperbola-docker-df917a69fc5e85dee90ed563b720a8329f2649a4.tar.lz hyperbola-docker-df917a69fc5e85dee90ed563b720a8329f2649a4.tar.xz hyperbola-docker-df917a69fc5e85dee90ed563b720a8329f2649a4.zip |
Add support Hyperbola Milky Way v0.3
Diffstat (limited to 'Dockerfile-Hyperbola-v03')
-rw-r--r-- | Dockerfile-Hyperbola-v03 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile-Hyperbola-v03 b/Dockerfile-Hyperbola-v03 new file mode 100644 index 0000000..b2e5d3b --- /dev/null +++ b/Dockerfile-Hyperbola-v03 @@ -0,0 +1,27 @@ +FROM scratch +MAINTAINER Jesus E. + +# Set the $architecture ARG on your `docker build' command line with `--build-arg architecture=x86_64' or `i686'. +ARG architecture + +ADD bootstrap.tar.gz / + +RUN \ +# First +pacman-key --init \ +&& pacman-key --populate archlinux hyperbola \ +# Another bit of a hack, until Hyperbola bootstrap tarballs start including `sed' package, which is required by +# `rankmirrors', which comes with `pacman' package, while that one doesn't depend on `sed'. (Note to self: ask the +# Hyperbola devs about this; `locale-gen' uses `sed' too). Again, lucky it has very little deps. +&& sed -i "s/^Architecture = auto$/Architecture = $architecture/" /etc/pacman.conf \ +# `locale-gen' needs `gzip' (via `localedef', which works on /usr/share/i18n/charmaps/*.gz), `paccache' needs `awk'. +# Update the system BTW. +&& pacman -Su --noconfirm --noprogressbar --quiet gzip awk \ +# Remove the last leftovers of the initial dirty `haveged' install. +&& paccache -r -k0 \ +&& echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen \ +&& locale-gen \ +&& echo 'LANG=en_US.UTF-8' > /etc/locale.conf \ +&& pacman -Scc --noconfirm + +ENV LANG en_US.UTF-8 |