Skip to content

Commit

Permalink
Add Aptly API
Browse files Browse the repository at this point in the history
  • Loading branch information
urpylka committed Apr 13, 2020
1 parent ddebc2f commit 5ae6dab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,10 @@ RESP2=`curl -I --max-time 2 http://localhost:80/aptly_repo_signing.key 2>/dev/nu
[[ $(echo ${RESP2} | grep Content-Length | awk -F ': ' '{print $2}') > 2000 ]] \
&& { echo2 "Filesize is ok" "GREEN"; } \
|| { echo2 "Error: Filesize is too small" "RED"; exit 1; }


RESP3=`curl http://localhost:8080/api/version 2>/dev/null`

[[ $(echo ${RESP3} | grep "Version") ]] \
&& { echo2 "Aptly is ${RESP3}" "GREEN"; } \
|| { echo2 "Failed to connect to Aptly API" "RED"; exit 1; }
7 changes: 7 additions & 0 deletions assets/supervisord.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ command=/usr/sbin/nginx -g "daemon off;"
redirect_stderr=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0

[program:aptly-api]
command=/usr/bin/aptly api serve -listen=:8080
environment=GIN_MODE=release
redirect_stderr=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0

0 comments on commit 5ae6dab

Please sign in to comment.