Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Build for Apple Silicon ARM64 (M1 Ultra) #166

Open
packet-rat opened this issue Apr 6, 2023 · 2 comments
Open

Request: Build for Apple Silicon ARM64 (M1 Ultra) #166

packet-rat opened this issue Apr 6, 2023 · 2 comments

Comments

@packet-rat
Copy link

We need a supported MISP Docker image for Apple Silicon ARM64 (M1 Ultra).
Pretty Please?

@colincalnan
Copy link

@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

@CorraMatte
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants