mirror of
https://github.com/fergalmoran/dss.radio.git
synced 2025-12-22 01:37:58 +00:00
Added startup script
This commit is contained in:
@@ -11,14 +11,14 @@ WORKDIR /code
|
|||||||
|
|
||||||
ADD requirements.txt /code/
|
ADD requirements.txt /code/
|
||||||
ADD server.py /code/
|
ADD server.py /code/
|
||||||
|
ADD start.sh /code/
|
||||||
ADD ice_relay.py /code/
|
ADD ice_relay.py /code/
|
||||||
ADD static /code/static/
|
ADD static /code/static/
|
||||||
ADD util /code/util/
|
ADD util /code/util/
|
||||||
ADD templates /code/templates/
|
ADD templates /code/templates/
|
||||||
# ADD dss.radio.conf /code/
|
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
|
|
||||||
CMD ["python", "server.py"]
|
CMD ["./start.sh"]
|
||||||
|
|||||||
@@ -85,8 +85,8 @@ define("twitter_consumer_secret", default='', help="Secret for posting to twitte
|
|||||||
define("twitter_access_token", default='', help="Key for posting to twitter")
|
define("twitter_access_token", default='', help="Key for posting to twitter")
|
||||||
define("twitter_access_token_secret", default='', help="Secret for posting to twitter")
|
define("twitter_access_token_secret", default='', help="Secret for posting to twitter")
|
||||||
|
|
||||||
# tornado.options.parse_command_line()
|
tornado.options.parse_command_line()
|
||||||
tornado.options.parse_config_file("dss.radio.conf")
|
#tornado.options.parse_config_file("dss.radio.conf")
|
||||||
relay = IceRelay(options=options)
|
relay = IceRelay(options=options)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
12
start.sh
Executable file
12
start.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
python server.py \
|
||||||
|
--ice_password="RDzNlgqmj67vk" \
|
||||||
|
--ice_host="icecast" \
|
||||||
|
--ice_port=8000 \
|
||||||
|
--ice_mount="/dss" \
|
||||||
|
--api_host="api.deepsouthsounds.com" \
|
||||||
|
--twitter_consumer_key="VTv8FCO2g0yb20FsbXuQSNeo4" \
|
||||||
|
--twitter_consumer_secret="Hz1VHJyAv3dne0zDihO9MFv9vFMQILbZVfv23M6ONHxsmQYRZz" \
|
||||||
|
--twitter_access_token="626411226-SdXkmDobvvLP5KoT5p29VSK9cOoonezgsAXZp40n" \
|
||||||
|
--twitter_access_token_secret="kbyoWiE7KvMApx9K6tNcHoUziqJe5e5ml5YTWCxLlbCB8"
|
||||||
Reference in New Issue
Block a user