From 9288b4af61030d61f0e1120e9802491ade95b930 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Sun, 1 Dec 2019 08:24:41 +0100 Subject: [PATCH] Initial commit --- Dockerfile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c2ab0fc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,43 @@ +FROM debian:buster-slim + +LABEL maintainer="tkl@blackfinn.de" + +# Install yocto depencencies +RUN apt-get update && apt-get install -yq gawk wget git-core diffstat unzip \ + texinfo gcc-multilib build-essential chrpath socat cpio python python3 \ + python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git \ + python3-jinja2 libegl1-mesa libsdl1.2-dev xterm dosfstools + +RUN update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 && \ + update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2 && \ + update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 + +RUN wget "http://commondatastorage.googleapis.com/git-repo-downloads/repo" -O - > /bin/repo && \ + chmod a+x /bin/repo && \ + sed -i '1 s/^.*$/#!\/usr\/bin\/python2/' /bin/repo + +RUN yes | pip install --upgrade pip +RUN yes | pip install 'buildbot-worker' + +RUN groupadd buildbot && useradd -m -g buildbot buildbot +RUN mkdir /worker && chown buildbot:buildbot /worker + +# Install your build-dependencies here ... + +# Set UTF8 locale settings +RUN apt-get install -yq locales && \ + locale-gen en_US.UTF-8 && \ + sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ + dpkg-reconfigure --frontend=noninteractive locales && \ + update-locale LANG=en_US.UTF-8 + +ENV LANG en_US.UTF-8 + +USER buildbot +WORKDIR /worker + +RUN buildbot-worker create-worker . nuc buildbot-oe-worker pass + +ENTRYPOINT ["/usr/local/bin/buildbot-worker"] +CMD ["start", "--nodaemon"] +