I want to create a Oracle Database docker image using a bitbucket pipeline. For now the pipeline runs in the default build container using a customized docker image. However the pipelines fails due to missing files. The reason for the missing files is that the Oracle installation has not happened correctly. The Oracle installation logs shows the following errors:
INFO: [Sep 13, 2022 4:14:08 PM] Expected Value:16GB (1.6777216E7KB)
INFO: [Sep 13, 2022 4:14:08 PM] Actual Value:0.0 bytes
INFO: [Sep 13, 2022 4:14:08 PM] Error Message:PRVF-7573 : Sufficient swap size is not available on node "96fb79250bf1" [Required = 16GB (1.6777216E7KB) ; Found = 0.0 bytes]
INFO: [Sep 13, 2022 4:14:08 PM] Cause: The swap size found does not meet the minimum requirement.
INFO: [Sep 13, 2022 4:14:08 PM] Action: Increase swap size to at least meet the minimum swap space requirement.
It looks like the build container does not have enough resources to complete the Oracle installation.
Here is the pipeline step
- step: &build_ifsapp_db
name: build_ifsapp_db
size: 2x
script:
- export COMMIT_VERSION=`echo ${BITBUCKET_BRANCH} | sed 's/\///g'`
- export IMAGE="ifsapp-db"
- cd $NAME_PREFIX/pipeline_scripts
- chmod +x ./build_image_ifsapp-db.sh
- HOST_UID=`id -u` TRACE=true ./build_image_ifsapp-db.sh
condition:
changesets:
includePaths:
- ifs/ifsapp-db/**
artifacts: # results of the security scan
#- ifs/ifs-db-init/target/db_init.jar
- ifs/pipeline_scripts/*.txt
services:
- docker
caches:
- docker
- trivycache
How can I increase the resources needed for this step.