Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
2d7b780e
Commit
2d7b780e
authored
Mar 01, 2019
by
salvo-github
Committed by
Shao Yu-Lung (Allen)
Mar 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auth file for magento 2 installation (#2022)
parent
cf6a9ba2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
0 deletions
+39
-0
index.md
DOCUMENTATION/content/documentation/index.md
+17
-0
docker-compose.yml
docker-compose.yml
+1
-0
env-example
env-example
+1
-0
Dockerfile
workspace/Dockerfile
+12
-0
auth.json
workspace/auth.json
+8
-0
No files found.
DOCUMENTATION/content/documentation/index.md
View file @
2d7b780e
...
...
@@ -1543,6 +1543,23 @@ Enabling Global Composer Install during the build for the container allows you t
<br>
<a name="Magento-2-authentication-credentials"></a>
## Magento 2 authentication credential (composer install)
1 - Open the `.env` file
2 - Search for the `WORKSPACE_COMPOSER_AUTH` argument under the Workspace Container and set it to `true`
3 - Now add your credentials to `workspace/auth.json`
4 - Re-build the Workspace Container `docker-compose build workspace`
<br>
<a name="Install-Prestissimo"></a>
## Install Prestissimo
...
...
docker-compose.yml
View file @
2d7b780e
...
...
@@ -78,6 +78,7 @@ services:
-
INSTALL_AEROSPIKE=${WORKSPACE_INSTALL_AEROSPIKE}
-
INSTALL_V8JS=${WORKSPACE_INSTALL_V8JS}
-
COMPOSER_GLOBAL_INSTALL=${WORKSPACE_COMPOSER_GLOBAL_INSTALL}
-
COMPOSER_AUTH=${WORKSPACE_COMPOSER_AUTH}
-
COMPOSER_REPO_PACKAGIST=${WORKSPACE_COMPOSER_REPO_PACKAGIST}
-
INSTALL_WORKSPACE_SSH=${WORKSPACE_INSTALL_WORKSPACE_SSH}
-
INSTALL_LARAVEL_ENVOY=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
...
...
env-example
View file @
2d7b780e
...
...
@@ -82,6 +82,7 @@ DOCKER_SYNC_STRATEGY=native_osx
### WORKSPACE #############################################
WORKSPACE_COMPOSER_GLOBAL_INSTALL=true
WORKSPACE_COMPOSER_AUTH=false
WORKSPACE_COMPOSER_REPO_PACKAGIST=
WORKSPACE_INSTALL_NODE=true
WORKSPACE_NODE_VERSION=node
...
...
workspace/Dockerfile
View file @
2d7b780e
...
...
@@ -118,6 +118,9 @@ USER root
# Add the composer.json
COPY
./composer.json /home/laradock/.composer/composer.json
# Add the auth.json for magento 2 credentials
COPY
./auth.json /home/laradock/.composer/auth.json
# Make sure that ~/.composer belongs to laradock
RUN
chown
-R
laradock:laradock /home/laradock/.composer
...
...
@@ -132,6 +135,15 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
composer global install \
;fi
# Check if auth file is disabled
ARG
COMPOSER_AUTH=false
ENV
COMPOSER_AUTH ${COMPOSER_AUTH}
RUN if
[
${
COMPOSER_AUTH
}
=
false
]
;
then
\
# remove the file
rm /home/laradock/.composer/auth.json
;fi
ARG
COMPOSER_REPO_PACKAGIST
ENV
COMPOSER_REPO_PACKAGIST ${COMPOSER_REPO_PACKAGIST}
...
...
workspace/auth.json
0 → 100644
View file @
2d7b780e
{
"http-basic"
:
{
"repo.magento.com"
:
{
"username"
:
""
,
"password"
:
""
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment