Skip to content

Commit ff51120

Browse files
committed
Add Debian base for glibc and GCC
1 parent c03af8f commit ff51120

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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}"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

0 commit comments

Comments
 (0)