satis icon indicating copy to clipboard operation
satis copied to clipboard

Remote repositories

Open javihgil opened this issue 8 years ago • 2 comments

Hello everyone!

I think it would be great to can build remote repositories. For example, storing files in AWS, GCloud, ssh,... This would provide easy storage, without needing configurate custom services to serve distribution packages. Actually, if you want to do this, you have to store a full repository and sync against your target storage service.

It could be like:

# satis-config.json
{
    "name": "My composer repository at AWS",
    "homepage": "https://my-satis-test-repository.s3-eu-west-1.amazonaws.com",
    ...
    "archive": {
        "directory": "dist",
        "prefix-url": "https://my-satis-test-repository.s3-eu-west-1.amazonaws.com"
    }
}
$ satis build satis-config.json s3://my-satis-test-repository`
Scanning packages
Creating remote downloads in 's3://my-satis-test-repository/dist'   
...
Wrote packages json s3://my-satis-test-repository/include/all$11a4509fabb4253e23ad6d3b04f27182fc251f40.json
Writing s3://my-satis-test-repository/packages.json
Writing web view 

This would require configure some authentication methods that could be located in $HOME/.composer/auth.json

What do you think?

javihgil avatar Apr 01 '16 10:04 javihgil

Could be interesting. But Satis is mostly maintained and updated by its users. Composer as an organisation does not spend a whole lot of time on it. We will accept almost any PR however, so feel free to contribute :-)

alcohol avatar Apr 01 '16 10:04 alcohol

For what it's worth, I just use a simple script, ex.:

./satis/bin/satis build satis.json ../deploy-s3/composer
aws s3 sync --delete --recursive --follow-symlinks --acl public-read ../deploy-s3/composer/ s3://my-satis-repo/

abcarroll avatar Feb 08 '17 07:02 abcarroll