Skip to content

Commit

Permalink
Include auth.json to install dependencies in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurmmoreira committed Sep 15, 2023
1 parent 5ab2221 commit 94bff75
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.DS_Store

# Magento authentication file
auth.json
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@

<ol>
<li> Install docker and docker-compose.
<li> Run the following script: <code><em>docker-compose up</em></code> </li>
<li> Wait the container to start (it may take a while)</li>
<li> Create a `auth.json` file copying it from `auth.json.example` according to https://experienceleague.adobe.com/docs/commerce-cloud-service/user-guide/develop/authentication-keys.html?lang=en.</li>
<li> Run the following script: <code><em>docker-compose up</em></code>.</li>
<li> Wait the container to start (it may take a while).</li>
<li> Run `composer install` inside the magento container.<li>
</ol>

### Install manually
Expand Down
8 changes: 8 additions & 0 deletions auth.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"http-basic": {
"repo.magento.com": {
"username": "<USERNAME>",
"password": "<PASSWORD>"
}
}
}
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
volumes:
- magento_data:/bitnami/magento
- .:/bitnami/magento/vendor/mondu/magento2-payment/
- ./auth.json:/bitnami/magento/auth.json
depends_on:
mariadb:
condition: service_healthy
Expand Down

0 comments on commit 94bff75

Please sign in to comment.