Coder Social home page Coder Social logo

danielolson5 / dev_container Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kbaseattic/dev_container

0.0 1.0 0.0 243 KB

This repository is a container for developing and deploying KBase modules. To use this, you must already have a "runtime" directory, which contains the neccesary binaries and libraries. For an idea of what is expected to be in this runtime, consult the [bootstrap repository](https://git.kbase.us/bootstrap.git/).

License: MIT License

Makefile 36.56% Shell 62.82% Perl 6 0.62%

dev_container's Introduction

Development Container

This repository is a container for developing KBase modules. To use this, you must already have a "runtime" directory, which contains the neccesary binaries and libraries. For an idea of what is expected to be in this runtime, consult the bootstrap repository.

Usage

  1. Clone this repository onto your development machine:

     $ git clone [email protected]:dev_container.git
     $ cd dev_container
    
  2. The "deployment directory" needs to be a directory where you have permissions to write. By default, this is a directory called /kb/deployment. If you have sufficient permissions to create this directory, then you may skip this step. To change the directory, open the "Makefile" and replace:

     TARGET = /kb/deployment
    

with the path to where you would like to deploy.

  1. Run the bootstrap script with the path to a "runtime directory" as the first argument.

     $ ./bootstrap /kb/runtime
    
  2. Source the user-env.sh script in the "development directory". This file is created during the bootstrap script in step 2.

     $ source user-env.sh
    
  3. Option step if no modules have been cloned into the modules sub directory. This will create directories and files in the deployment directory for every module.

    $ make deploy
    
  4. Clone "module repositories" into the modules directory:

     $ cd modules
     $ git clone [email protected]:idserver.git
    
  5. Do development work in a module.

  6. Goto 2.

Definitions

  • runtime directory: By default this is /kb/runtime.
    This is a directory that contains "bin", "lib", "man", "etc" subdirectories containing third-party software that KBase repositories depend upon. E.g. a perl binary and Perl modules. See the [bootstrap repository][1] for what normally goes here.

  • deployment directory: This is the directory that contains "bin", "lib", "man", "etc" subdirectories for KBase developed code.

  • development directory: This is the directory where new code is written and developed. It is customary for modules to be cloned from the git repository into the modules directory of the development directory. As code is modified, it is pushed back to the git repository.

[1] : https://git.kbase.us/bootstrap.git/ "bootstrap repository"

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.