Compare commits

...

21 Commits

Author SHA1 Message Date
Oskar 006e1ea4cf
Update pacman.conf 2022-03-01 22:42:44 +01:00
Medzik 6737a784ee
add mirrors 2022-02-26 18:55:50 +01:00
Medzik 9990b2c9d3
fix 2022-02-20 22:55:31 +01:00
Medzik 50cec2a85e
update base-devel 2022-02-16 16:42:16 +01:00
Medzik c7b56f4fda
fix build base-devel 2022-02-16 15:03:12 +01:00
Medzik 1f189b919c
add image base-devel 2022-02-16 15:00:18 +01:00
Medzik 3eec37d146
ci: push to multi registries 2022-02-16 14:52:47 +01:00
Medzik 8a6febf82b
update 2022-02-16 14:44:05 +01:00
Medzik 3b88c0616c
update 2022-02-16 14:16:50 +01:00
Oskar 8dd41afb1f
Update pacman.conf 2022-02-16 13:36:38 +01:00
Oskar 3cdc272310
Update Dockerfile 2022-02-12 18:05:54 +01:00
Oskar 0af35184dd
Update Dockerfile 2022-02-08 22:00:34 +01:00
Oskar dee3f281bb
Update mirrorlist 2022-02-08 21:35:13 +01:00
Oskar 18eb161302
Update Dockerfile 2022-02-08 20:35:06 +01:00
Oskar b47aa1ff48
Update Dockerfile 2022-02-08 20:21:51 +01:00
Oskar 0ecd901345
Update Dockerfile 2022-02-08 20:19:03 +01:00
Oskar e1555197ce
Update Dockerfile 2022-02-08 14:53:20 +01:00
Oskar 388db0fc8b
Update Dockerfile 2022-02-08 14:52:14 +01:00
Oskar b5cf96f4bc
Update Dockerfile 2022-02-08 14:49:34 +01:00
Oskar 5355d7e2f9
Update Dockerfile 2022-02-08 14:48:52 +01:00
Oskar d04f4b2aec
Update Dockerfile 2022-02-08 14:42:49 +01:00
11 changed files with 115 additions and 31 deletions

View File

@ -25,9 +25,30 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image (base)
uses: docker/build-push-action@v2
with:
context: .
context: ./base
push: ${{ github.event_name != 'pull_request' }}
tags: medzik/archlinux:latest
tags: |
medzik/archlinux:latest
medzik/archlinux:base
ghcr.io/medzikuser/archlinux:latest
ghcr.io/medzikuser/archlinux:base
- name: Build and push Docker image (base-devel)
uses: docker/build-push-action@v2
with:
context: ./base-devel
push: ${{ github.event_name != 'pull_request' }}
tags: |
medzik/archlinux:base-devel
ghcr.io/medzikuser/archlinux:base-devel

View File

@ -1,19 +0,0 @@
FROM archlinux
COPY resolv.conf /etc/resolv.conf
RUN pacman-key --init \
&& pacman-key --recv-key 7A6646A6C14690C0 \
&& pacman-key --lsign-key 7A6646A6C14690C0 \
&& pacman -U --noconfirm 'https://github.com/archlinux-pkg/packages/releases/download/packages/medzikuser-mirrorlist-2022.1.30-2-any.pkg.tar.xz' \
&& yes | pacman -Scc
COPY pacman.conf /etc/pacman.conf
COPY mirrorlist /etc/pacman.d/mirrorlist
RUN pacman -Syu --noconfirm \
&& yes | pacman -Scc
RUN useradd --create-home build
COPY sudoers /etc/sudoers

9
base-devel/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM medzik/archlinux:base
RUN pacman -Sy --noconfirm \
git \
base-devel \
multilib-devel && \
yes | pacman -Scc
CMD ["/usr/bin/bash"]

22
base/Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM archlinux AS bootstrap
COPY setup.sh /tmp/setup.sh
COPY resolv.conf /etc/resolv.conf
COPY mirrorlist /etc/pacman.d/mirrorlist
RUN bash /tmp/setup.sh && \
rm -rf /tmp/*
COPY pacman.conf /etc/pacman.conf
COPY sudoers /etc/sudoers
# Create final image
FROM scratch
COPY --from=bootstrap / /
RUN ldconfig
ENV LANG=en_US.UTF-8
CMD ["/usr/bin/bash"]

View File

@ -147,7 +147,7 @@ COMPRESSLZ=(lzip -c -f)
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.xz'
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'
#########################################################################

34
base/mirrorlist Normal file
View File

@ -0,0 +1,34 @@
Server = https://mirror-all.magicuser.cf/archlinux/$repo/os/$arch
Server = https://mirror-arch.magicuser.cf/$repo/os/$arch
Server = https://mirror-arch1.magicuser.cf/archlinux/$repo/os/$arch
Server = https://mirror.pkgbuild.com/$repo/os/$arch
Server = https://europe.mirror.pkgbuild.com/$repo/os/$arch
Server = https://asia.mirror.pkgbuild.com/$repo/os/$arch
Server = https://america.mirror.pkgbuild.com/$repo/os/$arch
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = https://archive.archlinux.org/repos/last/$repo/os/$arch
Server = http://mirrors.acm.wpi.edu/archlinux/$repo/os/$arch
Server = http://mirrors.advancedhosters.com/archlinux/$repo/os/$arch
Server = http://mirrors.aggregate.org/archlinux/$repo/os/$arch
Server = http://ca.us.mirror.archlinux-br.org/$repo/os/$arch
Server = http://il.us.mirror.archlinux-br.org/$repo/os/$arch
Server = http://mirror.arizona.edu/archlinux/$repo/os/$arch
Server = https://mirror.arizona.edu/archlinux/$repo/os/$arch
Server = http://arlm.tyzoid.com/$repo/os/$arch
Server = https://arlm.tyzoid.com/$repo/os/$arch
Server = https://mirror.ava.dev/archlinux/$repo/os/$arch
Server = http://mirrors.cat.pdx.edu/archlinux/$repo/os/$arch
Server = http://mirror.cc.columbia.edu/pub/linux/archlinux/$repo/os/$arch
Server = http://mirror.clarkson.edu/archlinux/$repo/os/$arch
Server = https://mirror.clarkson.edu/archlinux/$repo/os/$arch
Server = http://arch.mirror.constant.com/$repo/os/$arch
Server = https://arch.mirror.constant.com/$repo/os/$arch
Server = http://mirror.cs.pitt.edu/archlinux/$repo/os/$arch
Server = http://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/$arch
Server = http://mirror.cybersecurity.nmt.edu/archlinux/$repo/os/$arch
Server = https://mirror.cybersecurity.nmt.edu/archlinux/$repo/os/$arch

View File

@ -30,10 +30,10 @@ Architecture = auto
# Misc options
#UseSyslog
#Color
Color
#NoProgressBar
#CheckSpace
#VerbosePkgLists
VerbosePkgLists
ParallelDownloads = 5
# By default, pacman accepts packages signed by keys that its local keyring
@ -100,4 +100,5 @@ Include = /etc/pacman.d/mirrorlist
#Server = file:///home/custompkgs
[medzikuser]
Include = /etc/pacman.d/medzikuser-mirrorlist
SigLevel = DatabaseOptional
Include = /etc/pacman.d/mirrorlist-medzikuser

21
base/setup.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -e -u
# Add Medzik AUR repo
pacman-key --init
pacman-key --recv-key 7A6646A6C14690C0
pacman-key --lsign-key 7A6646A6C14690C0
pacman -U --noconfirm 'https://arch-repo.magicuser.cf/medzikuser-mirrorlist.pkg.tar.xz'
# Install packages
PACKAGES=('base')
PACKAGES+=('wget')
PACKAGES+=('curl')
pacman -Syu --noconfirm ${PACKAGES}
# Clean pacman cache
yes | pacman -Scc
# Create `build` user
useradd --create-home build

View File

@ -1,5 +0,0 @@
Server = https://mirror-all.magicuser.cf/archlinux/$repo/os/$arch
Server = https://mirror-arch.magicuser.cf/$repo/os/$arch
Server = https://mirror-arch1.magicuser.cf/archlinux/$repo/os/$arch
Server = http://130.225.254.116/archlinux/$repo/os/$arch