Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  Dockerfile

  Sprache: C
 

FROM          $DOCKER_IMAGE_PARENT
MAINTAINER    Gabriele Svelto <gsvelto@mozilla.com>

RUN mkdir -p /builds
RUN id worker || useradd -d /builds/worker -s /bin/bash -m worker
WORKDIR /builds/worker

We need to declare all potentially cache volumes as caches. Also,
making high I/O paths volumes increase I/O throughput because of
AUFS slowness.
VOLUME /builds/worker/checkouts

ARG EXTRA_PACKAGES

RUN apt-get update && \
    apt-get install -y \
        build-essential \
        curl \
        $EXTRA_PACKAGES \
        gnupg \
        jq \
        patch \
        patchelf \
        python3-dev \
        python3-yaml \
        squashfs-tools \
        tar \
        unzip \
        uuid \
        wget \
        zip

ARG SNAP_BASE

COPY install-snap.sh /usr/local/bin/

RUN install-snap.sh core

8.11.1 is https://api.snapcraft.io/api/v1/snaps/download/vMTKRaLjnOJQetI78HjntT37VuoyssFE_15600.snap
RUN install-snap.sh snapcraft

RUN install-snap.sh $SNAP_BASE

ARG SNAP_LIST

RUN for snap in $SNAP_LIST; do install-snap.sh "${snap}"; done

Create a snapcraft runner
RUN mkdir -p /snap/bin
RUN echo "#!/bin/sh" > /snap/bin/snapcraft
RUN snap_version="$(awk '/^version:/{print $2}' /snap/snapcraft/current/meta/snap.yaml)" && echo "export SNAP_VERSION=\"$snap_version\"\nexport PATH=\$SNAP/bin/:\$SNAP/libexec/snapcraft/:\$PATH" >> /snap/bin/snapcraft
RUN echo 'exec "$SNAP/bin/snapcraft" "$@"' >> /snap/bin/snapcraft
RUN chmod +x /snap/bin/snapcraft

Generate locale
RUN apt update && apt dist-upgrade --yes && apt install --yes sudo snapd locales && locale-gen en_US.UTF-8 && apt-get autoremove -y

Set the proper environment
ENV LANG="en_US.UTF-8"
ENV LANGUAGE="en_US:en"
ENV LC_ALL="en_US.UTF-8"
ENV PATH="/snap/bin:$PATH"
ENV SNAP="/snap/snapcraft/current"
ENV SNAP_NAME="snapcraft"
ENV SNAP_ARCH="amd64"
ENV SNAP_INSTANCE_KEY=
ENV SNAP_INSTANCE_NAME=snapcraft
ENV SNAPCRAFT_PLATFORM=

Bug 1985494
java.lang.NullPointerException
The change at https://github.com/canonical/craft-application/commit/f3436a9eab1eeed3ad6d44d9d430b5f4b008f7d8
moved configuration query and breaks us in docker
This is a temporary workaround and proper fix should be done:
#  - either there's a way to feed the configuration to avoid hitting snapctl
#  or we need to introduce a way to bypass that properly with upstream
RUN sed -ri 's/debug_mode = .*/debug_mode = False/g' /snap/snapcraft/current/lib/python*/site-packages/craft_application/application.py
RUN snapcraft --version

Snapcraft pull will need to sudo apt-get update ...
RUN echo "worker ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/worker && \
    chmod 0440 /etc/sudoers.d/worker

COPY system-setup.sh /builds/worker/system-setup.sh

RUN /builds/worker/system-setup.sh "${SNAP_BASE}"

COPY run.sh /builds/worker/run.sh

COPY parse.py /builds/worker/parse.py

COPY patches /builds/worker/patches/

RUN chown -R worker:worker /builds/worker

Set a default command useful for debugging
CMD ["/bin/bash""--login"]

Messung V0.5 in Prozent
C=93 H=72 G=82

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002