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:

  1. Sign in as an OPC user.
  2. Set up NodeJS:
    1. 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
    2. 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
    3. Test NPM and NodeJS:
      [opc@ocivm2pm ~]$ npm --version
      6.14.4
      [opc@ocivm2pm ~]$ node --version
      v12.16.2
  3. Set up the Oracle Content Management Toolkit:
    1. 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
    2. 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
    3. Test the install:
      [opc@ocivm2pm sites]$ ./node_modules/.bin/cec --version
      20.4.1
    4. 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
    5. Test that you can run cec from anywhere as opc user:
      cd
      [opc@ocivm2pm ~]$ cec --version
      20.4.1
    6. 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
  4. Configure IDCS and register your instances following the directions on the IDCS app page.