Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
skeleton-application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
skeleton-application
Commits
286d1449
Commit
286d1449
authored
3 years ago
by
Bertrand Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
Correction de la doc : abandon de la stratégie 'composer create-project' (pb si proxy)
parent
7958687a
No related branches found
No related tags found
No related merge requests found
Pipeline
#15194
passed
3 years ago
Stage: publish
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+34
-7
34 additions, 7 deletions
README.md
with
34 additions
and
7 deletions
README.md
+
34
−
7
View file @
286d1449
...
...
@@ -16,22 +16,49 @@ environnement PHP dont on maîtrise la version. Pour obtenir puis construire cet
### Création des sources de l'application
-
Pour obtenir le master des sources du squelette d'application :
```
bash
APP_DIR
=
newapp
git clone git@git.unicaen.fr:lib/unicaen/skeleton-application.git
${
APP_DIR
}
cd
${
APP_DIR
}
```
-
Puis pour installer les dépendances PHP :
```
bash
# si vous avez la joie d'être derrière un proxy :
#HTTP_PROXY=http://10.14.128.99:3128
#HTTPS_PROXY=${HTTP_PROXY}
#NO_PROXY=unicaen.fr,localhost
PHP_VERSION
=
7.3
docker run
\
--rm
\
-v
$PWD
:/app
\
-w
/app unicaen-dev-php
${
PHP_VERSION
}
-apache
\
composer create-project
--repository
https://gest.unicaen.fr/packagist unicaen/skeleton-application
${
APP_DIR
}
cd
${
APP_DIR
}
-w
/app
\
--env
HTTP_PROXY
\
--env
HTTPS_PROXY
\
--env
NO_PROXY
\
unicaen-dev-php
${
PHP_VERSION
}
-apache
\
composer
install
```
Cette commande
`composer create-project`
fait un
`git clone`
pour obtenir le dernier tag des sources du squelette
d'application, puis un
`composer install`
pour installer les dépendances PHP.
-
Puis pour installer les fichiers de config exemples :
```
bash
docker run
\
--rm
\
-v
$PWD
:/app
\
-w
/app
\
--env
HTTP_PROXY
\
--env
HTTPS_PROXY
\
--env
NO_PROXY
\
unicaen-dev-php
${
PHP_VERSION
}
-apache
\
composer run-script
"post-create-project-cmd"
```
### Droits d'écriture
...
...
@@ -39,7 +66,7 @@ Comme les commandes lancées via Docker (comme ici, `composer`) sont exécutées
sur les fichiers créés.
```
bash
sudo chown
-R
${
USER
}
.
sudo chown
-R
${
USER
}
:
${
USER
}
.
```
### Création du dépôt git
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment