Conversation
dominikznidar
left a comment
There was a problem hiding this comment.
Looks good but needs some more polishing
README.md
Outdated
|
|
||
| It is possible to automate deployment of packages by combining this repository with Travis CI. | ||
|
|
||
| Examples of `.travis.yml` and `Makefile` used for autamatic deployment of go project can be found in repository No newline at end of file |
Makefile_example
Outdated
| DESC := "description" | ||
| MAINTAINER := "Maintainer name" | ||
| LICENSE := "License here" | ||
| DEPENDENCIES := "" #Add dependencies here and add '-d $(DEPENDENCIES)' to fpm in pkg/% block |
There was a problem hiding this comment.
Please follow the already existing formatting.
deb/Makefile
Outdated
| @@ -0,0 +1,10 @@ | |||
| ZIPPED := s3apt.py gnupg.py debian/* | |||
There was a problem hiding this comment.
could be formatted in a better way :)
deb/Makefile
Outdated
| ZIPPED := s3apt.py gnupg.py debian/* | ||
|
|
||
|
|
||
| set: requires package |
There was a problem hiding this comment.
should set be replaced with all?
deb/Makefile
Outdated
| pip install -t . -r requirements.txt | ||
|
|
||
| package: | ||
| zip code.zip $(ZIPPED) No newline at end of file |
There was a problem hiding this comment.
It's always a good idea to also add clean target that removes all the clutter you wouldn't commit anyway generated by other make commands. Additionally those same files should be listed in .gitignore. (I'm mainly talking about make requires)
deb/README.md
Outdated
|
|
||
| Compress all needed files | ||
| ``` | ||
| zip code.zip s3apt.py gnupg.py debian/* |
deb/README.md
Outdated
| ``` | ||
| git clone https://github.com/tactycal/lambdaRepos.git | ||
| cd lambdaRepos/deb | ||
| pip install -t . -r requirements.txt |
There was a problem hiding this comment.
You have a make command in place for this
There was a problem hiding this comment.
On the other hand, just use make commands in the readme.
deb/README.md
Outdated
| * Object Removed(All), suffix 'deb' | ||
| * If you are using certain directory as a repo, set it as prefix | ||
|
|
||
| Upload `code.zip` to lambda function |
There was a problem hiding this comment.
Would it be possible to replace this with AWS' CLI?
deb/s3apt.py
Outdated
| build_release_file(prefix) | ||
|
|
||
| #Sign Release file | ||
| if not os.environ['GPG_KEY']=='': |
There was a problem hiding this comment.
os.environ['GPG_KEY'] != '' is a more common option
deb/s3apt.py
Outdated
| release_file = release_file +(str(stat.st_size) + ' Packages\nSHA256:\n '+sha256 ) | ||
| for i in range(0,17-len(str(stat.st_size))): | ||
| release_file = release_file +(' ') | ||
| release_file = release_file +(str(stat.st_size) + ' Packages') |
There was a problem hiding this comment.
All the repetitions of release_file make this really hard to read.
release_file = release_filecould be replaced withrelease_file +=str(stat.st_size) + ' Packages\nSHA1:\n '+sha1could be replaced with"%d Packages\nSHA1:\n %s" % stat.st_size, sha1
7e27b1c to
cf93138
Compare
It didn't work correctly and it interupted with overwrittign packages
Request for merge of 'dev' branch to 'master'
Use of features is described in deb/Readme.md