Skip to content
This repository was archived by the owner on May 2, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions images/10-xeguestagent/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM alpine:latest

ADD xe-daemon /usr/local/sbin/
ADD xe-ros-version /usr/local/bin/
ADD xenstore /usr/local/bin/
ADD run /usr/local/bin/

ENTRYPOINT ["/usr/bin/ros", "entrypoint"]
24 changes: 24 additions & 0 deletions images/10-xeguestagent/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2015, Citrix Systems
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

3 changes: 3 additions & 0 deletions images/10-xeguestagent/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
/usr/local/bin/xe-ros-version > /var/cache/xe-linux-distribution
/usr/local/sbin/xe-daemon
Binary file added images/10-xeguestagent/xe-daemon
Binary file not shown.
17 changes: 17 additions & 0 deletions images/10-xeguestagent/xe-ros-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

distro="RancherOS"
release=$(ros os version)
uname=$(uname -r)
name="${distro} ${release}"

# Copied from xe-linux-distribution
eval $(echo $release | awk -F. -- '{ subindex = index($0,"."); \
print "major=\"" $1 "\""; \
print "minor=\"" substr($0,subindex+1) "\"" }')

echo "os_distro=\"${distro}\""
echo "os_majorver=\"${major}\""
echo "os_minorver=\"${minor}\""
echo "os_uname=\"${uname}\""
echo "os_name=\"${name}\""
Binary file added images/10-xeguestagent/xenstore
Binary file not shown.
1 change: 1 addition & 0 deletions index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:
- waagent
- virtualbox-tools
- pingan-amc
- xe-guest-agent
consoles:
- alpine
- centos
Expand Down
15 changes: 15 additions & 0 deletions x/xe-guest-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
xe-guest-agent:
image: ${REGISTRY_DOMAIN}/rancher/os-xeguestagent:v7.4.50-1
command: /usr/local/bin/run
privileged: true
restart: always
labels:
io.rancher.os.scope: system
pid: host
ipc: host
net: host
uts: host
volumes_from:
- command-volumes
- system-volumes
- user-volumes