Skip to content

Latest commit

 

History

History
69 lines (48 loc) · 1.95 KB

WITHOUT_ORACLE.md

File metadata and controls

69 lines (48 loc) · 1.95 KB

Without Oracle Instant Client

If you don't want to use Oracle as source for your HOMS instance.

  1. Install docker-compose.

  2. Clone HOMS git repository:

    git clone https://github.com/latera/homs.git
  3. For OS X users: make path to folder with HOMS shared in Docker -> Preferences... -> File Sharing.

  4. Install ruby dependencies with

    bundle config set without 'oracle'
    bundle install
    
  5. Copy your (or default) .env file to your project's directory:

    cp .env.sample .env

    📌 All variables are set in .env file. There you can change them, if you want to.

  6. Add environment variable $HOMS_URL to .env file with URL to your HOMS:

    📌 For access to host machine OS X users can use special DNS name host.docker.internal as host in tnsnames.ora (details).

        HOMS_URL=http://docker.for.mac.localhost:3000/api
  7. Create your own configs from samples:

    find config -name '*.sample' | xargs -I{} sh -c 'cp $1 ${1%.*}' -- {}
  8. Be sure to update secret key in config/secrets.yml. You can generate key with this command:

    openssl rand -hex 64
  9. Add test environment to config/database.yml:

    development:
      adapter: postgresql
      encoding: unicode
      pool: 5
      host: <%= ENV['HOMS_DB_HOST'] %>
      port: <%= ENV['HOMS_DB_PORT'] %>
      database: <%= ENV['HOMS_DB_NAME'] %>
      username: <%= ENV['HOMS_DB_USER'] %>
      password: <%= ENV['HOMS_DB_PASSWORD'] %>
  10. Run docker-compose with custom config:

    docker-compose -f docker-compose.dev.yml up -d
  11. You can login to Camunda Admin interface with credentials equal to BPM_USER:BPM_PASSWORD values from .env file (user/changeme if these variables aren't set).