# New Dashboard Development Environment

**URL:** <https://talk.openmrs.org/t/new-dashboard-development-environment/5508>\
**Category:** ID Dashboard\
**Tags:** vagrant, docker\
**Created:** [March 24, 2016, 7:36pm UTC](https://talk.openmrs.org/t/new-dashboard-development-environment/5508 "2016-03-24T19:36:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![r0bby](https://talk.openmrs.org/user_avatar/talk.openmrs.org/r0bby/32/6479_2.png) [@r0bby](https://talk.openmrs.org/u/r0bby)\
**Post date:** [March 24, 2016, 7:36pm UTC](https://talk.openmrs.org/t/new-dashboard-development-environment/5508/1 "2016-03-24T19:36:06Z")

</div>

I set up a Vagrant+Docker development enviromment. That is, there’s a vagrant box for OpenLDAP and docker for everything else.

Development guides [[1](https://github.com/openmrs/openmrs-contrib-id/blob/master/install-openldap.md),[2](https://github.com/openmrs/openmrs-contrib-id/blob/master/installing-openmrsid.md)] have been updated.

I did not dockerize the app itself, there is no need. The end goal is that services are easily spun up for quick development.

For the curious, [here](https://github.com/openmrs/openmrs-contrib-id/blob/master/docker-compose.yml) is the docker-compose file I used; [here](https://github.com/openmrs/openmrs-contrib-id/blob/master/Vagrantfile) is the Vagrantfile, along with the [puppet manifest](https://github.com/openmrs/openmrs-contrib-id/blob/master/manifests/default.pp).

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [March 24, 2016, 8:32pm UTC](https://talk.openmrs.org/t/new-dashboard-development-environment/5508/2 "2016-03-24T20:32:27Z")

</div>

Cool news @r0bby!

Can this environment be used as part of a modulus dev environment also?

---

<div class="post-metadata">

**Author:** ![r0bby](https://talk.openmrs.org/user_avatar/talk.openmrs.org/r0bby/32/6479_2.png) [@r0bby](https://talk.openmrs.org/u/r0bby)\
**Post date:** [March 24, 2016, 8:48pm UTC](https://talk.openmrs.org/t/new-dashboard-development-environment/5508/3 "2016-03-24T20:48:09Z")

</div>

Yes, it can – i’m gonna write a script to cohesivelty tie things together. The reason I use a vagrant box for OpenLDAP is currently we use the slapd.conf configuration – I am gonna continue working on it…it’s not ideal but it works. I wanted something at was usable out now.

To use this in a nutshell:

```auto
$ vagrant up && docker-compose up -d && \
cp app/conf.js.example app/conf.js && node build/store.js 

```

Once you register your first user, you can make it an admin with the script that @plypy made – I’m trying to come up with an efficient way to do this…I’m considering packing a sample db with the docker image with an admin user made…

The example config is taillored towards development. All settings are done in such a way that it just works™. No changes should be necessary.

---

<div class="post-metadata">

**Author:** ![ttcphilips](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ttcphilips/32/1657_2.png) [@ttcphilips](https://talk.openmrs.org/u/ttcphilips)\
**Post date:** [March 25, 2016, 2:01am UTC](https://talk.openmrs.org/t/new-dashboard-development-environment/5508/4 "2016-03-25T02:01:37Z")

</div>

This is great @r0bby.

---

<div class="post-metadata">

**Author:** ![r0bby](https://talk.openmrs.org/user_avatar/talk.openmrs.org/r0bby/32/6479_2.png) [@r0bby](https://talk.openmrs.org/u/r0bby)\
**Post date:** [March 25, 2016, 2:02am UTC](https://talk.openmrs.org/t/new-dashboard-development-environment/5508/5 "2016-03-25T02:02:23Z")

</div>

I’m writing the code to make an admin user right now – editing the last script to make a user. It’s not ideal but it works.

---

<div class="post-metadata">

**Author:** ![r0bby](https://talk.openmrs.org/user_avatar/talk.openmrs.org/r0bby/32/6479_2.png) [@r0bby](https://talk.openmrs.org/u/r0bby)\
**Post date:** [March 25, 2016, 6:07am UTC](https://talk.openmrs.org/t/new-dashboard-development-environment/5508/6 "2016-03-25T06:07:35Z")

</div>

You will see an error when you register about the discourse-sso module – ignore it – it’s not fatal – I don’t think we should enable that outside of development or at the very least use your own discourse instance running. I know I have synced accounts with the main discourse instance here – and I’d rather not clutter the user database with test accounts
