# Requesting access to rancher/agent repository

**URL:** <https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176>\
**Category:** Rancher 1.x\
**Created:** [July 28, 2015, 10:08pm UTC](https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176 "2015-07-28T22:08:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![blazczak](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@blazczak](https://forums.suse.com/u/blazczak)\
**Post date:** [July 28, 2015, 10:08pm UTC](https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176/1 "2015-07-28T22:08:17Z")

</div>

I just had a conversation with David Getzler about building a 32-bit version of rancher/agent container to run on ARM-based hosts. Please grant me access to the necessary repo(s) to be able to generate such container; feel free to contact David Getzler or Will Chan with any questions in regards to this request. Thanks!

Adam Blazczak

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [July 28, 2015, 10:26pm UTC](https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176/2 "2015-07-28T22:26:55Z")

</div>

Everything in Rancher is open-source, so you don’t need any permission… We use the normal GitHub fork/pull-request workflow if you’d like to contribute your changes back (which we would of course appreciate.)

The agent is in [https://github.com/rancher/python-agent](https://github.com/rancher/python-agent) ; as the name says it’s Python, so the bulk of the work is probably to get a 32-bit ARM python underneath it.

---

<div class="post-metadata">

**Author:** ![blazczak](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@blazczak](https://forums.suse.com/u/blazczak)\
**Post date:** [July 28, 2015, 11:14pm UTC](https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176/3 "2015-07-28T23:14:42Z")

</div>

Thanks, Vincent - I saw the repo earlier but the name threw me for a loop. 😉 So, to build rancher/agent-v0.7.11 I would build from rancher/python-agent? What confused me was, I didn’t see v0.7.11 in the releases tab for that repo; I guess the github versions differ from the internal revision numbers.

---

<div class="post-metadata">

**Author:** ![cjellick](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cjellick/32/2876_2.png) [@cjellick](https://forums.suse.com/u/cjellick)\
**Post date:** [July 29, 2015, 3:56pm UTC](https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176/4 "2015-07-29T15:56:31Z")

</div>

@blazczak The repo that houses the rancher/agent container is actually here:  
[https://github.com/rancher/rancher/tree/master/agent](https://github.com/rancher/rancher/tree/master/agent).

As you can see, there isn’t much code there. At a high level, when the `docker run ... rancher/agent` command is ran on a host, the initial container does some bootstrapping and then actually launches _another_ rancher/agent container with additional configuration. You can see that happening here: [https://github.com/rancher/rancher/blob/master/agent/run.sh#L68-L96](https://github.com/rancher/rancher/blob/master/agent/run.sh#L68-L96)

At that point, the new rancher/agent container connects to the Rancher server and the Rancher server gives it the URLs to specific versions of the software it needs to download. Specifically, it tells the container which version of python-agent, [host-api](https://github.com/rancher/host-api), and some other downloadables. Those version care configured on the Rancher server side and you can view them here: [https://github.com/rancher/cattle/blob/master/resources/content/cattle-global.properties#L11-L17](https://github.com/rancher/cattle/blob/master/resources/content/cattle-global.properties#L11-L17)

So, there’s a bit of complexity, but hopefully this gets you set down the right path.

---

<div class="post-metadata">

**Author:** ![blazczak](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@blazczak](https://forums.suse.com/u/blazczak)\
**Post date:** [August 5, 2015, 4:57pm UTC](https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176/5 "2015-08-05T16:57:24Z")

</div>

Thanks Craig, that makes much more sense.

I was able to build rancher/agent successfully, and Rancher appears to also need rancher/agent-instance on the device to be able to (for example) add containers through the UI. However, when building that image, I get the following errors related to the racoon install:

Generating /etc/default/racoon…  
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults  
insserv: warning: script ‘agent-instance-startup’ missing LSB tags and overrides  
insserv: There is a loop between service monit and agent-instance-startup if stopped  
insserv: loop involving service agent-instance-startup at depth 2  
insserv: loop involving service monit at depth 1  
insserv: Stopping agent-instance-startup depends on monit and therefore on system facility `$all’ which can not be true!  
insserv: exiting now without changing boot order!  
update-rc.d: error: insserv rejected the script header  
dpkg: error processing package racoon (–configure):  
subprocess installed post-installation script returned error exit status 1  
Processing triggers for libc-bin (2.19-18) …  
Processing triggers for systemd (215-17+deb8u1) …  
Errors were encountered while processing:  
racoon  
E: Sub-process /usr/bin/dpkg returned an error code (1)

How do I fix it? Thanks

---

<div class="post-metadata">

**Author:** ![dbones](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/dbones/32/265_2.png) [@dbones](https://forums.suse.com/u/dbones)\
**Post date:** [November 24, 2015, 11:48pm UTC](https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176/6 "2015-11-24T23:48:02Z")

</div>

did you get this to work?

also which Linux distro did you try this with?

---

<div class="post-metadata">

**Author:** ![blazczak](https://avatars.discourse-cdn.com/v4/letter/b/77aa72/32.png) [@blazczak](https://forums.suse.com/u/blazczak)\
**Post date:** [November 25, 2015, 5:08am UTC](https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176/7 "2015-11-25T05:08:17Z")

</div>

I did, I was able to add **Raspberry Pi** , **Raspberry Pi 2** and **BeagleBone Black** hosts to a Rancher server and monitor and perform rudimentary maintenance tasks (start, stop, restart, remove) of containers on these machines. I ran **Ubuntu 14.04** on Raspberry Pi 2 + BBB and hypriot-rpi-20150727-151455.img.zip image on Raspberry Pi (at the time provided docker 1.x, available from [http://blog.hypriot.com/post/moving-docker-from-wheezy-to-jessie/](http://blog.hypriot.com/post/moving-docker-from-wheezy-to-jessie/)). Now that Raspbian has its own Jessie-based image you should be able to run on the offician raspbian-jessie image when working with the original Pi.

It’s been a while (this was back in August) but I remember having to rebuild rancher-agent and thin-provisioning-tools; change the base image of the rancher-agent Dockerfile to an arm-based image and you will need a few other changes in the Dockerfile to work around the 64 vs 32 bit differences.

Let me know if you need more info.

---

<div class="post-metadata">

**Author:** ![rykelley](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rykelley](https://forums.suse.com/u/rykelley)\
**Post date:** [May 13, 2016, 10:36pm UTC](https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176/8 "2016-05-13T22:36:17Z")

</div>

does somebody have a docker image for the rancher agent for arm devices built? or a post explains how. i’m using armbian

---

<div class="post-metadata">

**Author:** ![pp610](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pp610](https://forums.suse.com/u/pp610)\
**Post date:** [May 15, 2016, 10:47am UTC](https://forums.suse.com/t/requesting-access-to-rancher-agent-repository/176/9 "2016-05-15T10:47:33Z")

</div>

Have a look on: [https://github.com/rancher/rancher/issues/4703](https://github.com/rancher/rancher/issues/4703)

It’s not so easy anymore to prepare portable rancher agent image. AFAIK agent downloads some binary dependencies from cattle etc.
