buildbot-worker-openembedded/Dockerfile
2020-01-23 18:56:31 +00:00

47 lines
1.5 KiB
Docker

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
# Reconfigure Dash
RUN echo "dash dash/sh boolean false" | debconf-set-selections && dpkg-reconfigure dash
# 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"]