53 lines
1.1 KiB
Markdown
53 lines
1.1 KiB
Markdown
# To use the Docker
|
|
|
|
Create a symbolic link from 'photos' to where your photos
|
|
are stored, and from 'db' to where you want the DB files:
|
|
|
|
```bash
|
|
ln -s /multimedia/Pictures photos
|
|
ln -s /multimedia/PicturesDB db
|
|
```
|
|
|
|
Then build and spin up the container:
|
|
|
|
```bash
|
|
docker build . -t photos
|
|
docker-compose up -d
|
|
```
|
|
|
|
At this point, port 8123 will be supporting the photo app.
|
|
|
|
#### Upgrade Node
|
|
|
|
```bash
|
|
wget -qO- https://deb.nodesource.com/setup_8.x | sudo bash -
|
|
sudo apt-get install --yes nodejs
|
|
```
|
|
|
|
You can then install the latest npm, polymer-cli, and bower:
|
|
|
|
```bash
|
|
sudo npm install --global npm@latest
|
|
sudo npm install --global polymer-cli
|
|
sudo npm install --global bower
|
|
```
|
|
|
|
# Install BLAS to improve performance, and dev tools so
|
|
# face-recognition can build.
|
|
|
|
```bash
|
|
sudo apt install -y libopenblas-dev cmake
|
|
```
|
|
|
|
###
|
|
NEF processing uses ufraw-batch
|
|
```
|
|
sudo apt install -y ufraw-batch
|
|
```
|
|
|
|
### Create `photos` user for DB
|
|
|
|
Photos is currently using sqlite, which means you don't need to
|
|
do anything fancy beyond having run 'npm install' to get sequelize
|
|
and sqlite3 installed.
|