"Fossies" - the Fresh Open Source Software Archive

Member "otp_src_22.0/scripts/Dockerfile.pack-otp" (13 May 2019, 1980 Bytes) of package /linux/misc/otp_src_22.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ARG BASE=ubuntu:16.04
    2 FROM $BASE
    3 
    4 RUN apt-get update && apt-get --fix-missing -y install build-essential m4 \
    5         libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev xsltproc \
    6         default-jdk autoconf libxml2-utils tzdata ssh openssh-server groff-base \
    7         sudo gdb apache2 bind9
    8 
    9 ARG FAST_BUILD=false
   10 
   11 ## Removing these install considerably decreases build time
   12 RUN ${FAST_BUILD} || (apt-get --fix-missing -y install fop libwxbase3.0-dev libwxgtk3.0-dev)
   13 
   14 ARG gid=10
   15 
   16 RUN echo "Europe/Stockholm" >/etc/timezone && \
   17         ln -snf /usr/share/zoneinfo/$(cat /etc/timezone) /etc/localtime && \
   18         useradd -rm -d /home/otptest -s /bin/sh -g ${gid} -G ${gid},sudo -u 421 otptest && \
   19         echo "otptest ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/otptest && \
   20         useradd -rm -d /home/otp -s /bin/sh -g ${gid} -G ${gid},sudo -u 419 otp && \
   21         mkdir -p /daily_build/build_info && chmod -R 777 /daily_build/ && \
   22         echo "/ldisk/daily_build/** r," >> /etc/apparmor.d/local/usr.sbin.named
   23 
   24 
   25 WORKDIR /daily_build
   26 
   27 ARG BUILD_ID
   28 ARG BRANCH
   29 ARG TIMESTAMP
   30 ARG SHA
   31 
   32 USER otptest
   33 
   34 ARG MAKEFLAGS=-j6
   35 
   36 ENV install_dir=/daily_build/otp \
   37         ERL_TOP=/daily_build/otp_src \
   38         OTP_STRICT_INSTALL=yes \
   39         JAVA_ARGS="-Dlog4j.configuration=file:///home/otptest/config/log4j.properties" \
   40         MAKEFLAGS=$MAKEFLAGS
   41 
   42 COPY log4j.properties /home/otptest/config/log4j.properties
   43 
   44 COPY otp_src.tar.gz /daily_build
   45 RUN tar xzf otp_src.tar.gz
   46 
   47 RUN test "$BUILD_ID" != "" || { echo "Missing BUILD_ID" 1>&2; exit 1; }
   48 RUN echo "$BUILD_ID" > /daily_build/build_info/build_id
   49 RUN test "$BRANCH" != "" || { echo "Missing BRANCH" 1>&2; exit 1; }
   50 RUN echo "$BRANCH" > /daily_build/build_info/branch
   51 RUN test "$TIMESTAMP" != "" || { echo "Missing TIMESTAMP" 1>&2; exit 1; }
   52 RUN echo "$TIMESTAMP" > /daily_build/build_info/timestamp
   53 RUN test "$SHA" != "" || { echo "Missing SHA" 1>&2; exit 1; }
   54 RUN echo "$SHA" > /daily_build/build_info/sha
   55 
   56 WORKDIR otp_src