automation: Add a Arch Linux dockerfile
diff mbox series

Message ID 20190403160517.28659-1-anthony.perard@citrix.com
State New, archived
Headers show
Series
  • automation: Add a Arch Linux dockerfile
Related show

Commit Message

Anthony PERARD April 3, 2019, 4:05 p.m. UTC
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 automation/build/archlinux/current.dockerfile | 52 +++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 automation/build/archlinux/current.dockerfile

Comments

Wei Liu April 3, 2019, 4:19 p.m. UTC | #1
On Wed, Apr 03, 2019 at 05:05:17PM +0100, Anthony PERARD wrote:
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

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

Wei.
Anthony PERARD April 3, 2019, 4:26 p.m. UTC | #2
On Wed, Apr 03, 2019 at 05:19:10PM +0100, Wei Liu wrote:
> On Wed, Apr 03, 2019 at 05:05:17PM +0100, Anthony PERARD wrote:
> > Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> 
> Have you pushed the container to xen project's registry? If so, can you

I haven't, no.

> 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'
Wei Liu April 3, 2019, 4:28 p.m. UTC | #3
On Wed, Apr 03, 2019 at 05:26:45PM +0100, Anthony PERARD wrote:
> On Wed, Apr 03, 2019 at 05:19:10PM +0100, Wei Liu wrote:
> > On Wed, Apr 03, 2019 at 05:05:17PM +0100, Anthony PERARD wrote:
> > > Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> > 
> > Have you pushed the container to xen project's registry? If so, can you
> 
> I haven't, no.
> 
> > 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.

Patch
diff mbox series

diff --git a/automation/build/archlinux/current.dockerfile b/automation/build/archlinux/current.dockerfile
new file mode 100644
index 0000000000..9af5d66afc
--- /dev/null
+++ b/automation/build/archlinux/current.dockerfile
@@ -0,0 +1,52 @@ 
+FROM archlinux/base
+LABEL maintainer.name="The Xen Project" \
+      maintainer.email="xen-devel@lists.xenproject.org"
+
+# 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