Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow committed Mar 30, 2024
1 parent 6304407 commit e165be2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/beta-sk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ jobs:
remove-dotnet: 'true'
remove-android: 'true'
- uses: actions/checkout@v4
# - name: Build Image
# uses: docker://archlinux:latest
# with:
# options: --privileged=true
# args: |
# ./build.sh beta-sk
- name: Build Image
uses: docker://archlinux:latest
with:
options: --privileged=true
args: |
./build.sh beta-sk
run: |
mkdir -p output
mkdir -p workdir
docker pull archlinux:latest
docker run -u root --privileged=true -v $(pwd):/holoiso -v $(pwd)/workdir:/holoiso/workdir -v $(pwd)/output:/holoiso/output -e GITHUB_REF_NAME=$GITHUB_REF_NAME -w /holoiso archlinux:latest ./build.sh beta-sk
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM archlinux:base-devel

RUN echo -e "keyserver-options auto-key-retrieve" >> /etc/pacman.d/gnupg/gpg.conf && \
# Cannot check space in chroot
sed -i '/CheckSpace/s/^/#/g' /etc/pacman.conf && \
pacman-key --init && \
pacman --noconfirm -Syyuu && \
pacman --noconfirm -S \
arch-install-scripts \
btrfs-progs \
base-devel \
fmt \
xcb-util-wm \
wget \
sudo \
&& \
pacman --noconfirm -S --needed git && \
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
useradd build -G wheel -m
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ pacman-key --init
pacman --noconfirm -Syu btrfs-progs archiso git reflector
git clone https://github.com/3003n/buildroot buildroot -b sk
git clone https://github.com/3003n/postcopy -b ${POSTCOPY_CLONE} buildroot/postcopy_$1
mkdir -p $(pwd)/output $(pwd)/workdir
bash buildroot/build.sh --flavor $1 --deployment_rel $1 --snapshot_ver "${GITHUB_REF_NAME}" --workdir $(pwd)/workdir --output-dir $(pwd)/output/holoiso-images --add-release
# mkdir -p $(pwd)/output $(pwd)/workdir
bash buildroot/build.sh --flavor $1 --deployment_rel $1 --snapshot_ver "${GITHUB_REF_NAME}" --workdir /workdir --output-dir /output/holoiso-images --add-release

0 comments on commit e165be2

Please sign in to comment.