Files
tools/stx/dockerfiles/stx-lat-tool.Dockerfile
Yue Tao 5dd9b75dc3 Upgrade LAT to latest version
Integrate 2 important fixes:

a) genimage: process SIGTERM signal gracefully (f215b627e3a5)

It introduces a new variable "debootstrap-mirror" to set the source of
debootstrap instead of picking a source from package_feeds randomly.

b) genimage: add yaml params debootstrap-mirror for external debian
(ec3758936b3f)

It fixes a bug of build-image after terminating previous build-image,
and change to handle the signal.SIGTERM.

The error message is:
====================
build-image - DEBUG: Update /localdisk/deploy/lat.yaml to add packages
latc - INFO: build request handled by server
rm: cannot remove './rootfs/proc/523189/gid_map': Operation not permitted
rm: cannot remove './rootfs/proc/523189/projid_map': Operation not permitted
rm: cannot remove './rootfs/proc/523189/setgroups': Operation not permitted
rm: cannot remove './rootfs/proc/523189/timers': Operation not permitted
rm: cannot remove './rootfs/proc/523189/timerslack_ns': Operation not permitted
rm: cannot remove './rootfs/proc/523189/patch_state': Operation not permitted
rm: cannot remove './rootfs/proc/523189/arch_status': Operation not permitted
appsdk - ERROR: Generate sub initramfs failed
====================

Test Plan:

a) Testcase 1
Pass: successfully build-image, and the debootstrap is fed by the "debootstrap-mirror".
Pass: successfully install test
Pass: successfully boot test

b) Testcase 2
Pass: sucessfully build-image after terminating previous build-image.
$build-image
$ctrl+c
$latc stop
$build-image

Story: 2008846
Task: 44194

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I7f1b9a743d6fc0018d2e7347fbd38eddc5913b12
2021-12-20 09:31:02 +08:00

44 lines
1.3 KiB
Docker

# Copyright (c) 2021 Wind River Systems, Inc.
#
# 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.
FROM debian:bullseye
MAINTAINER Chen Qi <Qi.Chen@windriver.com>
ARG LAT_BINARY_RESOURCE_PATH=http://mirror.starlingx.cengn.ca/mirror/lat-sdk/lat-sdk-20211216
# Install necessary packages
RUN apt-get -y update && apt-get --no-install-recommends -y install \
python3 \
xz-utils \
file \
bzip2 \
procps \
tini \
locales-all \
python3-yaml && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /opt/LAT/SDK
# Prepare executables
COPY stx/toCOPY/lat-tool/lat/ /opt/LAT/lat
# Prepare LAT SDK.
ADD ${LAT_BINARY_RESOURCE_PATH}/lat-sdk.sh /opt/LAT/AppSDK.sh
RUN chmod +x /opt/LAT/AppSDK.sh
RUN /opt/LAT/AppSDK.sh -d /opt/LAT/SDK -y
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["/opt/LAT/lat/latd"]