Open packet-rat opened 1 year ago
@packet-rat you can modify the docker-compose.yml
by adding this property to both web: and db: services
platform: linux/amd64
So they would look like this
services:
web:
platform: linux/amd64
build: web
....
db:
platform: linux/amd64
container_name: misp_db
image: mysql/mysql-server:5.7
....
That worked for me to get it built and running, but I'm hitting a different error once I run the containers.
misp_web | /usr/bin/sed: couldn't open temporary file ./sedn99toR: Permission denied
Hi all,
I found a workaround on run.sh
.
But I get another error, probably due to the unsupported architecture: "Binary file not executable."
+ cp database.php /tmp/database.php
+ cd /tmp
sed -i "s/'database' => 'misp'/'database' => '$MYSQL_DATABASE'/" database.php
sed -i "s/localhost/$MYSQL_HOST/" database.php
sed -i "s/db\s*login/$MYSQL_USER/" database.php
sed -i "s/8889/3306/" database.php
sed -i "s/db\s*password/$MYSQL_PASSWORD/" database.php
+ cp database.php /var/www/MISP/app/Config
+ cd /var/www/MISP/app/Config
- sed -i "s@'baseurl'[\t ]*=>[\t ]*'.*',@'baseurl' => '$MISP_BASEURL',@g" /var/www/MISP/app/Config/config.php
- sed -i "s@'rest_client_baseurl'[\t ]*=>[\t ]*'.*',@'rest_client_baseurl' => '$MISP_BASEURL',@g" /var/www/MISP/app/Config/config.php
+ cp config.php /tmp/config.php
+ cd /tmp
+ sed -i "s@'baseurl'[\t ]*=>[\t ]*'.*',@'baseurl' => '$MISP_BASEURL',@g" config.php
+ sed -i "s@'rest_client_baseurl'[\t ]*=>[\t ]*'.*',@'rest_client_baseurl' => '$MISP_BASEURL',@g" config.php
+ cp config.php /var/www/MISP/app/Config/config.php
+ cd /var/www/MISP/app/Config/
We need a supported MISP Docker image for Apple Silicon ARM64 (M1 Ultra). Pretty Please?