Giter Site home page Giter Site logo

Comments (2)

colincalnan avatar colincalnan commented on July 17, 2024 1

@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

from x_old_misp_docker.

CorraMatte avatar CorraMatte commented on July 17, 2024

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/

from x_old_misp_docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.