If you don't 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
. -
Install ruby dependencies with
bundle config set without 'oracle' bundle install
-
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. -
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 intnsnames.ora
(details).HOMS_URL=http://docker.for.mac.localhost:3000/api
-
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
-
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.dev.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).