Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian Update to bookworm release & Nextcloud sync feature & Obisidan latest release #77

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#Set your credentials and informations (if needed)

# NEXTCLOUD
# Please fill all the variables
# Nextcloud Username
NC_USER=
# Nextcloud Password
NC_PASS=
# Nextcloud hostname (without https://) e.g: nextcloud.myserver.net
NC_HOST=
# Folder path on your Nextcloud personal space e.g: /Obsidian
NC_PATH=

# Set credentials (mandatory if exposed on internet)
CUSTOM_USER=
PASSWORD=

# Timezone used
TZ=Europe/Paris

# If you use nginx-proxy
VIRTUAL_HOST=
VIRTUAL_PORT=8080
LETSENCRYPT_HOST=

58 changes: 0 additions & 58 deletions .github/workflows/docker-publish.yml

This file was deleted.

76 changes: 0 additions & 76 deletions .github/workflows/docker.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/publish-ghcr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Docker image CI for GHCR

on:
push

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build an push the image
run: |
docker login --username drdada --password ${{ secrets.GH_TOKEN }} ghcr.io
docker build . --tag ghcr.io/drdada/obsidian-remote:latest
docker push ghcr.io/drdada/obsidian-remote:latest
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
.env.local
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

17 changes: 9 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbullseye
FROM ghcr.io/linuxserver/baseimage-kasmvnc:debianbookworm

LABEL maintainer="github@sytone.com" \
org.opencontainers.image.authors="github@sytone.com" \
org.opencontainers.image.source="https://github.com/sytone/obsidian-remote" \
LABEL maintainer="drdada@github.com" \
org.opencontainers.image.authors="drdada@github.com" \
org.opencontainers.image.source="https://github.com/drdada/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 fonts-noto-color-emoji git ssh-askpass && \
apt-get install -y --no-install-recommends curl nextcloud-desktop-cmd libgtk-3-0 libnotify4 libatspi2.0-0 libsecret-1-0 libnss3 desktop-file-utils fonts-noto-color-emoji git ssh-askpass && \
apt-get autoclean && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*

# Set version label
ARG OBSIDIAN_VERSION=1.4.13
ARG OBSIDIAN_REMOTE_RELEASE=1.0

# 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" && \
file_url=$(curl -s "https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest" | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \") && \
curl --location --output obsidian.deb $file_url && \
dpkg -i obsidian.deb

# Environment variables
Expand All @@ -26,7 +27,7 @@ ENV CUSTOM_PORT="8080" \
CUSTOM_USER="" \
PASSWORD="" \
SUBFOLDER="" \
TITLE="Obsidian v${OBSIDIAN_VERSION}" \
TITLE="Obsidian Remote v${OBSIDIAN_REMOTE_RELEASE}" \
FM_HOME="/vaults"

# Add local files
Expand Down
Loading