feat: Modify layer build process

After compile-layer build, there should be a new container for distro-layer.
So do flock-layer.
These three layer's environemnt are different. However, the container is hard to change environment after launched.
So, Three layers, three environments and three containers.

The process is

cp localrc-compiler localrc
./tb.sh env
./tb.sh run
./tb.sh exec

cp localrc-distro localrc
./tb.sh env
./tb.sh run
./tb.sh exec

docker ps | awk 'NR>1{print $12}'
stx-distro-centos-builder
stx-compiler-centos-builder

Signed-off-by: ChantYuCN <chengde.yu@intel.com>
Change-Id: Ibded97dbc9f7541b0a7f0f8c71fb90816510a8b6
This commit is contained in:
ChantYuCN 2022-06-21 16:39:26 +00:00
parent 233905183a
commit 9a155283f1
4 changed files with 19 additions and 1 deletions

6
localrc-compiler Normal file
View File

@ -0,0 +1,6 @@
MYPROJECTNAME=starlingx
MYUNAME=`whoami`
PROJECT=compiler
HOST_PREFIX=$HOME/starlingx/workspace
HOST_MIRROR_DIR=$HOME/starlingx/mirror
LAYER=compiler

6
localrc-distro Normal file
View File

@ -0,0 +1,6 @@
MYPROJECTNAME=starlingx
MYUNAME=`whoami`
PROJECT=distro
HOST_PREFIX=$HOME/starlingx/workspace
HOST_MIRROR_DIR=$HOME/starlingx/mirror
LAYER=distro

6
localrc-flock Normal file
View File

@ -0,0 +1,6 @@
MYPROJECTNAME=starlingx
MYUNAME=`whoami`
PROJECT=flock
HOST_PREFIX=$HOME/starlingx/workspace
HOST_MIRROR_DIR=$HOME/starlingx/mirror
LAYER=flock

2
tb.sh
View File

@ -21,7 +21,7 @@ fi
CMD=$1
TC_CONTAINER_NAME=${MYUNAME}-centos-builder
TC_CONTAINER_NAME=${MYUNAME}-${LAYER}-centos-builder
TC_CONTAINER_TAG=local/${MYUNAME}-stx-builder:7.8
TC_DOCKERFILE=Dockerfile
NO_CACHE=0