Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea: Docker container for building/CI #4

Open
ctrlcctrlv opened this issue Jul 5, 2023 · 2 comments
Open

idea: Docker container for building/CI #4

ctrlcctrlv opened this issue Jul 5, 2023 · 2 comments

Comments

@ctrlcctrlv
Copy link
Contributor

I'll get working on this.

@ctrlcctrlv
Copy link
Contributor Author

I will show it in Office Hours at 330pm EST (always at https://jitsi.mfek.org/OfficeHours) made a lot of progress already but not yet done.

# Use the base Arch Linux image
FROM archlinux
WORKDIR .
RUN mkdir /workdir
RUN ls /
COPY "./workdir/mirrorlist" /workdir
COPY "./workdir/*.zst" /workdir

RUN cp /workdir/mirrorlist /etc/pacman.d/mirrorlist

# Update the system and install necessary packages
RUN pacman -Syu --noconfirm && \
    pacman -S --noconfirm base-devel git parallel python

# Create a non-root user
RUN useradd -m dockeruser &&\
    echo 'dockeruser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/dockeruser

# Switch to the non-root user
USER dockeruser

# Install yay (AUR helper)
RUN sudo pacman -U /workdir/*.zst --noconfirm

# Install AUR packages: xidel-bin and gftools
RUN yay -Syu --noconfirm xidel-bin gftools

# Set the entry point or default command
CMD ["/bin/bash"]

@ctrlcctrlv
Copy link
Contributor Author

i have this working quite well now but the Dockerfile may not be the best as i'd never written one before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant