mirror of
https://github.com/luzifer-docker/gh-arch-env.git
synced 2024-12-20 06:11:18 +00:00
Initial version
This commit is contained in:
commit
df91763e75
3 changed files with 65 additions and 0 deletions
4
Dockerfile
Normal file
4
Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM luzifer/archlinux
|
||||
|
||||
COPY build.sh /usr/local/bin/init-image
|
||||
RUN bash /usr/local/bin/init-image
|
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# luzifer-docker / gh-arch-env
|
||||
|
||||
Archlinux-based image containing set of packages used in Github Actions runs
|
58
build.sh
Normal file
58
build.sh
Normal file
|
@ -0,0 +1,58 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
function step() {
|
||||
echo "[$(date +%H:%M:%S)] $@..." >&2
|
||||
}
|
||||
|
||||
packages=(
|
||||
awk
|
||||
curl
|
||||
diffutils
|
||||
git
|
||||
git-lfs
|
||||
go
|
||||
golangci-lint-bin
|
||||
make
|
||||
nodejs-lts-hydrogen
|
||||
npm
|
||||
tar
|
||||
trivy
|
||||
unzip
|
||||
which
|
||||
zip
|
||||
)
|
||||
|
||||
step "Installing signing key for luzifer repo"
|
||||
pacman-key --init
|
||||
|
||||
curl -sSfL https://archrepo.hub.luzifer.io/x86_64/luzifer.asc |
|
||||
pacman-key --add -
|
||||
|
||||
pacman-key --lsign-key 6F73A4F39CDF652E3F944142085AA223D0391BF9
|
||||
|
||||
step "Configuring pacman"
|
||||
cat <<'EOF' >/etc/pacman.conf
|
||||
[options]
|
||||
HoldPkg = pacman glibc
|
||||
Architecture = auto
|
||||
ParallelDownloads = 10
|
||||
Color
|
||||
CheckSpace
|
||||
|
||||
SigLevel = Required DatabaseOptional
|
||||
LocalFileSigLevel = Optional
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[luzifer]
|
||||
SigLevel = Required
|
||||
Server = https://archrepo.hub.luzifer.io/$arch
|
||||
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
EOF
|
||||
|
||||
step "Installling desired packages"
|
||||
pacman -Syy --noconfirm "${packages[@]}"
|
Loading…
Reference in a new issue