# Docker setup for development

**URL:** <https://meta.discourse.org/t/docker-setup-for-development/72354>\
**Category:** Development\
**Created:** [18 أكتوبر 2017، 5:02م UTC](https://meta.discourse.org/t/docker-setup-for-development/72354 "2017-10-18T17:02:25Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [18 أكتوبر 2017، 9:16م UTC](https://meta.discourse.org/t/docker-setup-for-development/72354/16 "2017-10-18T21:16:35Z")

</div>

The scripts under `d` are helpers that automatically execute commands inside the container - I would suggest looking at them if you’re curious:

```bash
± |master ✓| → cat d/rake
#!/bin/bash

PARAMS="$@"
CMD="cd /src && RUBY_GLOBAL_METHOD_CACHE_SIZE=131072 LD_PRELOAD=/usr/lib/libjemalloc.so RAILS_ENV=${RAILS_ENV:=development} bundle exec rake $PARAMS"
docker exec -it -u discourse:discourse discourse_dev /bin/bash -c "$CMD"

```

---

_[View the full topic](https://meta.discourse.org/t/docker-setup-for-development/72354)._
