# On-prem habitat builder depo

**URL:** <https://discourse.chef.io/t/on-prem-habitat-builder-depo/18954>\
**Category:** Habitat Help\
**Created:** [May 14, 2019, 7:29am UTC](https://discourse.chef.io/t/on-prem-habitat-builder-depo/18954 "2019-05-14T07:29:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbrars](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@sbrars](https://discourse.chef.io/u/sbrars)\
**Post date:** [May 14, 2019, 7:29am UTC](https://discourse.chef.io/t/on-prem-habitat-builder-depo/18954/1 "2019-05-14T07:29:01Z")

</div>

Hello,

I am new to habitat and trying to build an on-prem depo in a completely air-gapped environment where I have no internet connectivity to get packages from habitat.sh effectively. Is there a starter kit available to achieve what I am trying to do. The other option which I was suggested by one of the geeks is to export the required packages from a server which can connect to internet and can deploy the depot. I have got the required packages in tar format. I have couple of questions here:

- If this is a possible option, how do I point my habitat depot install to point to local packages.

- Do I need to install those using hab pkg install command?

Any help or pointers would be greatly appreciated.

Thanks,

---

<div class="post-metadata">

**Author:** ![Yauhen\_Artsiukhou](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/yauhen_artsiukhou/32/112_2.png) [@Yauhen\_Artsiukhou](https://discourse.chef.io/u/Yauhen_Artsiukhou)\
**Post date:** [May 14, 2019, 9:01am UTC](https://discourse.chef.io/t/on-prem-habitat-builder-depo/18954/2 "2019-05-14T09:01:41Z")

</div>

Probably I have the same:  
I have on-prem builder in isolated network without Internet connectivity. I also have another network (work-network) where I have access to Internet and to isolated network. So I used bio-depot-sync: [https://github.com/habitat-plans/bio-sdk/blob/master/lib/bio/depot/sync.rb:](https://github.com/habitat-plans/bio-sdk/blob/master/lib/bio/depot/sync.rb:)

```auto
hab pkg install ya/bio-sdk -fb
bio-depot-sync --help

```

If you completely haven’t Internet access you can download all packages from a channel using even curl, or `populate` scripts from on-prem, or by using `sync.rb` as reference so it will save hart-archive locally. Then upload them in a loop.

There is `bastion host` pattern you probably can try: you can make `port forwarding` from machine to builder, where machine itself is accessible from your machine, which in turn has Internet connection and do `depot-sync`
