-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from TheJF/integrate_docker_in_repo
Deprecate `docker-antennas` project by rolling the Dockerfile in here
- Loading branch information
Showing
2 changed files
with
38 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,14 @@ | ||
FROM crystallang/crystal:latest | ||
LABEL maintainer "[email protected]" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y build-essential libevent-dev libssl-dev libxml2-dev libyaml-dev libgmp-dev git && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
COPY . /antennas | ||
|
||
EXPOSE 5004 | ||
|
||
WORKDIR "/antennas" | ||
RUN shards update && shards install | ||
RUN crystal build --release --no-debug src/antennas.cr | ||
CMD ["/antennas/antennas"] |
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 |
---|---|---|
|
@@ -4,13 +4,33 @@ A Crystal port of [tvhProxy](https://github.com/jkaberg/tvhProxy) which is a pro | |
|
||
## Getting it running | ||
|
||
|
||
### Docker | ||
|
||
There is more information on how to set it up on the [docker-antennas page](https://github.com/TheJF/docker-antennas), however the short version is: | ||
* `docker create --name=antennas -v <path/to/config>:/opt/antennas/config -p 5004:5004 thejf/antennas` | ||
Simplest way to get it running is to run it: | ||
`docker run -p 5004:5004 -e TVHEADEND_URL=http://user:[email protected]:9981 thejf/antennas` | ||
|
||
Alternatively, you can set it with all the available environment variables: | ||
``` | ||
docker create --name=antennas | ||
-e TVHEADEND_URL=http://user:[email protected]:9981 | ||
-e TVHEADEND_WEIGHT=300 | ||
-e TUNER_COUNT=6 | ||
-p 5004:5004 | ||
thejf/antennas | ||
``` | ||
|
||
And then `docker start antennas` | ||
|
||
Or, you can try by mounting a volume, set by yourself in path/to/config, that will need a config.yml to work. Example of a config.yml is [available here](https://github.com/TheJF/antennas/blob/master/config/config.yml), or below: | ||
``` | ||
tvheadend_url: http://replace:[email protected]:9981 | ||
tvheadend_weight: 300 | ||
tuner_count: 6 | ||
``` | ||
|
||
* `docker create --name=antennas -v <path/to/config>:/antennas/config -p 5004:5004 thejf/antennas` | ||
* Set up `config.yml` (see configuration instructions [here](https://github.com/TheJF/antennas#configuration)) where you pointed the config volume (what you replaced `<path/to/config>` with | ||
* `docker start antennas` | ||
* Finally, `docker start antennas` | ||
|
||
### Linux | ||
|
||
|