Pete Stothers Posted November 9, 2019 Share Posted November 9, 2019 I'm trying to build on my Synology NAS but I don't understand the syntax. Can someone point me in the right direction? root@DS:/volume1/docker/antms# lsams.zip Dockerfile @eaDirroot@DS:/volume1/docker/antms# docker build --network=host -t ams --build-arg AntMediaServer=ams.zip"docker build" requires exactly 1 argument.See 'docker build --help'.Usage: docker build [OPTIONS] PATH | URL | -Build an image from a Dockerfileroot@DS:/volume1/docker/antms# Link to comment Share on other sites More sharing options...
0 Pete Stothers Posted November 9, 2019 Author Share Posted November 9, 2019 Sorted! Needed this. (added a space and full stop after name tag to define dockerfile as local directory) docker build --network=host -t ams . --build-arg AntMediaServer=ams.zip On Sunday, 10 November 2019 02:32:30 UTC+13, Pete Stothers wrote: I'm trying to build on my Synology NAS but I don't understand the syntax. Can someone point me in the right direction? root@DS:/volume1/docker/antms# lsams.zip Dockerfile @eaDirroot@DS:/volume1/docker/antms# docker build --network=host -t ams --build-arg AntMediaServer=ams.zip"docker build" requires exactly 1 argument.See 'docker build --help'.Usage: docker build [OPTIONS] PATH | URL | -Build an image from a Dockerfileroot@DS:/volume1/docker/antms# Link to comment Share on other sites More sharing options...
0 Murat Aydin Posted November 9, 2019 Share Posted November 9, 2019 Thanks for sharing the solution! -- Murat AYDIN ------------------ Senior Software EngineerMember at GDG Ankara http://farm6.static.flickr.com/5092/5468518737_c1717580aa_t.jpg http://farm6.static.flickr.com/5093/5468518979_5624dbecac_t.jpg Blog : www.ottodroid.net Link to comment Share on other sites More sharing options...
0 Pete Stothers Posted November 9, 2019 Author Share Posted November 9, 2019 Turns out that even though it now runs, it does not complete exiting with the following error. Please give the Ant Media Server zip file as parameter./install_ant-media-server.sh ant-media-server-....zipThe command '/bin/sh -c cd home && pwd && ./install_ant-media-server.sh ${AntMediaServer}' returned a non-zero code: 1 I changed the build command to docker build --network=host -t ams:1.8.1 --build-arg AntMediaServer=ant-media-server-community-1.8.1-20190828_0800.zip . and it still fails. On Sunday, 10 November 2019 10:15:48 UTC+13, Murat Aydin wrote: Thanks for sharing the solution! -- Murat AYDIN ------------------ Senior Software EngineerMember at GDG Ankara Blog : www.ottodroid.net Link to comment Share on other sites More sharing options...
0 Murat Aydin Posted November 9, 2019 Share Posted November 9, 2019 Did you follow this guide, right? https://github.com/ant-media/Ant-Media-Server/wiki/Building-and-Running-Docker-Container-for-Ant-Media-Server -- Murat AYDIN ------------------ Senior Software EngineerMember at GDG Ankara http://farm6.static.flickr.com/5092/5468518737_c1717580aa_t.jpg http://farm6.static.flickr.com/5093/5468518979_5624dbecac_t.jpg Blog : www.ottodroid.net Link to comment Share on other sites More sharing options...
0 Pete Stothers Posted November 9, 2019 Author Share Posted November 9, 2019 Sure did to the best of my ability.On Sunday, 10 November 2019 11:42:42 UTC+13, Murat Aydin wrote: Did you follow this guide, right? https://github.com/ant-media/Ant-Media-Server/wiki/Building-and-Running-Docker-Container-for-Ant-Media-Server -- Murat AYDIN ------------------ Senior Software EngineerMember at GDG Ankara Blog : www.ottodroid.net Link to comment Share on other sites More sharing options...
0 Murat Aydin Posted November 9, 2019 Share Posted November 9, 2019 Could you please share your docker file and all the commands you run? -- Murat AYDIN ------------------ Senior Software EngineerMember at GDG Ankara http://farm6.static.flickr.com/5092/5468518737_c1717580aa_t.jpg http://farm6.static.flickr.com/5093/5468518979_5624dbecac_t.jpg Blog : www.ottodroid.net Link to comment Share on other sites More sharing options...
0 Pete Stothers Posted November 10, 2019 Author Share Posted November 10, 2019 Here are my steps: I've set up a folder called antsms here /volume1/docker/ Created thedockerfile in that folder Downloaded the zip file and saved it inthat folder too asant-media-server-community-1.8.1-20190828_0800.zip Logged in as rootand run docker build --network=host -t ams:1.8.1 --build-argAntMediaServer=ant-media-server-community-1.8.1-20190828_0800.zip . I'm using the dockerfile from the instructions page. On Sunday, 10 November 2019 12:08:33 UTC+13, Murat Aydin wrote: Could you please share your docker file and all the commands you run? -- Murat AYDIN ------------------ Senior Software EngineerMember at GDG Ankara Blog : www.ottodroid.net Link to comment Share on other sites More sharing options...
0 Pete Stothers Posted November 11, 2019 Author Share Posted November 11, 2019 Tested in a Linux VM inside Promox and although it works well, it does not suit for my application. Case Closed.On Sunday, 10 November 2019 02:32:30 UTC+13, Pete Stothers wrote: I'm trying to build on my Synology NAS but I don't understand the syntax. Can someone point me in the right direction? root@DS:/volume1/docker/antms# lsams.zip Dockerfile @eaDirroot@DS:/volume1/docker/antms# docker build --network=host -t ams --build-arg AntMediaServer=ams.zip"docker build" requires exactly 1 argument.See 'docker build --help'.Usage: docker build [OPTIONS] PATH | URL | -Build an image from a Dockerfileroot@DS:/volume1/docker/antms# Link to comment Share on other sites More sharing options...
Question
Pete Stothers
ams.zip Dockerfile @eaDir
root@DS:/volume1/docker/antms# docker build --network=host -t ams --build-arg AntMediaServer=ams.zip
"docker build" requires exactly 1 argument.
See 'docker build --help'.
Usage: docker build [OPTIONS] PATH | URL | -
Build an image from a Dockerfile
root@DS:/volume1/docker/antms#
Link to comment
Share on other sites
Top Posters For This Question
6
3
Popular Days
Nov 9
7
Nov 10
1
Nov 11
1
Top Posters For This Question
Pete Stothers 6 posts
Murat Aydin 3 posts
Popular Days
Nov 9 2019
7 posts
Nov 10 2019
1 post
Nov 11 2019
1 post
8 answers to this question
Recommended Posts