Skip to contentSkip to conversation

automation: Add a Arch Linux dockerfile

PATCH In review Anthony PERARD 2 participants 4 messages Apr 3, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 automation: Add a Arch Linux dockerfile

---
 automation/build/archlinux/current.dockerfile | 52 +++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 automation/build/archlinux/current.dockerfile
automation/build/archlinux/current.dockerfile new file +52 -0
new file mode 100644
index 0000000000..9af5d66afc
@@ -0,0 +1,52 @@
+FROM archlinux/base
+LABEL maintainer.name="The Xen Project" \
+      maintainer.email="[email protected]"
+
+# Enable multilib repo, for dev86 package
+RUN echo $'[multilib]\nInclude = /etc/pacman.d/mirrorlist' >> /etc/pacman.conf
+
+RUN pacman -S --refresh --sysupgrade --noconfirm --noprogressbar --needed \
+        base-devel \
+        bin86 \
+        bridge-utils \
+        bzip2 \
+        dev86 \
+        dtc \
+        e2fsprogs \
+        ghostscript \
+        git \
+        gnutls \
+        iasl \
+        inetutils \
+        iproute \
+        libaio \
+        libcacard \
+        libgl \
+        libjpeg-turbo \
+        libnl \
+        libpng \
+        libseccomp \
+        markdown \
+        net-tools \
+        nss \
+        perl \
+        pixman \
+        pkgconfig \
+        python \
+        sdl \
+        sdl2 \
+        spice \
+        spice-protocol \
+        systemd \
+        transfig \
+        usbredir \
+        wget \
+        xz \
+        yajl \
+        zlib
+
+ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
+
+RUN useradd --create-home user
+USER user
+WORKDIR /build
Signature · 7 lines
Anthony PERARD


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#2 lore raw
Quoted 4 lines · Wei Liu
Quoted 1 line · Anthony PERARD

Have you pushed the container to xen project's registry? If so, can you

I haven't, no.

Quoted 1 line

confirm it runs ok?

It works for me :-). You'll have to make you own tests, I don't know how the image is supposed to be used.

I've only runned the following in a xen worktree:
docker run -v pwd:/build:rw -ti --rm -- registry.gitlab.com/xen-project/xen/archlinux:current bash -c './configure && make'

Signature · 6 lines
Anthony PERARD

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#3 lore raw
Quoted 4 lines · Anthony PERARD
Quoted 3 lines · Wei Liu
Quoted 1 line · Anthony PERARD
Quoted 9 lines
Quoted 1 line

Have you pushed the container to xen project's registry? If so, can you

I haven't, no.

Quoted 1 line

confirm it runs ok?

It works for me :-). You'll have to make you own tests, I don't know how the image is supposed to be used.

Oh, you can c&p an entry from automation/gitlab-ci/build.yaml

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel