Created
April 22, 2022 10:56
-
-
Save gwpl/cb10cf050ffaad08c9f3ba33d5ce745a to your computer and use it in GitHub Desktop.
Archlinux RDF SPARQL Jena Fuseki ( fast start http://linkeddatatools.com/semantic-web-basics )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM archlinux:latest | |
RUN echo 2022-02-02 # update this line to enforce refresh instead of --no-cache | |
RUN pacman -Syyu --noconfirm && \ | |
pacman -S --noconfirm \ | |
git base-devel \ | |
vim screen tmux \ | |
wget aria2 mc htop vim \ | |
mc cmatrix htop vim \ | |
git base-devel shellcheck | |
# bubblewrap-suid xz \ | |
# go go-tools \ | |
# cargo rustup # && \ #because we setup default rust toolchain on packager user | |
#rustup default stable && rustup install stable && rustc -V | |
#RUN set -x ; mkdir /home/nobody && chown -v nobody:nobody /home/nobody && cd /home/nobody/ && sudo -u nobody git clone https://aur.archlinux.org/pacaur.git && cd pacaur/ && sudo -u nobody makepkg -si | |
# Let's try to install yay | |
RUN pacman -S --noconfirm go | |
RUN echo "Let's try to install yay" && \ | |
sudo pacman -S --noconfirm git | |
RUN useradd -m -G wheel -U yay | |
RUN echo '%yay ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | |
USER yay | |
RUN cd && pwd && git clone https://aur.archlinux.org/yay.git && \ | |
cd yay && \ | |
makepkg -s --noconfirm && sudo pacman -U --noconfirm *.pkg.tar.zst | |
#USER root | |
#RUN ls /home/yay/yay && pacman -U --noconfirm /home/yay/yay/*.pkg.tar.zst | |
#USER yay | |
RUN sudo pacman -S --noconfirm jre-openjdk | |
#RUN yay -S --answerdiff N apache-jena-fuseki apache-jena | |
RUN yay -S --answerdiff N apache-jena-fuseki apache-jena | |
# another way as in : https://www.reddit.com/r/archlinux/comments/6qu4jt/how_to_run_makepkg_in_docker_container_yes_as_root/dl1t5m9?utm_source=share&utm_medium=web2x&context=3 | |
# | |
# pacman -S --needed --noconfirm sudo # Install sudo | |
# useradd builduser -m # Create the builduser | |
# passwd -d builduser # Delete the buildusers password | |
# printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers # Allow the builduser passwordless sudo | |
# sudo -u builduser bash -c 'cd ~ && git clone https://some-pkgbuild.git some-pkgbuild && cd some-pkgbuild && makepkg -s --noconfirm' # Clone and build a package | |
#!! # # set up the packager user | |
#!! RUN useradd --create-home packager --uid 1111 -U | |
#!! # COPY bashrc.sh /home/packager/.bashrc | |
#!! # COPY packager-actions /etc/sudoers.d/ | |
#!! # | |
#!! # RUN pacman -S --noconfirm meson gtest gmock expac jq | |
#!! # #RUN pacman -S --noconfirm | |
#!! | |
#!! # this is attempt to make it work in docker: | |
#!! # (but maybe not needed if dependencies installed like README.md advices: --needed git base-devel bubblewrap-suid xz shellcheck cargo) | |
#!! RUN chmod u+s /usr/bin/bwrap # https://github.com/containers/bubblewrap/issues/324#issuecomment-517378834 | |
#!! # but turned out to issue about running rua in docker: https://github.com/vn971/rua/issues/8 | |
#!! | |
#!! USER packager | |
#!! WORKDIR /home/packager/ | |
#!! # RUN git clone https://aur.archlinux.org/pod2man.git | |
#!! # WORKDIR /home/packager/pod2man/ | |
#!! # RUN makepkg --noconfirm | |
#!! # USER root | |
#!! # WORKDIR /home/packager/ | |
#!! # RUN pacman --noconfirm -U */*.pkg.tar.zst | |
#!! RUN rustup default stable | |
#!! RUN cargo install rua | |
#!! RUN /home/packager/.cargo/bin/rua install dust | |
# USER packager | |
# WORKDIR /home/packager/ | |
# RUN git clone https://aur.archlinux.org/auracle-git.git | |
# WORKDIR /home/packager/auracle-git/ | |
# RUN makepkg --noconfirm | |
# USER root | |
# WORKDIR /home/packager/ | |
# RUN pacman --noconfirm -U */*.pkg.tar.zst | |
# | |
# | |
# USER packager | |
# WORKDIR /home/packager/ | |
# #RUN git clone https://aur.archlinux.org/pacaur.git | |
# RUN git clone https://aur.archlinux.org/pacaur-git.git | |
# WORKDIR /home/packager/pacaur/ | |
# RUN makepkg --noconfirm | |
# USER root | |
# WORKDIR /home/packager/ | |
# RUN pacman --noconfirm -U */*.pkg.tar.zst | |
# | |
# | |
# USER root | |
# WORKDIR /home/packager/ | |
# RUN pacman --noconfirm -U */*.pkg.tar.zst | |
# | |
# USER packager | |
# WORKDIR /home/packager/ | |
# RUN pacaur -S --noconfirm --noedit gotty | |
#EXPOSE 8080 | |
#EXPOSE 8123 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment