File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ # Generate a base sysroot for running the BuildStream integration tests.
16+ #
17+ # The sysroot is based off the Debian Linux distribution.
18+
19+ set -eux
20+
21+ DOCKER_ARCH=${DOCKER_ARCH:- amd64}
22+
23+ export DOCKER_DEFAULT_PLATFORM=" linux/%{DOCKER_ARCH}"
24+
25+ IMAGE_NAME=" integration-tests-debian-base"
26+
27+ docker build --tag ${IMAGE_NAME} -f - << "EOF "
28+ FROM debian:trixie-slim
29+ RUN apt-get update && apt-get install -y --no-install-recommends \
30+ gcc libc6-dev make autoconf automake && \
31+ rm -rf /var/lib/apt/lists/*
32+ EOF
33+
34+ CONTAINER_NAME=" $( docker create ${IMAGE_NAME} ) "
35+
36+ docker export " ${CONTAINER_NAME} " | xz > ${IMAGE_NAME} .tar.xz
37+
38+ docker rm " ${CONTAINER_NAME} "
Original file line number Diff line number Diff line change 1+ kind : import
2+
3+ description : |
4+ Debian Linux base for tests
5+
6+ Generated using the `tests/integration/base/generate-debian-base.sh` script.
7+
8+ sources :
9+ - kind : tar
10+ base-dir : ' '
11+ ref : 4964ce8b12f2200a3cf1570ac93756bea27055dad771bf2be97751c7a2a0f92c
12+ url : test-images:integration-tests-debian-base.v1.x86_64.tar.xz
You can’t perform that action at this time.
0 commit comments