GithubHelp home page GithubHelp logo

aulanov / compute-image-packages Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/compute-image-packages

0.0 3.0 0.0 462 KB

Scripts and tools for Google Compute Engine images.

License: Apache License 2.0

Python 77.51% Shell 22.49%

compute-image-packages's Introduction

This repository is the collection of packages that are installed on the standard Google Compute Engine images.

  1. Image Bundle - Tool that creates an image file out of a disk attached to a GCE VM.
  2. Google Startup Scripts - Scripts and configuration files that setup a Linux-based image to work smoothly with GCE.
  3. Google Daemon - A service that manages user accounts, maintains ssh login keys, syncs the system clock after migration, and syncs public endpoint IP addresses.

Installation

From Release Tarballs

The easiest way to install these packages into a Linux-based image is to extract each tarball to / (root). Image Bundle does not have a directory structure, it is recommended to it extract to /usr/share/imagebundle. The tarballs are available in releases.

Refer to Building a Google Compute Engine Image for the complete guide.

From Source Repository

Occasionally you may want to install the latest commits to the repository even if they have not been released. This is not recommended unless there is a change that you specifically need and cannot wait for. To do this:

  1. Log in to your target machine.

  2. Clone the repository with

     git clone https://github.com/GoogleCloudPlatform/compute-image-packages.git
    
  3. Copy the google-daemon and google-startup-scripts files to your root directory with

     sudo cp -R compute-image-packages/{google-daemon/{etc,user},google-startup-scripts/{etc,usr,lib}} /
    
  4. Configure the packages to run on startup with (Debian)

     sudo update-rc.d google-starup-scripts defaults && sudo update-rc.d google-accounts-manager defaults && sudo update-rc.d google-address-manager defaults && sudo update-rc.d google-clock-sync-manager defaults
    

    or (Redhat)

     sudo chkconfig --add google-startup-scripts && sudo chkconfig --add google-accounts-manager && sudo chkconfig --add google-address-manager && sudo chkconfig --add google-clock-sync-manager
    
  5. Either restart so the packages run or start them with (Debian and Redhat)

     sudo service google-accounts-manager restart && sudo service google-address-manager restart && sudo service google-clock-sync-manager restart
    
  6. Install gcimagebundle with

     cd compute-image-packages/gcimagebundle && sudo python setup.py install
    

Source Code

This repository is structured so that each package is located in its own top-level directory. google-startup-scripts and google-daemon are stored as the directory structure of where the files would be from root. image-bundle has no directory structure.

Contributing

Have a patch that will benefit this project? Awesome! Follow these steps to have it accepted.

  1. Please sign our Contributor License Agreement.
  2. Fork this Git repository and make your changes.
  3. Run the unit tests. (gcimagebundle only)
  4. Create a Pull Request
  5. Incorporate review feedback to your changes.
  6. Accepted!

License

All files in this repository are under the Apache License, Version 2.0 unless noted otherwise.

compute-image-packages's People

Contributors

akramer avatar cbacon avatar davidn avatar erjohnso avatar feczo avatar herbertd avatar himanshuvasishth avatar illfelder avatar ivgiuliani avatar jeremyje avatar jkaplowitz avatar kimasaki avatar malcolmr avatar mauimauer avatar palladius avatar phunl avatar poogles avatar rjschwei avatar rudd-o avatar sarsate avatar seano314 avatar shenl avatar swills avatar uday94555 avatar vaijab avatar vanessabodard avatar wedsonaf avatar wrigri avatar yueluog avatar zmarano avatar

Watchers

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