forked from sytone/obsidian-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes for performance, emoji support and updated obsidian version (sy…
- Loading branch information
Showing
4 changed files
with
79 additions
and
80 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,33 +1,33 @@ | ||
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbullseye | ||
# Update and install extra packages. | ||
RUN echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends curl libgtk-3-0 libnotify4 libatspi2.0-0 libsecret-1-0 libnss3 desktop-file-utils && \ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* | ||
# Set version label | ||
ARG OBSIDIAN_VERSION=1.2.8 | ||
# Download and install Obsidian | ||
RUN echo "**** download obsidian ****" && \ | ||
curl --location --output obsidian.deb "https://github.com/obsidianmd/obsidian-releases/releases/download/v${OBSIDIAN_VERSION}/obsidian_${OBSIDIAN_VERSION}_amd64.deb" && \ | ||
dpkg -i obsidian.deb | ||
# Environment variables | ||
ENV CUSTOM_PORT="8080" \ | ||
CUSTOM_HTTPS_PORT="8443" \ | ||
CUSTOM_USER="" \ | ||
PASSWORD="" \ | ||
SUBFOLDER="" \ | ||
TITLE="Obsidian v${OBSIDIAN_VERSION}" \ | ||
FM_HOME="/vaults" | ||
# Add local files | ||
COPY root/ / | ||
EXPOSE 8080 8443 | ||
VOLUME ["/config","/vaults"] | ||
# Define a healthcheck | ||
HEALTHCHECK CMD curl --fail http://localhost:8080/ || exit 1 | ||
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbullseye | ||
|
||
# Update and install extra packages. | ||
RUN echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends curl libgtk-3-0 libnotify4 libatspi2.0-0 libsecret-1-0 libnss3 desktop-file-utils && \ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* | ||
|
||
# Set version label | ||
ARG OBSIDIAN_VERSION=1.3.5 | ||
|
||
# Download and install Obsidian | ||
RUN echo "**** download obsidian ****" && \ | ||
curl --location --output obsidian.deb "https://github.com/obsidianmd/obsidian-releases/releases/download/v${OBSIDIAN_VERSION}/obsidian_${OBSIDIAN_VERSION}_amd64.deb" && \ | ||
dpkg -i obsidian.deb | ||
|
||
# Environment variables | ||
ENV CUSTOM_PORT="8080" \ | ||
CUSTOM_HTTPS_PORT="8443" \ | ||
CUSTOM_USER="" \ | ||
PASSWORD="" \ | ||
SUBFOLDER="" \ | ||
TITLE="Obsidian v${OBSIDIAN_VERSION}" \ | ||
FM_HOME="/vaults" | ||
|
||
# Add local files | ||
COPY root/ / | ||
|
||
EXPOSE 8080 8443 | ||
VOLUME ["/config","/vaults"] | ||
|
||
# Define a healthcheck | ||
HEALTHCHECK CMD curl --fail http://localhost:8080/ || exit 1 |
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,43 +1,43 @@ | ||
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal-20210824 | ||
ARG OBSIDIAN_VERSION=1.2.8 | ||
ARG ARCH=arm64 | ||
# Update and install extra packages. | ||
RUN echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
git \ | ||
curl \ | ||
libnss3 \ | ||
zlib1g-dev \ | ||
dbus-x11 \ | ||
uuid-runtime && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* | ||
# Download and install Obsidian | ||
RUN echo "**** download obsidian ****" && \ | ||
curl -L -o /obsidian.AppImage \ | ||
"https://github.com/obsidianmd/obsidian-releases/releases/download/v${OBSIDIAN_VERSION}/Obsidian-${OBSIDIAN_VERSION}-${ARCH}.AppImage" && \ | ||
chmod +x /obsidian.AppImage && \ | ||
/obsidian.AppImage --appimage-extract | ||
# Environment variables | ||
ENV CUSTOM_PORT="8080" \ | ||
CUSTOM_HTTPS_PORT="8443" \ | ||
CUSTOM_USER="" \ | ||
PASSWORD="" \ | ||
SUBFOLDER="" \ | ||
TITLE="Obsidian v$OBSIDIAN_VERSION" \ | ||
FM_HOME="/vaults" | ||
# Add local files | ||
COPY root/ / | ||
# Expose ports and volumes | ||
EXPOSE 8080 27123 27124 | ||
VOLUME ["/config","/vaults"] | ||
# Define a healthcheck | ||
HEALTHCHECK CMD curl --fail http://localhost:8080/ || exit 1 | ||
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal-20210824 | ||
|
||
ARG OBSIDIAN_VERSION=1.3.5 | ||
ARG ARCH=arm64 | ||
|
||
# Update and install extra packages. | ||
RUN echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
git \ | ||
curl \ | ||
libnss3 \ | ||
zlib1g-dev \ | ||
dbus-x11 \ | ||
uuid-runtime && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* | ||
|
||
# Download and install Obsidian | ||
RUN echo "**** download obsidian ****" && \ | ||
curl -L -o /obsidian.AppImage \ | ||
"https://github.com/obsidianmd/obsidian-releases/releases/download/v${OBSIDIAN_VERSION}/Obsidian-${OBSIDIAN_VERSION}-${ARCH}.AppImage" && \ | ||
chmod +x /obsidian.AppImage && \ | ||
/obsidian.AppImage --appimage-extract | ||
|
||
# Environment variables | ||
ENV CUSTOM_PORT="8080" \ | ||
CUSTOM_HTTPS_PORT="8443" \ | ||
CUSTOM_USER="" \ | ||
PASSWORD="" \ | ||
SUBFOLDER="" \ | ||
TITLE="Obsidian v$OBSIDIAN_VERSION" \ | ||
FM_HOME="/vaults" | ||
|
||
# Add local files | ||
COPY root/ / | ||
|
||
# Expose ports and volumes | ||
EXPOSE 8080 27123 27124 | ||
VOLUME ["/config","/vaults"] | ||
|
||
# Define a healthcheck | ||
HEALTHCHECK CMD curl --fail http://localhost:8080/ || exit 1 |
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 +1 @@ | ||
sudo /usr/bin/obsidian --no-sandbox | ||
sudo /usr/bin/obsidian --no-sandbox --no-xshm --disable-dev-shm-usage --disable-gpu --disable-software-rasterizer |