If you want to use Oracle as source for your HOMS instance.
-
Install docker-compose.
-
Clone HOMS git repository:
git clone https://github.com/latera/homs.git
-
For OS X users: make path to folder with HOMS shared in
Docker -> Preferences... -> File Sharing. -
Copy your (or default)
.envfile to your project's directory:cp .env.sample .env
📌 All variables are set in
.envfile. There you can change them, if you want to. -
Create your own configs from samples:
find config -name '*.sample' | xargs -I{} sh -c 'cp $1 ${1%.*}' -- {}
-
Be sure to update secret key in
config/secrets.yml. You can generate key with this command:openssl rand -hex 64
-
Download the Oracle Instant Client 11.2 archives from OTN:
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
The following three ZIPs are required:
instantclient-basic-linux.x64-11.2.0.4.0.zipinstantclient-sdk-linux.x64-11.2.0.4.0.zipinstantclient-sqlplus-linux.x64-11.2.0.4.0.zip
-
Place the downloaded Oracle Instant Client RPMs in the same directory as the
Dockerfileand run:docker build -t latera/homs-with-oracle -f Dockerfile.oracle . -
Update
config/sources.ymlfile with database credentialssources: billing: type: sql/oracle tns_name: dbname username: user password: password
-
Add environment variable
$TNSNAMES_PATHto.envfile with path to yourtnsnames.orafile:TNSNAMES_PATH=/dir/with/tnsnames.ora
📌 For access to host machine OS X users can use special DNS name
host.docker.internalas host intnsnames.ora(details). -
Add environment variable
$HOMS_URLto.envfile with URL to your HOMS:HOMS_URL=http://docker.for.mac.localhost:3000/api
-
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'] %>
-
Run
docker-composewith custom config:docker-compose -f docker-compose.oracle.yml up -d
-
You can login to Camunda Admin interface with credentials equal to
BPM_USER:BPM_PASSWORDvalues from.envfile (user/changemeif these variables aren't set).