Skip to content

Commit

Permalink
Shinobi, it kinda works now.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Sep 27, 2022
1 parent 6041be6 commit f6b8849
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ TODO. Install Ansible, run playbook.
ansible-playbook main.yml
```

Then run specific NVR playbook, e.g.

```
ansible-playbook shinobi/main.yml
```

### Shinobi First-time setup

After the playbook completes, visit the URL of your NVR, at the `/super` path, e.g. `http://dvr.local:8080/super`. The default login credentials are:

- Email: `[email protected]`
- Password: `admin`

TODO.

## Raspberry Pi NVR Solutions

Here are my notes on different options for DVR/NVR/CCTV solutions that could run on the Pi:
Expand Down
9 changes: 5 additions & 4 deletions shinobi/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM arm32v7/node:12.18.3-buster-slim
FROM arm64v8/node:12.18.3-buster-slim

ENV DB_USER=majesticflame \
DB_PASSWORD='' \
Expand Down Expand Up @@ -83,14 +83,15 @@ RUN apt install -y \


WORKDIR /home/Shinobi
COPY . .
RUN git clone https://gitlab.com/Shinobi-Systems/Shinobi.git .
# COPY . .
#RUN rm -rf /home/Shinobi/plugins
COPY ./plugins /home/Shinobi/plugins
# COPY ./plugins /home/Shinobi/plugins
RUN chmod -R 777 /home/Shinobi/plugins
RUN npm i npm@latest -g && \
npm install pm2 -g && \
npm install --unsafe-perm
COPY ./Docker/pm2.yml ./
RUN cp Docker/pm2.yml ./

# Copy default configuration files
# COPY ./config/conf.json ./config/super.json /home/Shinobi/
Expand Down
11 changes: 7 additions & 4 deletions shinobi/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@
mode: '0755'
become: false

- name: Copy Shinobi docker-compose template to Pi.
ansible.builtin.template:
src: docker-compose.yml
dest: "~/shinobi/docker-compose.yml"
- name: Copy Shenobi files to Pi.
ansible.builtin.copy:
src: "{{ item }}"
dest: "~/shinobi/{{ item }}"
mode: '0640'
become: false
notify: Restart shenobi
with_items:
- docker-compose.yml
- Dockerfile

- name: Ensure Shinobi is running.
community.docker.docker_compose:
Expand Down

0 comments on commit f6b8849

Please sign in to comment.