mirror of
https://github.com/anthonyraymond/joal.git
synced 2024-09-20 07:16:26 +08:00
Add Dockerfile for non-arm platform
This commit is contained in:
parent
625b1e093c
commit
59716ddcd5
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM openjdk:8-jre
|
||||
|
||||
WORKDIR /jack-of-all-trades/
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y ca-certificates curl \
|
||||
&& GITHUB_REPO="https://github.com/anthonyraymond/joal" \
|
||||
&& LATEST=$(curl -sSI $GITHUB_REPO"/releases/latest" | perl -n -e '/^Location: .*?tag\/(.*?)\r*$/ && print "$1\n"') \
|
||||
&& curl -f -L $GITHUB_REPO"/releases/download/"$LATEST"/"$LATEST".jar" > /jack-of-all-trades/jack-of-all-trades.jar \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /jack-of-all-trades
|
||||
|
||||
EXPOSE 49152-65534
|
||||
VOLUME /data
|
||||
|
||||
CMD ["java","-jar","/jack-of-all-trades/jack-of-all-trades.jar","/data"]
|
11
README.md
11
README.md
|
@ -1,6 +1,6 @@
|
|||
Un guide en francais est disponible [ici](http://h5ckfun.info/joal-le-nouveau-ratiomaster/)
|
||||
|
||||
# Prepare confguration folder
|
||||
# Prepare configuration folder
|
||||
You first need to get the cofiguration folder. Replace `<MY_CONFIG_FOLDER_PATH>` by whatever path you want.
|
||||
```
|
||||
git clone git@github.com:anthonyraymond/joal.git
|
||||
|
@ -12,12 +12,19 @@ Now add some of your private tracker's `.torrent` file to `<MY_CONFIG_FOLDER_PAT
|
|||
|
||||
# Install and run
|
||||
### With Docker
|
||||
At the moment only an ARM based docker file is available.
|
||||
|
||||
**For ARM distribution only (raspberry)**
|
||||
```
|
||||
docker build -f Dockerfile.arm -t araymond/joal .
|
||||
docker run -d -v <PATH_TO_CONFIG_DIR>:/data -p 49152-65534:49152 --name="joal" araymond/joal
|
||||
```
|
||||
|
||||
**For any other distribution**
|
||||
```
|
||||
docker build -t araymond/joal .
|
||||
docker run -d -v <PATH_TO_CONFIG_DIR>:/data -p 49152-65534:49152 --name="joal" araymond/joal
|
||||
```
|
||||
|
||||
### Without Docker
|
||||
You need to have **Java 8** installed.
|
||||
|
||||
|
|
Loading…
Reference in a new issue