Yes, mostly it's SSH key. The repo is private and it can't be reached from the container.
Aug 3, 2023
1
Level 9
Docker composer install
When I try to run this command from the docs https://laravel.com/docs/9.x/sail#installing-composer-dependencies-for-existing-projects
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs
I get the following error https://media.discordapp.net/attachments/1136032482014277766/1136710643051933796/image.png?width=1440&height=351
I'm not sure why, the package it's trying to install here is one our team made, I'm not sure if it's an issue with ssh keys since it's running in a container? I'm new to using Docker/Sail.
This is my composer.json file
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"repositories": [
{ "type": "vcs", "url": "[email protected]:salcomsa/idp-conector.git" }
],
"require": {
"php": "^8.0.2",
"aacotroneo/laravel-saml2": "^2.1",
"ankurk91/laravel-eloquent-relationships": "^1.2",
"awobaz/compoships": "^2.1",
"calebporzio/sushi": "^2.4",
"doctrine/dbal": "^3.6",
"fruitcake/laravel-cors": "^2.0",
"geekcom/phpjasper": "^3.3",
"genealabs/laravel-model-caching": "^0.12.5",
"guzzlehttp/guzzle": "^7.0.1",
"inertiajs/inertia-laravel": "^0.6.3",
"kalnoy/nestedset": "^6.0",
"laravel/framework": "^9.0",
"laravel/passport": "^10.1",
"laravel/sanctum": "^2.6",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.2",
"maatwebsite/excel": "^3.1",
"myclabs/deep-copy": "^1.11",
"owen-it/laravel-auditing": "^13.0",
"phpoffice/phppresentation": "^1.0",
"pusher/pusher-php-server": "^7.2",
"rap2hpoutre/laravel-log-viewer": "^2.2.0",
"salcomsa/idp-sdk": "dev-master",
"spatie/laravel-permission": "^5.7",
"stancl/tenancy": "^3.4",
"tightenco/ziggy": "^1.0"
},
"require-dev": {
"spatie/laravel-ignition": "^1.0",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.3.3"
},
"autoload": {
"psr-4": {
"App\": "app/",
"Database\Factories\": "database/factories/",
"Database\Seeders\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
How can I get this to install?
Please or to participate in this conversation.