File: Dockerfile.debian

package info (click to toggle)
xrootd 5.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,956 kB
  • sloc: cpp: 244,425; sh: 2,691; python: 1,980; ansic: 1,027; perl: 814; makefile: 272
file content (31 lines) | stat: -rw-r--r-- 858 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ARG version=12
FROM debian:$version

RUN apt update
RUN apt install -y build-essential devscripts equivs sudo

# Create xrootd user to avoid running tests as root
RUN groupadd xrootd && useradd -g xrootd -m xrootd

USER xrootd
WORKDIR /home/xrootd

# XRootD source tarball must be created in the
# current directory in order to build this image
COPY xrootd.tar.gz .

# Extract tarball
RUN tar xzf xrootd.tar.gz

USER root
WORKDIR /home/xrootd/xrootd

# Install build dependencies with dnf
RUN echo yes | mk-build-deps --install --remove debian/control

# Build DEB packages for XRootD
RUN export VERSION=$(sed -e 's/v//; s/-rc/~rc/; s/-g/+git/; s/-/.post/; s/-/./' < VERSION)  \
 && sudo -u xrootd dch --create --package xrootd -v ${VERSION} -M 'XRootD automated build.' \
 && sudo -u xrootd debuild --no-tgz-check --no-sign -b

RUN apt install -y ../*.d*eb