Coder Social home page Coder Social logo

photon-os-installer's Introduction

Photon OS Installer

What is Photon Installer

Photon OS Installer Project aims to seperate out installer source code from Photon project and use it as a python library. This Project can be used to create a photon-installer binary that can be used to install Photon OS when invoked with appropriate arguments.

Features

  • Generates Photon Installer executable.
  • Creates Photon Images(ISO, GCE, AMI, AZURE, OVA...).
  • Makes Photon Installer Source code installable through pip interface and use it as a python library.

Dependencies

python3, python3-pyinstaller, python3-setuptools

Building from source.

Building Photon Installer Executable on Photon OS

~ tdnf install -y python3 python3-setuptools python3-pyinstaller
➜  ~ git clone https://github.com/vmware/photon-os-installer.git
➜  ~ cd photon-os-installer
➜  ~ pyinstaller --onefile photon-installer.spec

Building Photon Installer Executable on Other distros

~ pip3 install setuptools pyinstaller
➜  ~ git clone https://github.com/vmware/photon-os-installer.git
➜  ~ cd photon-os-installer
➜  ~ pyinstaller --onefile photon-installer.spec

The executable generated can be found inside dist directory created.

Currently following images can be built based on architecture mentioned in table.

x86_64 arm64
iso iso
ova ova
ova_uefi ova_uefi
minimal-iso
rt-iso
ami
gce
azure
rpi3

Building Photon Cloud images using Photon OS Installer

~ pip3 install git+https://github.com/vmware/photon-os-installer.git
➜  ~ git clone https://github.com/vmware/photon.git
➜  ~ cd photon
➜  ~ make image IMG_NAME=ami

Using Photon OS Installer as python library
install config mentioned below can be referred from Photon Project

import photon_installer
from photon_installer.installer import Installer
import json
with open('path_to_file/config.json') as f:
    install_config = json.load(f)
installer = Installer(working_directory='/root/photon/stage/ova', rpm_path='/root/photon/stage/RPMS', log_path='/root/photon/stage/LOGS')
installer.configure(install_config)
installer.execute()

Contributing

The Photon OS Installer project team welcomes contributions from the community. If you wish to contribute code and you have not signed our contributor license agreement (CLA), our bot will update the issue when you open a Pull Request. For any questions about the CLA process, please refer to our FAQ.

License

Apache-2.0 GPL-2.0

photon-os-installer's People

Contributors

gpiyush-dev avatar oliverkurth avatar jaankit avatar yustasswamp avatar tapakund avatar prashant1221 avatar sshedi avatar harinadhd avatar tenthirtyam avatar andrewheberle avatar spyroot 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.