Giter Site home page Giter Site logo

wessel1512 / xenorchestrainstallerupdater Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ronivay/xenorchestrainstallerupdater

0.0 1.0 0.0 134 KB

xen-orchestra automated installer and updater

License: GNU General Public License v3.0

Dockerfile 5.55% Ruby 21.69% Shell 72.77%

xenorchestrainstallerupdater's Introduction

XenOrchestraInstallerUpdater - Install / Update Xen-Orchestra from sources

In a nutshell

This repo consist of script to install and update Xen Orchestra and readymade files to create Docker image.

Installation is done using latest xo-server and xo-web sources. With this method Xen-Orchestra has all features unlocked which are normally available only with monthly fee.

Optional plugins can be installed. They are included in XO repository, but not installed by default. Check list from Xen Orchestra plugins and edit xo-install.sh accordingly.

Paid version comes with pro support and appliance and is the suggested option for larger environments. Method that this script offers comes with no support and is not the officially recommended way of using Xen-Orchestra. This is mainly intended for testing purposes and small environments which don't require support.

Xen-Orchestra is a great project and i strongly encourage you to consider the supported version of their product.

Instructions

script

Clone this repository, edit variables to suit your preferences from the xo-install.sh script and run it as root

basic functionality including menu:
./xo-install.sh

non-interactive update task (option 2):
./xo-install.sh --update

non-interactive install task (option 1):
./xo-install.sh --install

quick option to rollback (option 4):
./xo-install.sh --rollback

Tool makes some checks and offers options:

  1. Autoinstall
  • Installs all dependencies (necessary packages and Xen-Orchestra itself)
  • Packages listed in the end of this README
  1. Update / Install without dependencies
  • Updates NodeJS and Yarn packages if AUTOUPDATE variable is set to true (it is by default)
  • Installs Xen-Orchestra from latest sources (doesn't install any new packages)
  1. Deploy container
  • Offers options to build container locally or pull from dockerhub
  1. Rollback installation
  • Offers option to choose which installation to use from existing ones (if more than 1)

notes:

  • If you choose to install with option 2, you need to take care that required packages are already installed
  • You can change xo-server and xo-web git branch by editing xo-install.sh scripts $BRANCH variable

docker

You can also build the docker image locally if you wish or pull it from docker hub without using the script.

docker build -t docker/. xen-orchestra
docker run -p 80:80 xen-orchestra

or

docker pull ronivay/xen-orchestra
docker run -p 80:80 ronivay/xen-orchestra

I suggest adding persistent data mounts for xo-server and redis by adding volume flags to commands above like so:

docker run -p 80:80 -v /path/to/xodata:/var/lib/xo-server -v /path/to/redisdata:/var/lib/redis xen-orchestra

Notes

Tool has been tested to work with following distros:

  • CentOS 7
  • Debian 9
  • Ubuntu 16.04

CentOS setup is confirmed to work with fresh minimal installation and SELinux enabled. Although script doesn't do any SELinux checks or modifications, so you need to take care of possible changes by yourself according to your system.

Tool makes all necessary changes required for Xen-Orchestra to run (including packages, user creation, permissions). Please evaluate script if needed. I take no responsibility of possible damage caused by this tool.

Below is a list of packages that will be installed if missing.

CentOS:
- curl
- epel-release
- nodejs (v8)
- npm (v3)
- yarn
- gcc
- gcc+
- make
- openssl-devel
- redis
- libpng-devel
- python
- git

Debian/Ubuntu:
- apt-transport-https
- ca-certificates
- curl
- yarn
- nodejs (v8)
- npm (v3)
- build-essential
- redis-server
- libpng-dev
- git
- python-minimal

xenorchestrainstallerupdater's People

Contributors

ronivay avatar oscartbeaumont avatar tssva avatar mlatorre31 avatar wessel1512 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.