Giter Site home page Giter Site logo

ikapelyukhin / ubuntu-old-fashioned Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ubuntu-bartenders/ubuntu-old-fashioned

0.0 0.0 0.0 1.05 MB

An old fashioned image builder for ubuntu.

License: GNU General Public License v3.0

Shell 85.42% Python 14.58%

ubuntu-old-fashioned's Introduction

Ubuntu Old Fashioned

Ubuntu Old Fashioned

Sometimes you don't want the modern comfort of a distributed build system.

Sometimes just just want to look at a directory and be like "build this now".

Sometimes you don't want to use this scary newfangled "cloud" thing.

Sometimes you're in the mood for something nice and sequential.

Well look no more!

This script is meant to let you build ubuntu cloud images locally from a livecd-rootfs checkout.

Want this to be even simpler? Don't want to check anything out yourself?

Use the Ubuntu Bartender to manage the Ubuntu Old Fashioned build for you.

Installation

On Ubuntu (only works for Bionic or Xenial):

The easiest way to install is to use the included setup script:

./setup-old-fashioned

Note: Since old-fashioned relies on launchpad buildd to be available, it will unfortunately not work until that package is made available for other series.

Example

The most simple example to build all ubuntu-cpc images from scratch is:

git clone lp:livecd-rootfs
cd livecd-rootfs
sudo old-fashioned-image-build

The images will be copied to your $HOME in a "build.output/" folder after about 30 minutes.

Speeding things up a bit

To speed up package lookup you can install "squid-deb-proxy" on the host, then point the host to its own proxy by adding a file like the following:

export LXD_ADDRESS=$(ifconfig lxdbr0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
cat > /etc/apt/apt.conf.d/30squid-proxy << EOF
Acquire::http::Proxy "http://$LXD_ADDRESS:8000";
EOF

The script will autodetect proxy settings as long as they are set in a file in /etc/apt/apt.conf.d/ .

Extra hooks

If you would like to build with extra hooks, you need to nest them under the ubuntu-cpc part of the livecd-rootfs tree:

git clone lp:livecd-rootfs
git clone lp:my-extra-hooks
cp -a my-extra-hooks/extra livecd-rootfs/live-build/ubuntu-cpc/hooks

Please make sure your hook files are executable.

Quotes

slangasek> "what kind of glass do you serve an ubuntu old fashioned in? a chrisglass"

ubuntu-old-fashioned's People

Contributors

davidkrauser avatar philroche avatar chrisglass avatar gjolly avatar patrick330602 avatar j5awry avatar toabctl avatar sparkiegeek avatar rcj4747 avatar seb128 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.