Install the Oracle Content Management Toolkit on Your VM Compute Instance
To create a Test to Production (T2P) deployment, you need to install the Oracle Content Management Toolkit on your VM Compute instance and have it use IDCS authentication.
Perform the following the steps on your VM Compute instance:
- Sign in as an OPC user.
- Set up NodeJS:
- Install NodeJS as root:
sudo -s cd /usr/local wget https://nodejs.org/dist/v12.16.2/node-v12.16.2-linux-x64.tar.xz tar xf node-v12.16.2-linux-x64.tar.xz exit
- Add NodeJS to PATH as opc user and reload profile:
vi ~/.bash_profile --- add :/usr/local/node-v12.16.2-linux-x64/bin to the PATH -- e.g: PATH=$PATH:$HOME/.local/bin:$HOME/bin:/usr/local/node-v12.16.2-linux-x64/bin source ~/.bash_profile
- Test NPM and NodeJS:
[opc@ocivm2pm ~]$ npm --version 6.14.4 [opc@ocivm2pm ~]$ node --version v12.16.2
- Install NodeJS as root:
- Set up the Oracle Content Management Toolkit:
- Oracle Content Management Toolkit supports connection via IDCS app, which removes the need to pop up Chromium to authenticate. Set the flag to skip this download:
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
- Install the toolkit as opc user:
wget https://github.com/oracle/content-and-experience-toolkit/archive/master.zip unzip master.zip rm master.zip cd content-and-experience-toolkit-master/sites/ npm install
- Test the install:
[opc@ocivm2pm sites]$ ./node_modules/.bin/cec --version 20.4.1
- Add soft link to cec binaries as root:
sudo -s ln -s /home/opc/content-and-experience-toolkit-master/sites/node_modules/.bin/cec /usr/local/bin/cec exit
- Test that you can run cec from anywhere as opc user:
cd [opc@ocivm2pm ~]$ cec --version 20.4.1
- Setup cec source folder, and install cec in the folder. This will create a source tree, with a package.json, and do an npm install to fetch dependencies into the source tree.
cd mkdir cec cd cec cec install
- Oracle Content Management Toolkit supports connection via IDCS app, which removes the need to pop up Chromium to authenticate. Set the flag to skip this download:
- Configure IDCS and register your instances following the directions on the IDCS app page.