GithubHelp home page GithubHelp logo

bastion's Introduction

Bastion

Run your own Packagist server, so that you can do Composer update locally. Oh and it also creates RPM packages for your applications.

Documentation

Please see the documentation at http://bastionrpm.com

Quick setup - satis repo

  • Run ./src/bastion.php It will ask you to provide a Github access token

  • Edit bastionConfig.php to list the Github repos you want to be available to install.

  • Run ./src/bastion.php again. Now that everything is stup it will download the tagged versions of the libraries as zip balls, before uploading them to S3.

You will now have a satis repository uploaded to S3. You can also run this satis provider locally, with the PHP builtin server php -S localhost:8000 -t zipsOutput/ .

Quick setup - setting up S3 static satis DNS

  • Setup a bucket in your preferred region, with a name like satis.companyname.com

  • Setup a cname to point satis.companyname.com to satis.companyname.com.s3.amazonaws.com

And that's it. The access in this example is done via an ACL to allow certain IP address. If you have the capability I would suggest using an private virtual network to avoid the need for any over the internet access.

Setting up RPM packager

Insert instruction here

bastion's People

Contributors

danack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bastion's Issues

Check artifacts aren't being downloaded twice.

Download complete of aws/aws-sdk-php/aws_aws-sdk-php_3.0.0-beta.1
Download complete of aws/aws-sdk-php/aws_aws-sdk-php_3.0.0-beta.1
Download complete of aws/aws-sdk-php/aws_aws-sdk-php_2.7.1
Download complete of aws/aws-sdk-php/aws_aws-sdk-php_2.7.1

Need to add support for Github's crappy pagination

   if ($repoTags->pager) {
        $newPages = $repoTags->pager->getAllKnownPages();
        foreach ($newPages as $newPage) {
            $pages[$newPage] = false;
        }
    }

For the record, it's crappy because it's a completely different api call to the original listRepoTags call.

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.