50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
|
|
### Docker version 19 and up should be okay
|
||
|
|
sudo apt install docker.io
|
||
|
|
|
||
|
|
### Install Docker Compose
|
||
|
|
sudo apt install docker-compose
|
||
|
|
|
||
|
|
### verify both installations
|
||
|
|
`docker --version`
|
||
|
|
`docker-compose --version`
|
||
|
|
|
||
|
|
|
||
|
|
Github repository link:
|
||
|
|
https://github.com/intuitem/ciso-assistant-community
|
||
|
|
|
||
|
|
|
||
|
|
git clone https://github.com/intuitem/ciso-assistant-community.git
|
||
|
|
|
||
|
|
cd ciso-assistant-community/
|
||
|
|
|
||
|
|
./docker-compose.sh
|
||
|
|
|
||
|
|
Sur Fedora (ou toute autre distribution utilisant SElinux) utiliser cette version de docker-compose.sh pour accorder les permissions à SElinux :
|
||
|
|
```
|
||
|
|
#! /usr/bin/env bash
|
||
|
|
|
||
|
|
if [ -f db/ciso-assistant.sqlite3 ] ; then
|
||
|
|
echo "the database seems already created"
|
||
|
|
echo "you should launch docker compose up -d"
|
||
|
|
echo "for clean start, you can remove the database file, run docker compose down and then docker compose rm and start again"
|
||
|
|
else
|
||
|
|
docker rmi ghcr.io/intuitem/ciso-assistant-community/backend:latest ghcr.io/intuitem/ciso-assistant-community/frontend:latest 2> /dev/null
|
||
|
|
docker-compose up -d
|
||
|
|
echo "Giving some time for the database to be ready, please wait ..."
|
||
|
|
sleep 30
|
||
|
|
sudo chcon -Rt svirt_sandbox_file_t ./db
|
||
|
|
echo "initialize your superuser account..."
|
||
|
|
docker-compose exec backend poetry run python manage.py createsuperuser
|
||
|
|
echo "connect to ciso assistant on https://localhost:8443"
|
||
|
|
echo "for successive runs you can now use docker compose up"
|
||
|
|
fi
|
||
|
|
```
|
||
|
|
|
||
|
|
docker-compose up
|
||
|
|
|
||
|
|
|
||
|
|
iso27001
|
||
|
|
hds
|
||
|
|
iso9001
|
||
|
|
|