Giter Site home page Giter Site logo

serafinomb / docker-compose-satis Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 45 KB

Easily deploy a Satis instance on AWS for your CodeCommit repositories

License: MIT License

docker-compose satis composer package-manager private-repository codecommit

docker-compose-satis's Introduction

Run

Update package info

docker-compose -p satis run satis vendor/composer/satis/bin/satis build satis.json web

AWS CodeCommit IAM configuration

Step 1-8 https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-ssh-unixes.html#setting-up-ssh-unixes-keys

Ideally you would have an IAM user for the package manager and another for your projects.

Usage in a project

  • Update your project's composer.json as follows:
{
    ...
    "repositories": [{
        "type": "composer",
        "url": "http://packages.example.org"
    }],
    ...
}
  • Use Composer as usual.

Mind that the repository download will still happen from CodeCommit. After updating your composer.json file make sure that your SSH public key is configured on AWS and that your .ssh/config file contains the CodeCommit repository host (as seen in the AWS CodeCommit IAM configuration guide). If everything is correctly configured, you'll be able to authenticate to CodeCommit.

Deploy on AWS

You can find a buildspec.yml file that will help you deploy Satis on AWS. This file will take care of building and updating your packages, the artifact should be deployed on a S3 bucket with support for Web Hosting (see https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html)

You'll need to:

  • Create a CodeCommit repository to host this code
  • Create a CodePipeline to build and deploy it
  • Create an S3 bucket and configure it to host a static website
  • Attach to the CodePipeline service role the "AWSCodeCommitReadOnly" policy

This should be enough to deploy your Satis instance.

You can choose whether to run the CodePipeline periodically or everytime one of your packages (hosted on CodeCommit) get updated. You'll need to use CloudWatch Events for either solutions.

docker-compose-satis's People

Contributors

dependabot[bot] avatar serafinomb avatar

Watchers

 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.