mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2026-04-05 02:56:32 +09:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21ce2cff95 | ||
|
|
cd50025f67 | ||
|
|
8df0c56396 | ||
|
|
b570e58958 | ||
|
|
3fe9925064 | ||
|
|
275aa05c17 | ||
|
|
f8313f706d | ||
|
|
eb5710279a | ||
|
|
dcb82e63c4 | ||
|
|
f0fb1690eb | ||
|
|
61aecdb033 | ||
|
|
458ed75332 | ||
|
|
21cca50992 |
18
Dockerfile
18
Dockerfile
@@ -17,19 +17,19 @@ RUN \
|
|||||||
php7-pdo_sqlite \
|
php7-pdo_sqlite \
|
||||||
php7-tokenizer \
|
php7-tokenizer \
|
||||||
tar && \
|
tar && \
|
||||||
mkdir -p /app/heimdall && \
|
echo "**** install heimdall ****" && \
|
||||||
VERSION="$(curl -sX GET https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep 'tag_name' | cut -d\" -f4)" && \
|
HEIM_VER="$(curl -sX GET https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep 'tag_name' | cut -d\" -f4)" && \
|
||||||
echo "**Installing Heimdall ${VERSION}**" && \
|
mkdir -p \
|
||||||
|
/var/www/localhost/heimdall && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/heimdall.tar.gz -L \
|
/tmp/heimdall.tar.gz -L \
|
||||||
"https://github.com/linuxserver/Heimdall/archive/${VERSION}.tar.gz" && \
|
"https://github.com/linuxserver/Heimdall/archive/${HEIM_VER}.tar.gz" && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/tmp/heimdall.tar.gz -C \
|
/tmp/heimdall.tar.gz -C \
|
||||||
/tmp && \
|
/var/www/localhost/heimdall --strip-components=1 && \
|
||||||
cp -R /tmp/Heimdall-*/* /app/heimdall/ && \
|
|
||||||
echo "** cleanup **" && \
|
echo "** cleanup **" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
||||||
# add local files
|
# add local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ server {
|
|||||||
|
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
|
|
||||||
root /app/root;
|
root /var/www/localhost/heimdall/public;
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|||||||
@@ -4,27 +4,20 @@
|
|||||||
mkdir -p \
|
mkdir -p \
|
||||||
/config/www/{backgrounds,icons}
|
/config/www/{backgrounds,icons}
|
||||||
|
|
||||||
# set base url if needed
|
|
||||||
rm -rf /app/root
|
|
||||||
if [ -z "$BASEURL" ]; then
|
|
||||||
echo "No base url set. You can access the app at http://SERVERIP:PORT"
|
|
||||||
ln -s ./heimdall/public /app/root
|
|
||||||
else
|
|
||||||
echo "Setting base url. You can access the app at http://SERVERIP:PORT/$BASEURL"
|
|
||||||
mkdir -p /app/root
|
|
||||||
ln -s ../heimdall/public /app/root/"$BASEURL"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# symlink user config
|
# symlink user config
|
||||||
rm -rf \
|
|
||||||
/app/heimdall/storage/app/public/backgrounds \
|
symlinks=( \
|
||||||
/app/heimdall/storage/app/public/icons \
|
/var/www/localhost/heimdall/storage/app/public/backgrounds \
|
||||||
/app/heimdall/database/app.sqlite
|
/var/www/localhost/heimdall/storage/app/public/icons \
|
||||||
ln -s /config/www/backgrounds /app/heimdall/storage/app/public/backgrounds
|
/var/www/localhost/heimdall/database/app.sqlite )
|
||||||
ln -s /config/www/icons /app/heimdall/storage/app/public/icons
|
|
||||||
ln -s /config/www/app.sqlite /app/heimdall/database/app.sqlite
|
for i in "${symlinks[@]}"
|
||||||
|
do
|
||||||
|
[[ -e "$i" && ! -L "$i" ]] && rm -rf "$i"
|
||||||
|
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
|
||||||
|
done
|
||||||
|
|
||||||
# permissions
|
# permissions
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
/config \
|
/config \
|
||||||
/app
|
/var/www/localhost/heimdall
|
||||||
|
|||||||
Reference in New Issue
Block a user