Created
October 22, 2015 00:21
-
-
Save dreamcat4/59ecde3808ed5c1760d9 to your computer and use it in GitHub Desktop.
tvh v4.0.6 fix - crane provision -v tvhbs - build and upload log.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crane provision -v tvhbs | |
Using configuration file `/home/id/dev/dpi/crane.yml` | |
Command will be applied to: tvhbs | |
Building image dreamcat4/tvh.ubuntu.build:stable ... | |
--> docker build --rm --tag=dreamcat4/tvh.ubuntu.build:stable tvh/ubuntu.build/stable | |
Sending build context to Docker daemon 9.728 kB | |
Step 0 : FROM dreamcat4/tvh.ubuntu.build.deps | |
---> 8e92f4912164 | |
Step 1 : MAINTAINER dreamcat4 <dreamcat4@gmail.com> | |
---> Using cache | |
---> 9b3b76514ee6 | |
Step 2 : WORKDIR /build/tvheadend | |
---> Using cache | |
---> 5b87e422d8a2 | |
Step 3 : RUN git pull && tvh_last_tag="$(git tag | grep v[456789].[02468] | sort | tail -1)" && if [ "$tvh_last_tag" ]; then git checkout "$tvh_last_tag" ; else echo "error: no git tag for v${tvh_major_ver}.x stable" && false ; fi | |
---> Using cache | |
---> 9aff2a85b050 | |
Step 4 : RUN if [ -e "Autobuild/trusty-amd64.sh" ]; then target=trusty; else target=precise; fi && AUTOBUILD_CONFIGURE_EXTRA="--enable-libffmpeg_static --enable-hdhomerun_static --enable-dvbcsa --enable-bundle" ./Autobuild.sh -w /build/work -t ${target}-amd64 && mv /build/*.deb /out && mv /build/*.changes /out && rm -rf /build | |
---> Using cache | |
---> a52d7adbb3ae | |
Step 5 : WORKDIR /out | |
---> Using cache | |
---> dc5c9c344252 | |
Step 6 : ADD upload-to-bintray /bin/ | |
---> f89cba4e9531 | |
Removing intermediate container 607c665569bb | |
Step 7 : RUN chmod +x /bin/upload-to-bintray | |
---> Running in 6da4a7d65d2d | |
---> e635819e3cae | |
Removing intermediate container 6da4a7d65d2d | |
Step 8 : ADD bintray-env /out/ | |
---> 89c7fffed18d | |
Removing intermediate container d8e62819c364 | |
Step 9 : RUN upload-to-bintray | |
---> Running in 07bf56a8b13a | |
+ find /out -name tvheadend_*.deb | |
+ tvh_deb=/out/tvheadend_4.0.6~trusty_amd64.deb | |
+ find /out -name tvheadend_*.changes | |
+ tvh_changes=/out/tvheadend_4.0.6~trusty_amd64.changes | |
+ find /out -name tvheadend-dbg_*.deb | |
+ tvh_dbg_deb=/out/tvheadend-dbg_4.0.6~trusty_amd64.deb | |
+ echo /out/tvheadend_4.0.6~trusty_amd64.deb | |
+ sed -e s|.*/tvheadend_|| -e s|~precise.*|| -e s|~trusty.*|| | |
+ tvh_ver=4.0.6 | |
+ grep -qv [^0-9.] | |
+ echo 4.0.6 | |
+ deb_dist=testing,stable | |
+ echo curl -sS -i -udreamcat4:${bintray_key} -H Content-Type: application/json -X POST https://api.bintray.com/packages/dreamcat4/ubuntu/tvheadend/versions --data { "name": "4.0.6", "desc": "Tvheadend on ubuntu - https://tvheadend.org/ | |
Stable Releases | |
# 1. Add Bintray's GPG key: | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 | |
# 2. Add this repo to your sources.list: | |
# tvheadend - Stable Releases | |
echo deb https://dl.bintray.com/dreamcat4/ubuntu stable main | sudo tee -a /etc/apt/sources.list | |
", } | |
curl -sS -i -udreamcat4:${bintray_key} -H Content-Type: application/json -X POST https://api.bintray.com/packages/dreamcat4/ubuntu/tvheadend/versions --data { "name": "4.0.6", "desc": "Tvheadend on ubuntu - https://tvheadend.org/ | |
Stable Releases | |
# 1. Add Bintray's GPG key: | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 | |
# 2. Add this repo to your sources.list: | |
# tvheadend - Stable Releases | |
echo deb https://dl.bintray.com/dreamcat4/ubuntu stable main | sudo tee -a /etc/apt/sources.list | |
", } | |
+ tr -d \" | |
+ curl -sS -i -udreamcat4:0482ef1c625aca30c4b68ac48feb1a9280c35807 -H Content-Type: application/json -X POST https://api.bintray.com/packages/dreamcat4/ubuntu/tvheadend/versions --data { "name": "4.0.6", "desc": "Tvheadend on ubuntu - https://tvheadend.org/ | |
Stable Releases | |
# 1. Add Bintray's GPG key: | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 | |
# 2. Add this repo to your sources.list: | |
# tvheadend - Stable Releases | |
echo deb https://dl.bintray.com/dreamcat4/ubuntu stable main | sudo tee -a /etc/apt/sources.list | |
", } | |
+ bintray_api_resp=HTTP/1.1 409 Conflict | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:50:10 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:Version 4.0.6 for path 'dreamcat4/ubuntu/tvheadend already exists} | |
+ + cut -d -f2 | |
echo HTTP/1.1 409 Conflict | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:50:10 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:Version 4.0.6 for path 'dreamcat4/ubuntu/tvheadend already exists} | |
+ head -1 | |
+ bintray_api_http_status=409 | |
+ echo HTTP/1.1 409 Conflict | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:50:10 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:Version 4.0.6 for path 'dreamcat4/ubuntu/tvheadend already exists} | |
+ grep -qi already exists | |
+ echo Aborting. Version 4.0.6 of tvheadend has already been upladed to bintray. | |
Aborting. Version 4.0.6 of tvheadend has already been upladed to bintray. | |
+ echoAPI response: ^HTTP/1.1 409 Conflict | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:50:10 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:Version 4.0.6 for path 'dreamcat4/ubuntu/tvheadend already exists}$ | |
API response: ^HTTP/1.1 409 Conflict | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:50:10 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:Version 4.0.6 for path 'dreamcat4/ubuntu/tvheadend already exists}$ | |
Upload error. Could not create a new pkg version on bintray. | |
API response: ^HTTP/1.1 409 Conflict | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:50:10 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:Version 4.0.6 for path 'dreamcat4/ubuntu/tvheadend already exists}$ | |
+ [ 409 -ge 400 ] | |
+ echo Upload error. Could not create a new pkg version on bintray. | |
+ echo API response: ^HTTP/1.1 409 Conflict | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:50:10 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:Version 4.0.6 for path 'dreamcat4/ubuntu/tvheadend already exists}$ | |
+ basename /out/tvheadend_4.0.6~trusty_amd64.deb | |
+ deb_repo_path=pool/main/t/tvheadend/tvheadend_4.0.6~trusty_amd64.deb | |
+ echo curl -sScurl -sS -i -T /out/tvheadend_4.0.6~trusty_amd64.deb -udreamcat4:${bintray_key} -H X-Bintray-Version:4.0.6 https://api.bintray.com/content/dreamcat4/ubuntu/tvheadend/4.0.6/pool/main/t/tvheadend/tvheadend_4.0.6~trusty_amd64.deb;deb_distribution=testing,stable;deb_component=main;deb_architecture=amd64;publish=1;override=1 | |
-i -T /out/tvheadend_4.0.6~trusty_amd64.deb -udreamcat4:${bintray_key} -H X-Bintray-Version:4.0.6 https://api.bintray.com/content/dreamcat4/ubuntu/tvheadend/4.0.6/pool/main/t/tvheadend/tvheadend_4.0.6~trusty_amd64.deb;deb_distribution=testing,stable;deb_component=main;deb_architecture=amd64;publish=1;override=1 | |
+ tr -d \" | |
+ curl -sS -i -T /out/tvheadend_4.0.6~trusty_amd64.deb -udreamcat4:0482ef1c625aca30c4b68ac48feb1a9280c35807 -H X-Bintray-Version:4.0.6 https://api.bintray.com/content/dreamcat4/ubuntu/tvheadend/4.0.6/pool/main/t/tvheadend/tvheadend_4.0.6~trusty_amd64.deb;deb_distribution=testing,stable;deb_component=main;deb_architecture=amd64;publish=1;override=1 | |
+ bintray_api_resp=HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:52:08 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
+ cut -d -f2 | |
+ head -1 | |
+ echo HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:52:08 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:52:08 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
+ bintray_api_http_status=100 | |
+ [ 100 -ge 400 ] | |
+ echo HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:52:08 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
+ basename /out/tvheadend_4.0.6~trusty_amd64.changes | |
+ deb_repo_path=pool/main/t/tvheadend/tvheadend_4.0.6~trusty_amd64.changes | |
+ echo curl -sS -i -T /out/tvheadend_4.0.6~trusty_amd64.changes -udreamcat4:${bintray_key} -Hcurl -sS -i -T /out/tvheadend_4.0.6~trusty_amd64.changes -udreamcat4:${bintray_key} -H X-Bintray-Version:4.0.6 https://api.bintray.com/content/dreamcat4/ubuntu/tvheadend/4.0.6/pool/main/t/tvheadend/tvheadend_4.0.6~trusty_amd64.changes;deb_distribution=testing,stable;deb_component=main;deb_architecture=amd64;publish=1;override=1 | |
X-Bintray-Version:4.0.6 https://api.bintray.com/content/dreamcat4/ubuntu/tvheadend/4.0.6/pool/main/t/tvheadend/tvheadend_4.0.6~trusty_amd64.changes;deb_distribution=testing,stable;deb_component=main;deb_architecture=amd64;publish=1;override=1 | |
+ curl -sS -i -T /out/tvheadend_4.0.6~trusty_amd64.changes -udreamcat4:0482ef1c625aca30c4b68ac48feb1a9280c35807 -H X-Bintray-Version:4.0.6 https://api.bintray.com/content/dreamcat4/ubuntu/tvheadend/4.0.6/pool/main/t/tvheadend/tvheadend_4.0.6~trusty_amd64.changes;deb_distribution=testing,stable;deb_component=main;deb_architecture=amd64;publish=1;override=1 | |
+ tr -d \" | |
+ bintray_api_resp=HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:52:11 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
+ cut -d -f2 | |
+ head -1 | |
+ echo HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:52:11 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
+ bintray_api_http_status=100 | |
+ [ 100 -ge 400 ] | |
+ echo HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:52:11 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
+ basename /out/tvheadend-dbg_4.0.6~trusty_amd64.deb | |
HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:52:11 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
curl -sS -i -T /out/tvheadend-dbg_4.0.6~trusty_amd64.deb -udreamcat4:${bintray_key} -H X-Bintray-Version:4.0.6 https://api.bintray.com/content/dreamcat4/ubuntu/tvheadend/4.0.6/pool/main/t/tvheadend/tvheadend-dbg_4.0.6~trusty_amd64.deb;deb_distribution=testing,stable;deb_component=main;deb_architecture=amd64;publish=1;override=1 | |
+ deb_repo_path=pool/main/t/tvheadend/tvheadend-dbg_4.0.6~trusty_amd64.deb | |
+ echo curl -sS -i -T /out/tvheadend-dbg_4.0.6~trusty_amd64.deb -udreamcat4:${bintray_key} -H X-Bintray-Version:4.0.6 https://api.bintray.com/content/dreamcat4/ubuntu/tvheadend/4.0.6/pool/main/t/tvheadend/tvheadend-dbg_4.0.6~trusty_amd64.deb;deb_distribution=testing,stable;deb_component=main;deb_architecture=amd64;publish=1;override=1 | |
+ curl -sS -i -T /out/tvheadend-dbg_4.0.6~trusty_amd64.deb -udreamcat4:0482ef1c625aca30c4b68ac48feb1a9280c35807 -H X-Bintray-Version:4.0.6 https://api.bintray.com/content/dreamcat4/ubuntu/tvheadend/4.0.6/pool/main/t/tvheadend/tvheadend-dbg_4.0.6~trusty_amd64.deb;deb_distribution=testing,stable;deb_component=main;deb_architecture=amd64;publish=1;override=1 | |
+ tr -d \" | |
+ bintray_api_resp=HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:53:11 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
+ + head -1 | |
cut+ echo HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:53:11 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
-d -f2 | |
+ bintray_api_http_status=100 | |
+ [ 100HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:53:11 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
-ge 400 ] | |
+ echo HTTP/1.1 100 Continue | |
HTTP/1.1 201 Created | |
Server: nginx | |
Date: Wed, 21 Oct 2015 23:53:11 GMT | |
Content-Type: application/json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-RateLimit-Limit: 1440 | |
X-RateLimit-Remaining: 295 | |
{message:success} | |
---> fc04cb7d5e95 | |
Removing intermediate container 07bf56a8b13a | |
Successfully built fc04cb7d5e95 | |
id@emachines-e520:~/dev/dpi$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment