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

Docker: can not load config file #20

Open
Yvan-Masson opened this issue Dec 26, 2024 · 0 comments
Open

Docker: can not load config file #20

Yvan-Masson opened this issue Dec 26, 2024 · 0 comments

Comments

@Yvan-Masson
Copy link

Yvan-Masson commented Dec 26, 2024

Hi,

I built the Docker image as described in #19. Anonymizer properly guess the DB fields it can anonymize.

When trying to anonymize it fails at reading/parsing the config file with this error:

In DelegatingLoader.php line 34:
                                                          
  Cannot load resource "/var/www/anonymizer/config.yml".  
                                                          

webnet-fr:anonymizer:anonymize [-U|--url URL] [-t|--type TYPE] [-H|--host HOST] [-P|--port PORT] [-d|--database DATABASE] [-u|--user USER] [-p|--password PASSWORD] [--] <config>

The file is 'detected' because if I specify a wrong path the error message is clearer:

Configuration file "non-existent-file.yml" does not exist.

I confirm that the file is world-readable and is YAML valid. Also, I tried with the example provided in the README (simplified, below) with exact same result. The config tried:

webnet_fr_database_anonymizer:
  tables:
    users:    
      fields:
        email:    
          generator: faker    
          formatter: email    
          unique: ~

Maybe because I built the Docker image with PHP 8.2 instead of 7.2?

Regards,
Yvan

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

1 participant