Git Product home page Git Product logo

vmware-photon's Introduction

Welcome to the VMware Photon Linux Release!

Introduction

Photon is a Linux Distribution that uses RPM as its packaging system.

Folder Layout

photon/
├── Makefile
├── README
├── SPECS # RPM SPEC files
├── cloud-init.md
├── gce.md
├── installer # Installer used at runtime
└── support

How to build the ISO?

Assuming you checked out the workspace under $HOME/workspaces/photon.

cd $HOME/workspaces/photon
sudo make iso

Deliverable will be created at $HOME/workspaces/photon/stage/photon.iso

How to use cached toolchain and RPMS?

mkdir $HOME/photon-cache
sudo make iso PHOTON_CACHE_PATH=$HOME/photon-cache

Directory format of PHOTON_CACHE_PATH is as follows.

photon-cache/
├──tools-build.tar.gz
├──RPMS/x86-64/*.rpm
└──RPMX/noarch/*.rpm

How to use cached sources?

mkdir $HOME/photon-sources
sudo make iso PHOTON_SOURCES_PATH=$HOME/photon-sources

Directory format of PHOTON_SOURCES_PATH is as follows.

photon-sources/
├──src1.tar.gz
├──src2.tar.gz
└──...

How to build the toolchain?

  1. Check toolchain pre-requisites
$HOME/workspaces/photon/support/toolchain/version-check.sh
  1. Make toolchain
$HOME/workspaces/photon
sudo make toolchain

Pre-requisites :

  • Build O/S : Ubuntu 14.04 (or later) 64 bit
  • Packages: bison, gawk, g++, createrepo, python-aptdaemon, genisoimage, texinfo, python-requests
sudo apt-get -y install bison gawk g++ createrepo python-aptdaemon genisoimage texinfo python-requests

Settings:

Make sure /bin/sh is a symbolic link pointing to /bin/bash

If /bin/sh is pointing /bin/dash, execute the following:

rm -f /bin/sh
ln -s /bin/bash /bin/sh

Where are the build logs?

$HOME/workspaces/photon/stage/LOGS

Complete build environment using Vagrant

A Vagrantfile is available to ensure a quick standup of a development/build environment for Photon, this Vagrantfile uses a box called photon-build-machine box that is created through a Packer template available under support/packer-templates, see the README.md for more information on how to build photon-build-machine.

Photon Vagrant box

As with the build-machine a Packer template is available under support/packer-templates to build a Photon based Vagrant box running Docker, see the README.md for more information on how to build.

Automated build environment and Vagrant boxes

Convenience make targets also exist to build both the photon-build-machine and the photon Packer templates as well as building a fresh ISO using the photon-build-machine. See the README.md for more details.

vmware-photon's People

Contributors

sjohngeorge avatar

Watchers

 avatar  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.