Hi - I am building a docker image however it seems I am now stuck at a swap issue.
The ‘docker build’ command fails at Step 51 mentioned below. Basically it is a silent install for an oracle product. The problem happens because of swap space.
I tried to increase the swap space, using directions in Addendum A below, but I get into privilege issues (Addendum B)
Any pointers ?
Thanks.
Step 51 : RUN su -m endeca -c ‘$BASE_TMP_ENDECA_INSTALL/cd/Disk1/install/silent_install.sh silent_response.rsp ToolsAndFrameworks $BASE_ENDECA_DIR/ToolsAndFrameworks admin’
—> Running in db8e9f1acc60
Starting Oracle Universal Installer…
Checking swap space: 398 MB available, 500 MB required. Failed <<<<
Some requirement checks failed. You must fulfill these requirements before
Addendum A
sudo install -o root -g root -m 0600 /dev/null /swapfile
dd if=/dev/zero of=/swapfile bs=1k count=1024k
mkswap /swapfile
swapon /swapfile
echo “/swapfile swap swap auto 0 0” | sudo tee -a /etc/fstab
sudo sysctl -w vm.swappiness=10
echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf
Addendum B
[root@4fcf25a42c86 /]# swapon /swapfile
swapon: /swapfile: swapon failed: Operation not permitted