Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
exclude the pccs and qgs when build ccnp containers (#225)
Browse files Browse the repository at this point in the history
Signed-off-by: LeiZhou-97 <lei.zhou@intel.com>
  • Loading branch information
LeiZhou-97 authored Jan 3, 2024
1 parent debc06c commit acb32be
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pr-container-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ jobs:
- name: Build containers
run: |
cd container
touch pccs/ssl_key # touch a ssl_key fake file
./build.sh -a build -r gar-registry.caas.intel.com/cpio
10 changes: 9 additions & 1 deletion container/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ registry=""
container="all"
tag="latest"
docker_build_clean_param=""
pccs=false
qgs=false
all_containers=()

#
Expand Down Expand Up @@ -36,6 +38,8 @@ usage: $(basename "$0") [OPTION]...
-c <container name> same as directory name
-g <tag> container image tag
-f Clean build
-p Flag to build PCCS
-q Flag to build QGS
EOM
exit 1
}
Expand All @@ -44,14 +48,16 @@ EOM
# Process arguments
#
function process_args {
while getopts ":a:r:c:g:hf" option; do
while getopts ":a:r:c:g:hfpq" option; do
case "${option}" in
a) action=${OPTARG};;
r) registry=${OPTARG};;
c) container=${OPTARG};;
g) tag=${OPTARG};;
h) usage;;
f) docker_build_clean_param="--no-cache";;
p) pccs=true;;
q) qgs=true;;
*)
esac
done
Expand Down Expand Up @@ -131,7 +137,9 @@ function build_images {
if [[ "$container" == "all" ]]; then
for item in "${all_containers[@]}"
do
if [[ ${item} != "pccs" && ${item} != "qgs" ]] || [[ ${item} == "pccs" && ${pccs} == true ]] || [[ ${item} == "qgs" && ${qgs} == true ]] ; then
build_a_image "$item"
fi
done
else
build_a_image "$container"
Expand Down
3 changes: 1 addition & 2 deletions container/pccs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ Obtain a provisioning API key. Goto https://sbx.api.portal.trustedservices.intel
In the `container` directory, a default.json template file has been provided. The detailed value will be injected after executing the script.

```bash
cd container
./pre-built.sh
./pre-build.sh
```

## 2. Install PCCS Service
Expand Down
File renamed without changes.

0 comments on commit acb32be

Please sign in to comment.