-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
23 additions
and
11 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
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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal | ||
|
||
# set version label | ||
ARG BUILD_DATE | ||
ARG VERSION | ||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" | ||
LABEL maintainer="[email protected]" | ||
ARG BUILD_DATE=unknown | ||
ARG IMAGE_VERSION | ||
ARG OBSIDIAN_VERSION=0.13.31 | ||
|
||
LABEL org.opencontainers.image.authors="[email protected]" | ||
LABEL org.opencontainers.image.created="${BUILD_DATE}" | ||
LABEL org.opencontainers.image.source="https://github.com/sytone/obsidian-remote" | ||
LABEL org.opencontainers.image.version="${IMAGE_VERSION}" | ||
LABEL org.opencontainers.image.title="Container hosted Obsidian MD" | ||
LABEL org.opencontainers.image.description="Hosted Obsidian instance allowing access via web browser" | ||
|
||
RUN \ | ||
echo "**** install packages ****" && \ | ||
|
@@ -22,16 +28,14 @@ RUN \ | |
RUN \ | ||
echo "**** download obsidian ****" && \ | ||
curl \ | ||
https://github.com/obsidianmd/obsidian-releases/releases/download/v0.13.31/Obsidian-0.13.31.AppImage \ | ||
https://github.com/obsidianmd/obsidian-releases/releases/download/v$OBSIDIAN_VERSION/Obsidian-$OBSIDIAN_VERSION.AppImage \ | ||
-L \ | ||
-o obsidian.AppImage | ||
|
||
RUN \ | ||
echo "**** extract obsidian ****" && \ | ||
chmod +x /obsidian.AppImage && \ | ||
/obsidian.AppImage --appimage-extract && \ | ||
mkdir /vaults && \ | ||
chown -R abc:abc /squashfs-root /vaults | ||
/obsidian.AppImage --appimage-extract | ||
|
||
ENV \ | ||
CUSTOM_PORT="8080" \ | ||
|
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
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 |
---|---|---|
|
@@ -16,4 +16,5 @@ fi | |
# permissions | ||
chown -R abc:abc \ | ||
/config \ | ||
/vaults | ||
/vaults \ | ||
/squashfs-root |