forked from microsoft/ftl-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(ftl-sdk): updating to new best endpoint and docker builds Added Docker Build Added call to new Best v2 endpoint Added more verbose logging and error handling Added use of linter Increase the length of vendor name and version * adding execute into git for scripts Co-authored-by: NathanielvonSprecken-MS <[email protected]>
- Loading branch information
1 parent
aad863d
commit 8dfff5f
Showing
21 changed files
with
435 additions
and
75 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,2 @@ | ||
.git | ||
**/.git |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
build | ||
.vscode/* | ||
!.vscode/settings.json | ||
*.orig | ||
.vs/* | ||
publish | ||
build-output |
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,46 @@ | ||
FROM debian:9 | ||
|
||
RUN apt-get update -y | ||
RUN apt-get install wget -y | ||
RUN apt-get install -y cmake | ||
RUN apt-get install git -y | ||
RUN apt-get install build-essential -y | ||
RUN apt-get install libssl-dev -y | ||
RUN apt-get install libcurl4-openssl-dev -y | ||
RUN apt-get upgrade ca-certificates -y | ||
|
||
RUN apt-get install -y jq curl | ||
|
||
RUN useradd ftl-user | ||
|
||
RUN mkdir -p /opt/ftl-sdk/vid | ||
|
||
RUN chown -R ftl-user:ftl-user /opt/ftl-sdk | ||
|
||
WORKDIR /opt/ftl-sdk/vid | ||
|
||
ARG VIDEO_URL=https://videotestmedia.blob.core.windows.net/ftl/sintel.h264 | ||
RUN wget ${VIDEO_URL} | ||
ARG AUDIO_URL=https://videotestmedia.blob.core.windows.net/ftl/sintel.opus | ||
RUN wget ${AUDIO_URL} | ||
|
||
COPY --chown=ftl-user:ftl-user ./CMakeLists.txt /opt/ftl-sdk/CMakeLists.txt | ||
COPY --chown=ftl-user:ftl-user ./libcurl /opt/ftl-sdk/libcurl | ||
COPY --chown=ftl-user:ftl-user ./libjansson /opt/ftl-sdk/libjansson | ||
COPY --chown=ftl-user:ftl-user ./libftl /opt/ftl-sdk/libftl | ||
COPY --chown=ftl-user:ftl-user ./Doxyfile /opt/ftl-sdk/Doxyfile | ||
COPY --chown=ftl-user:ftl-user ./ftl_app /opt/ftl-sdk/ftl_app | ||
COPY --chown=ftl-user:ftl-user ./get-video /opt/ftl-sdk/get-video | ||
COPY --chown=ftl-user:ftl-user ./get-audio /opt/ftl-sdk/get-audio | ||
COPY --chown=ftl-user:ftl-user ./scripts /opt/ftl-sdk/scripts | ||
|
||
USER ftl-user | ||
|
||
WORKDIR /opt/ftl-sdk | ||
|
||
RUN ./scripts/build | ||
|
||
COPY --chown=ftl-user:ftl-user ./start-stream /opt/ftl-sdk/start-stream | ||
|
||
ENTRYPOINT ["./start-stream"] | ||
|
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,16 @@ | ||
#!/bin/bash | ||
set -ue | ||
|
||
OUTPUT=$1 | ||
|
||
curl 'https://www.dropbox.com/s/s2r6lggopt9ftw5/sintel.opus' \ | ||
-H 'authority: www.dropbox.com' \ | ||
-H 'cache-control: max-age=0' \ | ||
-H 'upgrade-insecure-requests: 1' \ | ||
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36' \ | ||
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' \ | ||
-H 'accept-encoding: gzip, deflate, br' \ | ||
-H 'accept-language: en-US,en;q=0.9' \ | ||
-H 'cookie: __Host-ss=UsByWdIPus; locale=en; gvc=MjU4NzQxNzA3MDE4MjU3MDIzNDY0Nzc2NjAxNDg5MTU4MTg0MjYz; seen-sl-signup-modal=VHJ1ZQ%3D%3D; t=0-Hq7tZ1TDyj-aBNiWYv8YQl; __Host-js_csrf=0-Hq7tZ1TDyj-aBNiWYv8YQl; seen-sl-download-modal=VHJ1ZQ%3D%3D' \ | ||
--compressed > $OUTPUT | ||
|
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,15 @@ | ||
#!/bin/bash | ||
set -ue | ||
|
||
OUTPUT=$1 | ||
|
||
curl 'https://www.dropbox.com/s/ruijibs0lgjnq51/sintel.h264' \ | ||
-H 'authority: www.dropbox.com' \ | ||
-H 'cache-control: max-age=0' \ | ||
-H 'upgrade-insecure-requests: 1' \ | ||
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36' \ | ||
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' \ | ||
-H 'accept-encoding: gzip, deflate, br' \ | ||
-H 'accept-language: en-US,en;q=0.9' \ | ||
-H 'cookie: __Host-ss=UsByWdIPus; locale=en; gvc=MjU4NzQxNzA3MDE4MjU3MDIzNDY0Nzc2NjAxNDg5MTU4MTg0MjYz; seen-sl-signup-modal=VHJ1ZQ%3D%3D; t=0-Hq7tZ1TDyj-aBNiWYv8YQl; __Host-js_csrf=0-Hq7tZ1TDyj-aBNiWYv8YQl; seen-sl-download-modal=VHJ1ZQ%3D%3D' \ | ||
--compressed > $OUTPUT |
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
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
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
Oops, something went wrong.