mirror of
https://github.com/immich-app/retro.git
synced 2026-09-30 13:23:07 +08:00
working demo DVD
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
overlay/var/lib/docker
|
overlay/var/lib/docker
|
||||||
|
overlay/usr/app/library
|
||||||
|
overlay/usr/app/postgres
|
||||||
build/
|
build/
|
||||||
out/
|
out/
|
||||||
.overlay-build/
|
.overlay-build/
|
||||||
@@ -1,8 +1,14 @@
|
|||||||
# Immich-retro
|
# immich-retro
|
||||||
|
|
||||||
|
This is the repo used to generate the ISO images for the Immich Stable release demo DVDs.
|
||||||
|
|
||||||
## How to build
|
## How to build
|
||||||
|
|
||||||
Launch a Docker in Docker container
|
Building requires Docker and a Linux host OS due to reliance on fuse-overlay and other kernal extensions to build.
|
||||||
|
|
||||||
|
1. Select the Immich version you would like to run. Set the `IMMICH_VERSION` in **both** `docker-gen.sh` and `overlay/usr/app/.env`
|
||||||
|
|
||||||
|
2. Delete the `overlay/var/lib/docker` folder if present. Launch a "Docker in Docker" (dind) container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm -d --privileged \
|
docker run --rm -d --privileged \
|
||||||
@@ -13,33 +19,38 @@ docker run --rm -d --privileged \
|
|||||||
docker:dind
|
docker:dind
|
||||||
```
|
```
|
||||||
|
|
||||||
Download images (you may have to wait a few moments for the dind container to start dockerd)
|
3. Download images (you may have to wait a few moments for the dind container to start dockerd)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec -it dind-test sh ./home/docker-gen.sh
|
docker exec -it dind-test sh ./home/docker-gen.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
You can now kill the dind-test container
|
4. You can now kill the dind-test container
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker container stop dind-test
|
docker container stop dind-test
|
||||||
```
|
```
|
||||||
|
|
||||||
Run the following from the root of this repository
|
5. Run the following from the root of this repository
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm -it -v "$(pwd)":/home --privileged --name iso-build alpine sh ./home/build.sh
|
docker run --rm -it -v "$(pwd)":/home --privileged --name iso-build alpine sh ./home/build.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
The built image will be placed in `out/`
|
6. Success! The built `.iso` will be placed in `out/`.
|
||||||
|
|
||||||
|
### Adding a demo library
|
||||||
|
|
||||||
|
You may add a demo library in the instance by copying the `library` and `postgres` folders into `overlay/usr/app/library` and `overlay/usr/app/postgres` respectively.
|
||||||
|
|
||||||
|
|
||||||
### A couple of notes:
|
### A couple of notes:
|
||||||
|
|
||||||
- The entirety of the operating system runs from RAM. No configuration, assets, or settings will be persisted on reboot of the machine. DO NOT use this as your main Immich instance.
|
- The entirety of the operating system runs from RAM. No configuration, assets, or settings will be persisted on reboot of the machine. DO NOT use this as your main Immich instance.
|
||||||
- All assets are stored in RAM so you may quickly run out of "storage" if your machine has less than 16GB of RAM.
|
- The entire system is run in RAM so you may quickly run out of storage if your machine only has 8GB of memory.
|
||||||
- If booting from the DVD, the boot process **will be slow**. You may see "0%" for a prolonged period of time during boot. _Be patient!_. This part of the boot process requires reading the entire DVD and loading it into RAM.
|
- If booting from the DVD, the boot process **will be slow**. You may see "0%" for a prolonged period of time during boot. _Be patient!_. This part of the boot process requires reading the entire DVD and loading it into RAM.
|
||||||
- Minimum system requirements:
|
- Minimum system requirements:
|
||||||
- 2 core x86 processor
|
- 2 core x86 processor
|
||||||
- 8GB of RAM, 16GB recommended
|
- 8GB of RAM, 12GB+ recommended
|
||||||
- No storage drive needed!
|
- No storage drive needed!
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -2,8 +2,11 @@
|
|||||||
|
|
||||||
# List of Docker image tags (space-separated)
|
# List of Docker image tags (space-separated)
|
||||||
# ML is excluded since it requires internet to download models
|
# ML is excluded since it requires internet to download models
|
||||||
|
|
||||||
|
IMMICH_VERSION=v1.137.3
|
||||||
|
|
||||||
images="
|
images="
|
||||||
ghcr.io/immich-app/immich-server:v1.137.3
|
ghcr.io/immich-app/immich-server:$IMMICH_VERSION
|
||||||
docker.io/valkey/valkey:8-bookworm
|
docker.io/valkey/valkey:8-bookworm
|
||||||
ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
|
ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DB_DATA_LOCATION=/usr/app/postgres
|
|||||||
# TZ=Etc/UTC
|
# TZ=Etc/UTC
|
||||||
|
|
||||||
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
|
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
|
||||||
IMMICH_VERSION=release
|
IMMICH_VERSION=v1.137.3
|
||||||
|
|
||||||
# Connection secret for postgres. You should change it to a random password
|
# Connection secret for postgres. You should change it to a random password
|
||||||
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
|
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
|
||||||
|
|||||||
@@ -31,7 +31,9 @@ services:
|
|||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
|
|
||||||
# if you are insane enough to uncomment this, you will need an active internet connection to download the image and models
|
# if you are insane enough to uncomment this, you will need an active internet connection to download the image and models.
|
||||||
|
# Also uncomment the model_cache volume at the bottom of this file
|
||||||
|
|
||||||
# immich-machine-learning:
|
# immich-machine-learning:
|
||||||
# container_name: immich_machine_learning
|
# container_name: immich_machine_learning
|
||||||
# # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
|
# # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
|
||||||
@@ -70,5 +72,6 @@ services:
|
|||||||
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
|
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
volumes:
|
# uncomment below if enabling machine learning
|
||||||
model-cache:
|
# volumes:
|
||||||
|
# model-cache:
|
||||||
|
|||||||
Reference in New Issue
Block a user