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:
6
localrc-compiler
Normal file
6
localrc-compiler
Normal 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
6
localrc-distro
Normal 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
6
localrc-flock
Normal 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
2
tb.sh
@@ -21,7 +21,7 @@ fi
|
|||||||
|
|
||||||
CMD=$1
|
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_CONTAINER_TAG=local/${MYUNAME}-stx-builder:7.8
|
||||||
TC_DOCKERFILE=Dockerfile
|
TC_DOCKERFILE=Dockerfile
|
||||||
NO_CACHE=0
|
NO_CACHE=0
|
||||||
|
|||||||
Reference in New Issue
Block a user