Code Monkey home page Code Monkey logo

project-starter's Introduction

My Project Starter

Basically, I’m tired of having a million different projects with different file structures and files in weird locations. So I’m going to start creating all my projects going forward with this script and project structure to help keep me organized

Build File structure

Prereq’s
  1. Full directory path

  2. Project name

  3. Number in cluster

  4. Hostname for cluster

Build
$ /home/jmarley/projects/project\ starter/project_starter.sh \
<project-dir> <project-name> <number-in-cluster> <cluster-hostname>
Note
This will create the basic file structure for my project WARNING: Please make sure that you are using the latest atomic container

Build clustered nodes

Copy the latest fedora cloud image
$ cp ~/applications/linux/fedora-cloud/installers/Fedora-Cloud-Atomic-23-20151030.x86_64.qcow2 ./cluster/ftp_minion01/images/Fedora-Cloud-Atomic-23-20151030-ftp_server.x86_64.qcow2
Update cloud-init file for what we want to include in the image (e.g. password, ssh pub key)
$ vim <project-dir>/<project-name>/cluster/<cluster-hostname>{number-in-cluster}/user-data

TODO, I want to bass this off of cloud-init and fedora atomic

Create isos for each cluster
$ genisoimage -output <cluster-dir>/iso/<iso-nam>.iso -volid cidata -joliet -rock user-data meta-data
Add isos to kvm for each cluster member
$

project-starter's People

Watchers

J. Marley 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.