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
# 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
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.