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)
.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. -
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.zip
instantclient-sdk-linux.x64-11.2.0.4.0.zip
instantclient-sqlplus-linux.x64-11.2.0.4.0.zip
-
Place the downloaded Oracle Instant Client RPMs in the same directory as the
Dockerfile
and run:docker build -t latera/homs-with-oracle -f Dockerfile.oracle .
-
Update
config/sources.yml
file with database credentialssources: billing: type: sql/oracle tns_name: dbname username: user password: password
-
Add environment variable
$TNSNAMES_PATH
to.env
file with path to yourtnsnames.ora
file:TNSNAMES_PATH=/dir/with/tnsnames.ora
📌 For access to host machine OS X users can use special DNS name
host.docker.internal
as host intnsnames.ora
(details). -
Add environment variable
$HOMS_URL
to.env
file 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-compose
with 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_PASSWORD
values from.env
file (user/changeme
if these variables aren't set).