You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
additional "s3" protocol for apt so you can host your giant apt repository in s3 on the cheap!
1
+
# apt-s3
4
2
5
-
Author: Kyle Shank
3
+
Additional "s3" protocol for apt so you can host your giant apt repository in s3 on the cheap!
6
4
7
5
We use this for pressflip.com to deploy and distribute all of our software. apt is a great packaging system and s3 is a great place to backup/store static files. apt-s3 is especially useful and fast if you are hosting your servers within EC2.
8
6
9
-
THIS NEEDS MORE DOCUMENTATION OBVIOUSLY
7
+
Original Author: Kyle Shank
8
+
Contributors: Cliff Moon (@cliffmoon on GH), Jens Braeuer (@jbraeuer)
9
+
Documenter: Susan Potter (@mbbx6spp on GH)
10
10
11
-
TODO
12
-
----
13
-
* Makefile
14
-
* Package up binaries
15
-
* Include uploader script to get repository into s3 bucket
16
-
* Explain this a little more
11
+
## Building
17
12
18
-
This has to be compiled with the source version of apt.
13
+
Before building this project on Ubuntu (tested on 11.10) you will need to install the following packages:
To build this project you simply run `make`. It will produce a binary named `s3` under the `src/` dir.
18
+
19
+
## Installing
23
20
24
21
Once compiled, the resulting s3 binary must be placed in /usr/lib/apt/methods/ along with the other protocol binaries.
25
22
26
23
Finally, this is how you add it to the /etc/apt/sources.list file if you want your credentials in the url:
27
24
28
-
deb s3://AWS_ACCESS_ID:[AWS_SECRET_KEY_IN_BRACKETS]@s3.amazonaws.com/BUCKETNAME prod main
25
+
deb s3://AWS_ACCESS_ID:[AWS_SECRET_KEY_IN_BRACKETS]@s3.amazonaws.com/BUCKETNAME prod main
26
+
27
+
otherwise leave off the credentials and it will draw them from the environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_KEY_ID`.
29
28
30
-
otherwise leave off the credentials and it will draw them from the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_KEY_ID.
29
+
Simply upload all of your .deb packages and Packages.gz file into the s3 bucket you chose with the file key mapping that matches the file system layout.
31
30
32
-
Simply upload all of your .deb packages and Packages.gz file into the s3 bucket you chose with the file key mapping that matches the file system layout.
31
+
## TODO
32
+
33
+
* Package up binaries
34
+
* Include uploader script to get repository into s3 bucket
0 commit comments