Add support for pre-patched ISO on LAT container
This commit adds the necessary packages and env variables necessary in order to create pre-patched iso using apt-ostree inside inside the lat container. Test plan: PASS: Ran "./stx-init-env --rebuild" Check if packages are installed Check if env variable are set and available Other tests are covered by: https://review.opendev.org/c/starlingx/root/+/922827 Story: 2010676 Task: 50437 Change-Id: I9d5b6de52ad41525b581dc6956529ae94e7f3f53 Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
This commit is contained in:
parent
5d79fdc996
commit
3c9fa8296e
stx
dockerfiles
stx-build-tools-chart/stx-builder/dependency_chart/stx-lat-tool/configmap
@ -40,10 +40,30 @@ RUN apt-get -y update && apt-get --no-install-recommends -y install \
|
||||
vim \
|
||||
&& \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
mkdir -p /opt/LAT/SDK && \
|
||||
pip3 install pycryptodomex requests_toolbelt
|
||||
|
||||
# Packages for pre-patched iso creation support
|
||||
RUN apt-get -y install \
|
||||
isomd5sum \
|
||||
syslinux-utils \
|
||||
bubblewrap \
|
||||
git \
|
||||
python3-apt \
|
||||
python3-gi \
|
||||
python3-gi-cairo \
|
||||
python3-systemd \
|
||||
gir1.2-ostree-1.0 \
|
||||
reprepro \
|
||||
dosfstools \
|
||||
xfsprogs \
|
||||
debos \
|
||||
mmdebstrap \
|
||||
&& \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
pip3 install git+https://opendev.org/starlingx/apt-ostree@master
|
||||
|
||||
# Insert pubkey of the package repository
|
||||
COPY stx/toCOPY/builder/pubkey.rsa /opt/LAT/
|
||||
|
||||
|
@ -13,5 +13,7 @@ export MY_BUILD_TOOLS_DIR=$MY_REPO/build-tools
|
||||
export PATCH_TOOLS=${MY_REPO}/stx/update/sw-patch/cgcs-patch/cgcs_make_patch
|
||||
export STX_BUILD_HOME="/"
|
||||
export DEPLOY_DIR=${LOCALDISK}/deploy
|
||||
export HTTP_CONTAINER_HOSTNAME="http://@PROJECT@-stx-builder-files-http:8088"
|
||||
export HTTP_CONTAINER_IP=$(getent hosts @PROJECT@-stx-builder-files-http | cut -d ' ' -f1)
|
||||
|
||||
export PATH=$PATH:$MY_BUILD_TOOLS_DIR:/opt/LAT/SDK/sysroots/x86_64-wrlinuxsdk-linux/usr/bin
|
Loading…
x
Reference in New Issue
Block a user