Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/stories/dolphin.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ git clone https://www.github.com/graycoreio/mage2docker \
[The process of creating a Magento account is fully documented by Magento and you should follow their process](https://docs.magento.com/m2/ce/user_guide/magento/magento-account-create.html).

### Configuring Composer
In case you have not done so, we will add your Magento composer authentication credentials to your user's local `auth.json`.
In case you have not done so, we will add your Magento composer authentication credentials to your user's local `auth.json`. Alternatively, if you are using codespaces you can create a new secret that will be injected in your container
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you link to the two modes?


#### Local devcontainer

First check to see if you have a credentials file under `~/.composer/auth.json`.

Expand All @@ -33,6 +35,10 @@ If you don't see your credentials there, [you can follow the Magento 2 guide to
cp /path/to/magento/project/auth.json.sample ~/.composer/auth.json
```

#### Codespaces configuration
Github Codespaces allows you to create secret environment variables that are injected in your container when it is created.
To do so, go to **Settings -> Codespaces** and there you'll see a `Codespaces secrets` section. Click on New Secret, name it **`COMPOSER_AUTH`** and put the complete authorization json in the value
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you drop a screenshot in there?


### Per-project configuration
We recommend using `auth.json` in your user's directory, but when you're working on multiple Magento 2 applications at once, you may need multiple `auth.json`. You can simply add the `auth.json` to the root of your Magento 2 project after project creation, and composer will use those credentials instead.

Expand Down