Compare commits

..

9 Commits

Author SHA1 Message Date
Kroese
32ef7caa85 Update install.sh 2025-03-26 03:36:59 +01:00
Kroese
7ebc976ae7 Update install.sh 2025-03-26 02:24:55 +01:00
Kroese
fa2dfbe6cb Update install.sh 2025-03-26 02:20:53 +01:00
Kroese
05cad738a8 Update Dockerfile 2025-03-26 02:06:45 +01:00
Kroese
c90a4f1677 Update Dockerfile 2025-03-26 02:04:09 +01:00
Kroese
f5aaa8a104 Update install.sh 2025-03-26 02:03:45 +01:00
Kroese
1a3eacbba7 Update install.sh 2025-03-24 19:19:49 +01:00
Kroese
8b8c75739c Update Dockerfile 2025-03-24 19:18:25 +01:00
Kroese
a46a10bbf0 fix: Force version 7.0.1 for ARM64 2025-03-24 17:45:57 +01:00
4 changed files with 26 additions and 17 deletions

View File

@@ -20,5 +20,5 @@ jobs:
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
ignore: DL3008,DL3003,DL3006,DL3013
ignore: DL3008,DL3003,DL3006
failure-threshold: warning

View File

@@ -15,7 +15,7 @@ ARG DEBCONF_NOWARNINGS="yes"
ARG DEBIAN_FRONTEND="noninteractive"
ARG DEBCONF_NONINTERACTIVE_SEEN="true"
RUN set -eu && \
RUN set -eu && extra="" && \
apt-get update && \
apt-get --no-install-recommends -y install \
jq \
@@ -56,7 +56,8 @@ COPY --chmod=755 ./src /run/
COPY --chmod=755 ./web /var/www/
COPY --chmod=755 --from=builder /qemu-host.bin /run/host.bin
COPY --chmod=744 ./web/conf/nginx.conf /etc/nginx/sites-enabled/web.conf
ADD --chmod=775 https://raw.githubusercontent.com/sud0woodo/patology/refs/heads/main/patology.py /run/extract.py
ADD https://raw.githubusercontent.com/sud0woodo/patology/refs/heads/main/patology.py /run/extract.py
VOLUME /storage
EXPOSE 22 139 445 5000

View File

@@ -58,7 +58,7 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m
##### Via Github Codespaces:
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?repo=619260050&machine=basicLinux32gb)
[`Click here to launch this container in the cloud!`](https://github.com/codespaces/new?skip_quickstart=true&machine=basicLinux32gb&repo=619260050&ref=master&devcontainer_path=.devcontainer.json)
## FAQ 💬
@@ -123,16 +123,21 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m
### How do I pass-through a disk?
It is possible to pass-through a disk device directly, which can be useful when your host is a virtual machine, as it removes an extra layer and allows for easier image management on the host.
It is possible to pass-through a disk device directly, which can be useful when your host is a virtual machine, as it removes an extra layer and allows for easier management. For use with physical disks this method provides little advantage and is not recommended.
For use with physical disks this method provides little advantage over using an image and is not recommended. You can add the device to your compose file like this:
You can add the virtual device to your compose file like this:
```yaml
devices:
- /dev/sdc:/disk1
- /dev/disk/by-uuid/12345-12345-12345-12345-12345:/disk2
```
Replace `/dev/sdc` with the name of the disk. It needs to be totally empty (without any partition table) otherwise DSM does not always format it into a volume.
The device needs to be totally empty (without any partition table) otherwise DSM does not always format it into a volume.
Make sure to bind the disk via its UUID (obtainable via `lsblk -o name,uuid`) instead of its name (`/dev/sdc`), to prevent ever binding the wrong disk when the drive letters happen to change.
> [!CAUTION]
> Do NOT use this feature with the goal of sharing files from the host, they might all get lost without warning when DSM creates the volume.
### How do I change the amount of CPU or RAM?
@@ -251,14 +256,14 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m
With this method, it is even possible to switch back and forth between versions while keeping your file data intact.
Alternatively, you can also skip the download and use a local file instead, by binding it in your compose file in this way:
If you don't have internet access, it's also possible to skip the download by setting `URL` to:
```yaml
volumes:
- ./DSM_VirtualDSM_42218.pat:/boot.pat
environment:
URL: "DSM_VirtualDSM_42218.pat"
```
Replace the example path `./DSM_VirtualDSM_42218.pat` with the filename of your desired `.pat` file. The value of `URL` will be ignored in this case.
after placing a copy of [DSM_VirtualDSM_42218.pat](https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat) in the root of your `/storage` folder.
### What are the differences compared to the standard DSM?

View File

@@ -14,7 +14,7 @@ fi
FN="boot.pat"
if [ -d "/$FN" ]; then
error "The file /$FN does not exist, please check that you mapped it to a valid path!" && exit 65
error "The file /$FN has an invalid path!" && exit 65
fi
FILE=$(find / -maxdepth 1 -type f -iname "$FN" | head -n 1)
@@ -31,9 +31,12 @@ if [ -n "$URL" ]; then
fi
fi
if [[ "${URL,,}" != "http"* ]] && [[ "${URL,,}" != "file:"* ]] ; then
URL="file:///$BASE.pat"
if [ ! -s "/$BASE.pat" ]; then
error "File '$BASE.pat' does not exist!" && exit 65
URL="file://$STORAGE/$BASE.pat"
if [ ! -s "$STORAGE/$BASE.pat" ]; then
URL="file:///$BASE.pat"
if [ ! -s "/$BASE.pat" ]; then
error "File '$BASE.pat' does not exist!" && exit 65
fi
fi
fi
fi