Skip to content

Development environment setup fails on Apple silicon (ARM64) architecture #308

@Rahban1

Description

@Rahban1

Description

When attempting to run the FOSSologyUI development environment on an Apple Silicon Mac (ARM64 architecture), the setup process fails with architecture compatibility errors. This issue affects all developers using Apple Silicon Macs, which represent the growing segment of the developer community

How to reproduce

In the installation commands, the first command is mentioned as
docker-compose -f docker-compose.dev.yml pull fossology_server && docker-compose -f docker-compose.dev.yml up #Starts the react-dev-server on localhost:3000

running that command is giving the following error :

Image

Proposed Solution

The root cause is that the Docker configuration doesn't account for different CPU architectures. Here's a proposed solution:

  1. Update the docker-compose.dev.yml file to use platform emulation for the fossology_server service:

fossology_server: image: fossology/fossology:latest platform: ${DOCKER_PLATFORM:-linux/amd64} ports: - "8081:80" volumes: - repository:/srv/fossology/repository/ - database:/var/lib/postgresql/data

  1. Create a starter script that automatically detects the architecture and configures Docker appropriately:
  2. Update documentation to include architecture-specific instructions for both ARM64 and x86_64 systems.

Alternative Approach

if full implementation of the above solution is deemed too complex, even just documenting the workaround for ARM64 users would be valuable :
DOCKER_PLATFORM=linux/amd64 docker-compose -f docker-compose.dev.yml up

Versions

  • Last commit id on master: 5ffcf5d
  • Operating System (lsb_release -a): macOS(on Apple Silicon / M-series chip)
  • Browser : chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions