# Custom Developer Studio Repository / Docker Image

**URL:** <https://mangoh.discourse.group/t/custom-developer-studio-repository-docker-image/1461>\
**Category:** mangOH Red\
**Created:** [May 23, 2018, 5:21pm UTC](https://mangoh.discourse.group/t/custom-developer-studio-repository-docker-image/1461 "2018-05-23T17:21:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewwestrick](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/drewwestrick/32/270_2.png) [@drewwestrick](https://mangoh.discourse.group/u/drewwestrick)\
**Post date:** [May 23, 2018, 5:21pm UTC](https://mangoh.discourse.group/t/custom-developer-studio-repository-docker-image/1461/1 "2018-05-23T17:21:30Z")

</div>

I’m currently running the latest Legato version (18.04) with the mangOH 18.04 patches on my device. I’m curious if there is a way to point my Linux Developer Studio and/or a Windows Developer Studio instance to a custom legato application framework folder or possibly a modified/updated docker container (Windows). I really enjoy the UI and debugging features of Developer Studio, but I find myself needing to go outside of it when I need to run a more up-to-date version of the Legato application framework.

@asyal

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [May 23, 2018, 11:05pm UTC](https://mangoh.discourse.group/t/custom-developer-studio-repository-docker-image/1461/2 "2018-05-23T23:05:10Z")

</div>

@daav can you look into this?

---

<div class="post-metadata">

**Author:** ![daav](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/daav/32/79_2.png) [@daav](https://mangoh.discourse.group/u/daav)\
**Post date:** [May 24, 2018, 6:50am UTC](https://mangoh.discourse.group/t/custom-developer-studio-repository-docker-image/1461/3 "2018-05-24T06:50:28Z")

</div>

Hi @drewwestrick

You can refer to this post in order to get DS working with a customized Legato version:

> **[Adding newest version Legato Framework into Developer Studio](https://forum.legato.io/t/adding-newest-version-legato-framework-into-developer-studio/2654)**
>
> Hi! I am wondering how to add Legato frameworks newer than 16.10.3 into the DS. I am using 17.07.1 now but I do not find anywhere that I can import this into DS. Nothing newer than 16.10.3 can be found in the Package Perspective either. Does the DS...

This is a Linux only solution at the moment.  
Concerning Windows, it’s not that easy but doable…  
You’ll need to build your custom Legato and build a new Docker image with it.  
Several options:

- build in Docker itself… but please take care that Legato can’t build on NTFS file system (`repo` doesn’t support it), so this means that you have to do the `repo init/sync` in the Docker context, and potentially modify your files in it (using `vim` or `nano`)
- take your custom Legato build made on a Linux host, and modify an existing Docker image by provisioning your legato build in `/legato` (location where the pre-built framework lies in our Docker images)

Once you’ll have a custom Docker image with your stuff inside, you’ll have to get it provisioned on the Windows host.  
If you used the first method, that should be OK.  
If you used the second one, you’ll have to `docker save` a tarball image on your Linux host, and `docker load` it on your Windows host.

Then the final step will be to get it eaten by DS.  
The easiest way would be to tweak the `package.xmi` file that is lying in a “Legato Application Framework” package folder, in order to modify the reference to the docker image by your custom one.

All these steps would help to make the build working.  
Then to make the debug working, you’ll have to copy as well the .so files (from the `legato/build/<your module>` directory) on Windows as well, so that the Windows native gdb we’re using can find them.

And… that’s it.  
FYI, we’re working on a new solution to deliver Legato pre-built packages, with harmonized user experience between command line/DS/Linux/Windows.  
With this, that kind of scenario will become really easier to address 😉

---

<div class="post-metadata">

**Author:** ![drewwestrick](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/drewwestrick/32/270_2.png) [@drewwestrick](https://mangoh.discourse.group/u/drewwestrick)\
**Post date:** [May 24, 2018, 2:03pm UTC](https://mangoh.discourse.group/t/custom-developer-studio-repository-docker-image/1461/4 "2018-05-24T14:03:37Z")

</div>

@daav

Thanks for the thorough explanation and post. I will give your suggestions a shot and let you know if I run into any problems.
