Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fb live url to venue, adjust userdata creation
I added the db migration and the schema update. Due to a bug/undocumented behavior of ffmpeg with external images as source, we are saving an image during the build of the image. I adjusted userdata.sh.erb to render the corrent userdata.sh that spawns a ffmpeg container with the fb live url from of the venue.
- Loading branch information
1 parent
f397e78
commit 136c98b
Showing
5 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddFacebookLiveUrlToVenues < ActiveRecord::Migration | ||
def change | ||
add_column :venues, :facebook_live_url, :string | ||
end | ||
end |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM jrottenberg/ffmpeg | ||
|
||
MAINTAINER Josef Erben "josef@voicerepublic.com" | ||
|
||
RUN apt-get install wget -y && \ | ||
wget -O /home/image.png https://www.seeklogo.net/wp-content/uploads/2016/06/Facebook-Live-logo.png | ||
|
||
CMD ["--help"] | ||
ENTRYPOINT ["ffmpeg"] | ||
ENV LD_LIBRARY_PATH=/usr/local/lib |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
DIR="$(cd "$(dirname "$0")" && pwd)" | ||
|
||
cd $DIR | ||
|
||
docker build -t jerben/ffmpeg . |
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