mirror of
https://github.com/asapach/peerflix-server.git
synced 2026-04-25 22:55:51 +03:00
[GH-ISSUE #89] Modify Docker #74
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stevetuk71 on GitHub (Nov 19, 2016).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/89
Hi I have been using peerflix-server for sometime and think its brilliant. Thanks.
I modified the index.html and main.html file to allow me to create a cast icon and push the URL of the media link to Chromecast URL player, this allows me to play the media directly from my chromcast.
I have recently been looking at Docker and thought this would be a better way than having to modify the files directly but have failed miserably.
I pulled and started a container and used docker exec to modify the files, then used commit to create a new image. when starting a new container from the modified image, it still doesn't have my modifications. I also tried modifying the files directly in the Docker volume under aufs/mnt.
Probably my noobie understanding of Docker, but any help would be appreciated.
@Porco-Rosso commented on GitHub (Nov 19, 2016):
I would try creating a fork of peerflix-server with your changes, and then pulling that into a docker image you create.
Docker isn't designed to persist changes, from what I gather.
@asapach commented on GitHub (Nov 19, 2016):
Pull request is welcome. I don't own a Chromecast, but would be happy to merge your changes.
@stevetuk71 commented on GitHub (Nov 20, 2016):
Thanks Aliaksei, but would expect it needs a little work prior to a merge :-)
In index
obviously the domain.suffix is unique.
in main
in style override.css
.cast-small {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAhCAYAAABX5MJvAAAEOUlEQVRYw+1XW2hcRRj+ZubsOWd3s5vNJiaxRkottQr64OWlKgXxxRcx9KLkQSEmolSElEBoCq311ogQWwVN1WKlUl9KasT60tI+6AraiAREkdhor5q0ue1u9nJ2Z/7fh7OpuRgtJNv4kB9+zmHOP/988803888BVuz/ZK1dCbR2JZZt/Gff+AYWABzsfAgdPQlkCDKXAcMFKjNAKgJEAGQ1EMgADMCNAOksQOQnUQAcBjJBQGgAQQBT8IMlwFHAzQGUB2zhxwPApxf6eeTAdny440GIaUQtexOP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P9vlLfOz0qJ8Ymg8aQAOBZAUuSIcuQgSVVXkhpG2OUMaaotfZee/qulb/GFSur/QXOuSy0J6FFTgAAAABJRU5ErkJggg==);
height: 33px;
width: 33px;
}
.cast-medium-white {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAfCAMAAAAocOYLAAAB+1BMVEUAAACWj4KYkYTU0crz9vv19/v7//////8AAAD19fT////m5OD///8AAAAMAAD///8AAAA2Jw84KhJENx/s6+j////l4+D08/H+/v7///////+blYj////h391bTTduZFKCeWn///+Fe2r///9zallzbFv5+fpzaFRzaFVzaVZ0alerpZp5cF6OhniAd2fb292Ad2fS0tL8/f2QiHqEfGyDe2yIgHGNhXfPy8WjnZGgmo6inJCjnJGclYnn5uO+urLp6uz////Ixb+knpPKycXb2tX+//+YkIT////////FxMH49/bS0M/k4t69urTW08/////Oy8X5+fmknpL+/v7////MzMr////////////9/fz///////+0r6bh4N7Lx8D+/v3+/v76+vr19fX///+jnpX////w8O7///+2s63Jxr6yraTb2dTe3dm0saq2saj////////////+///n5+TQz8zS0MvS0M3T0czU0czU0s3V0czV0szV0s3AvLXh39zV0s38/f6tqJ3f3dj+/f3c2tX9/f2qpZrPzsvQzcfQzsrS0c/p5+Svqp/OzsrOzsvPzsrPzsve3Nf////U0s7////y8fD+//////++urP7+/v////////Oy8XPzMbQzcfb2NTo6Ojp5+Tp6ejq6ebz8vH+/v///v7///8zs/QUAAAAnXRSTlMAAAAAAAAAAAEBAQICBAQEBQUFBQYGBwgICAkMDxASFRUZGhodHR0eHh4eISMmLTI3ODk6P0JCQ0RHSEhITE5PVVtsbnBwd4CCg4SEhYyOkpKTk5WYmJubnp+hoaKjp6iqra+ws7S1ur3FxcnM0NHR0dTZ2tzh4eHh4eHh4eHi4uPk5+fn6Ojs7e3t7e3u7u7u7u7v8fHy9fb3+vv+v3M77gAAAT1JREFUeNq9z2VTwwAMgOGgg7Hi7jCgG+7uPtzd3V0GDBvuLe4u+Zm0jDu4dt0+wfv1Se4S+OtEOtWYGXCX+ggkdQAAcT0KNsx6tbCvWGv88f6B190r4iKh8YOUhGROSYm9iKpvV9uCAScwb/zZV9sALzHjKp2uf39ej8+wXiXs04xDzvL5lp12VxJglVFYXpJnxndJ09f9Ll14OV4bACIT7f85tjwh3k5GCv0via/sPr3B1TAw0uquPdiXWrCJ+0HAqQ5xgQCnznfE3PQzHPBQKPJ/pRhDnCPAIq3/Ba+LGvAtawK5KZn72zoiLnCq9AQHy3g+S4BzO9ZU4HPr+sdS9h5FUzQbRW0f0rv00Ygl2BcfX2Wu7TQPbYwGe8pIeSDJJCP9SdJPTvqaAnjFxHmHx4aERke5gZ4M4d/7BD5SwUQN1YI+AAAAAElFTkSuQmCC);
height: 31px;
width: 31px;
float: right;
}
@asapach commented on GitHub (Nov 20, 2016):
@stevetuk71 a couple of notes:
createCastLinks()clashes with the rest of the codechromecast.css@stevetuk71 commented on GitHub (Nov 21, 2016):
Hi,
Thanks for the feedback.
I am not familiar with Angular. I will look into changing.
I do actually install castplayer.js locally. Only used the external reference to point to a working example of the chromecast URL :-)
Apparently you can check for the presence of "CrKey" in the user agent of the browser.. Although sending the URL to the selected cast, will still be a manual choice.
chromecast.css does make more sense :-)
@pataquets commented on GitHub (Mar 28, 2020):
@stevetuk71 : I love the idea, it would be a great addition.
Since it has been some time since you posted the issue, I would encourage you to push the changes to your fork, no matter how finished or not they are. Even if you're no longer interested in pushing them, somebody else might be and this would enable them to pick up where you left. It would be a pity that whatever you have accomplished ended up wasted or lost. Don't worry if it's not still polished nor elegant, that's OK and you're not even required to finish it yourself ;)
I guess you made it work already, so it will bi useful no matter what.
Also, if you're still interested in creating a Docker image, the easiest way to solve your need would be to to create an Automated Build on Docker Hub. It's very easy, indeed, but ping me anyway if you need help.
HTH.