![Scott Little](/assets/img/avatar_default.png)
Upversion from debootstrap_1.0.126+nmu1_all.deb to debootstrap_1.0.128+nmu2+deb12u1_all.deb. The new version is part of snapshot.debian.org/archive/debian/20211128T160803Z And mirror.starlingx.windriver.com has a mirror of that snapshot. This in turn allows the stx-pkgbuilder container to pull debootstrap from either of two sources. Closes-Bug: 1996940 Change-Id: Ifc5b5d1a4197df8cc9bcae0e1e55c36dcf51173c Signed-off-by: Scott Little <scott.little@windriver.com>
80 lines
2.6 KiB
Docker
80 lines
2.6 KiB
Docker
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
# Copyright (C) 2021-2022 Wind River Systems,Inc.
|
|
#
|
|
FROM debian:bullseye
|
|
|
|
RUN echo "deb-src http://deb.debian.org/debian bullseye main" >> /etc/apt/sources.list
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Update certificates
|
|
RUN apt-get -y update && apt-get -y install --no-install-recommends ca-certificates && update-ca-certificates
|
|
|
|
# Download required dependencies by mirror/build processes.
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
build-essential \
|
|
live-build \
|
|
pbuilder \
|
|
debootstrap \
|
|
devscripts \
|
|
schroot \
|
|
debmake \
|
|
dpkg-dev \
|
|
apt-utils \
|
|
sbuild \
|
|
osc \
|
|
python3-fs \
|
|
python3-pip \
|
|
python3-psutil \
|
|
git \
|
|
wget \
|
|
curl \
|
|
vim \
|
|
sudo \
|
|
emacs \
|
|
tini \
|
|
procps && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
pip3 install Flask && \
|
|
sudo sbuild-adduser root
|
|
|
|
# workaround for docker debootstrap bug
|
|
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968927
|
|
RUN cd /tmp && \
|
|
( \
|
|
wget https://mirror.starlingx.windriver.com/mirror/debian/debian/snapshot.debian.org/archive/debian/20220331T000000Z/pool/main/d/debootstrap/debootstrap_1.0.128%2Bnmu2%2Bdeb12u1_all.deb || \
|
|
wget http://snapshot.debian.org/archive/debian/20220331T000000Z/pool/main/d/debootstrap/debootstrap_1.0.128%2Bnmu2$2Bdeb12u1_all.deb \
|
|
) && \
|
|
dpkg -i debootstrap_1.0.128+nmu2+deb12u1_all.deb
|
|
RUN groupadd crontab
|
|
|
|
COPY stx/toCOPY/pkgbuilder/app.py /opt/
|
|
COPY stx/toCOPY/pkgbuilder/debbuilder.py /opt/
|
|
COPY stx/toCOPY/pkgbuilder/schrootspool.py /opt/
|
|
COPY stx/toCOPY/pkgbuilder/utils.py /opt/
|
|
COPY stx/toCOPY/pkgbuilder/setup.sh /opt/
|
|
COPY stx/toCOPY/pkgbuilder/debbuilder.conf /etc/sbuild/sbuild.conf
|
|
|
|
COPY stx/toCOPY/pkgbuilder/pubkey.rsa /opt/
|
|
RUN apt-key add /opt/pubkey.rsa
|
|
|
|
# Add vimrc
|
|
RUN mkdir -p /etc/vim
|
|
COPY stx/toCOPY/common/vimrc.local /etc/vim/vimrc.local
|
|
RUN chmod 0644 /etc/vim/vimrc.local
|
|
|
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
|
WORKDIR /opt
|
|
CMD ["python3", "app.py"]
|