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.
Change base image to kasmvnc (sytone#55)
* Update dependencies * Update Obsidian version for the ARM64 Dockerfile * Update the AMD64 Dockerfile with Kasm VNC * Update README for new Ports and Environment vars * Add forgotten healthcheck to Dockerfiles * Fix icon path for Obsidian in context menu
- Loading branch information
1 parent
8d92f3f
commit 3b49c2f
Showing
9 changed files
with
125 additions
and
157 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
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,55 +1,39 @@ | ||
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal | ||
|
||
LABEL org.opencontainers.image.authors="github@sytone.com" | ||
LABEL org.opencontainers.image.source="https://github.com/sytone/obsidian-remote" | ||
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 ****" && \ | ||
# Update and install extra packages. | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
# Packages needed to download and extract obsidian. | ||
curl \ | ||
libnss3 \ | ||
# Install Chrome dependencies. | ||
dbus-x11 \ | ||
uuid-runtime && \ | ||
echo "**** cleanup ****" && \ | ||
apt-get autoclean && \ | ||
rm -rf \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* \ | ||
/tmp/* | ||
|
||
# set version label | ||
ARG OBSIDIAN_VERSION=0.15.9 | ||
|
||
RUN \ | ||
echo "**** download obsidian ****" && \ | ||
curl \ | ||
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 | ||
|
||
ENV \ | ||
CUSTOM_PORT="8080" \ | ||
GUIAUTOSTART="true" \ | ||
HOME="/vaults" \ | ||
TITLE="Obsidian v$OBSIDIAN_VERSION" | ||
|
||
# add local files | ||
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbullseye | ||
|
||
LABEL maintainer="github@sytone.com" \ | ||
org.opencontainers.image.authors="github@sytone.com" \ | ||
org.opencontainers.image.source="https://github.com/sytone/obsidian-remote" \ | ||
org.opencontainers.image.title="Container hosted Obsidian MD" \ | ||
org.opencontainers.image.description="Hosted Obsidian instance allowing access via web browser" | ||
|
||
# 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 | ||
EXPOSE 27123 | ||
EXPOSE 27124 | ||
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
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,51 +1,33 @@ | ||
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal | ||
RUN \ | ||
echo "**** install packages ****" && \ | ||
# Update and install extra packages. | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
# Explicitly install git. Issue #36 | ||
git \ | ||
# Packages needed to download and extract obsidian. | ||
curl \ | ||
libnss3 \ | ||
# Install Chrome dependencies. | ||
dbus-x11 \ | ||
uuid-runtime && \ | ||
echo "**** cleanup ****" && \ | ||
apt-get autoclean && \ | ||
rm -rf \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* \ | ||
/tmp/* | ||
|
||
# set version label | ||
ARG OBSIDIAN_VERSION=1.1.9 | ||
|
||
RUN \ | ||
echo "**** download obsidian ****" && \ | ||
curl \ | ||
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 | ||
|
||
ENV \ | ||
CUSTOM_PORT="8080" \ | ||
GUIAUTOSTART="true" \ | ||
HOME="/vaults" \ | ||
TITLE="Obsidian v$OBSIDIAN_VERSION" | ||
|
||
# add local files | ||
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 | ||
EXPOSE 27123 | ||
EXPOSE 27124 | ||
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,51 +1,43 @@ | ||
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal | ||
RUN \ | ||
echo "**** install packages ****" && \ | ||
# Update and install extra packages. | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
# Explicitly install git. Issue #36 | ||
git \ | ||
# Packages needed to download and extract obsidian. | ||
curl \ | ||
libnss3 \ | ||
zlib1g-dev \ | ||
# Install Chrome dependencies. | ||
dbus-x11 \ | ||
uuid-runtime && \ | ||
echo "**** cleanup ****" && \ | ||
apt-get autoclean && \ | ||
rm -rf \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* \ | ||
/tmp/* | ||
FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal-20210824 | ||
|
||
# set version label | ||
ARG OBSIDIAN_VERSION=1.1.9 | ||
ARG OBSIDIAN_VERSION=1.2.8 | ||
ARG ARCH=arm64 | ||
|
||
RUN \ | ||
echo "**** download obsidian ****" && \ | ||
# Update and install extra packages. | ||
RUN echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
git \ | ||
curl \ | ||
https://github.com/obsidianmd/obsidian-releases/releases/download/v$OBSIDIAN_VERSION/Obsidian-1.1.9-arm64.AppImage -o obsidian.AppImage | ||
|
||
RUN \ | ||
echo "**** extract obsidian ****" && \ | ||
chmod +x /obsidian.AppImage && \ | ||
/obsidian.AppImage --appimage-extract | ||
|
||
ENV \ | ||
CUSTOM_PORT="8080" \ | ||
GUIAUTOSTART="true" \ | ||
HOME="/vaults" \ | ||
TITLE="Obsidian v$OBSIDIAN_VERSION" | ||
|
||
# add local files | ||
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 8080 | ||
EXPOSE 27123 | ||
EXPOSE 27124 | ||
# 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 @@ | ||
/squashfs-root/obsidian --no-sandbox --disable-dev-shm-usage --disable-gpu --disable-software-rasterizer | ||
sudo /usr/bin/obsidian --no-sandbox |
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 |
---|---|---|
|
@@ -40,4 +40,4 @@ echo "********************************" | |
chown -R abc:abc \ | ||
/config \ | ||
/vaults \ | ||
/squashfs-root | ||
/root |