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

Missing Files and Project Setup Errors in Adminer Container #235

Open
shqipi opened this issue Oct 25, 2024 · 0 comments
Open

Missing Files and Project Setup Errors in Adminer Container #235

shqipi opened this issue Oct 25, 2024 · 0 comments

Comments

@shqipi
Copy link

shqipi commented Oct 25, 2024

Environment Details:

  • OS: Ubuntu 23.10.1 Desktop (amd64)
  • Docker Version: 20.10.x
  • Docker Compose Version: 2.x
  • Repo: [Name of Your Project/Repository]
  • Command Used:
    1. make docker-build
    2. docker compose up -d

Issue Description

After executing the commands to build and run the containers, the remp-master-adminer container logs display several issues related to missing files and project configuration. Below is the relevant log output:

Adminer Container Log Output:

cp: cannot stat '.env.example': No such file or directory
Composer could not find a composer.json file in /home/docker
To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
Usage Error: No project found in /home/docker

$ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--skip-builds]
chmod: cannot access 'node_modules': No such file or directory
Unknown Syntax Error: Not enough positional arguments.

$ yarn link [-A,--all] [-p,--private] [-r,--relative] <destination>
Usage Error: No project found in /home/docker

npm error code ENOENT
npm error syscall open
npm error path /home/docker/package.json
npm error errno -2
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/docker/package.json'
npm error enoent This is related to npm not being able to find a file.
npm error enoent

npm error A complete log of this run can be found in: /home/docker/.npm/_logs/2024-10-25T13_21_13_169Z-debug-0.log

Expected Behavior:

The container should start correctly with all dependencies installed.
The .env file should be copied from .env.example if it does not already exist.
Composer dependencies and Yarn packages should install without issues.

Observed Behavior:

The container fails to locate .env.example.
composer.json is not found in /home/docker.
node_modules is missing, causing Yarn commands to fail.
There is an issue with permissions related to the cache or mounted directories.

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