Skip to content

Commit

Permalink
Merge pull request #5 from TheJF/integrate_docker_in_repo
Browse files Browse the repository at this point in the history
Deprecate `docker-antennas` project by rolling the Dockerfile in here
  • Loading branch information
jfarseneau authored Sep 29, 2017
2 parents fda50ec + 8e573d7 commit e62f22d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
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"]
28 changes: 24 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e62f22d

Please sign in to comment.