Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
docker-yii2-app
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
docker-yii2-app
Commits
ffe32682
Commit
ffe32682
authored
Jan 22, 2018
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed paths
parent
2fc6666c
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3423 additions
and
14 deletions
+3423
-14
Dockerfile
Dockerfile
+5
-3
main.php
config/main.php
+0
-7
_bootstrap.php
tests/codeception/_bootstrap.php
+1
-1
test.php
tests/codeception/_config/test.php
+1
-1
FunctionalTesterActions.php
...deception/_support/_generated/FunctionalTesterActions.php
+2941
-0
UnitTesterActions.php
tests/codeception/_support/_generated/UnitTesterActions.php
+473
-0
yii
yii
+2
-2
No files found.
Dockerfile
View file @
ffe32682
...
...
@@ -3,13 +3,15 @@ FROM yiisoftware/yii2-php:7.2-apache
WORKDIR
/app
ADD
composer.lock composer.json /app/
RUN
composer
install
--prefer-dist
--optimize-autoloader
RUN
composer
install
--prefer-dist
--optimize-autoloader
--no-dev
&&
\
composer clear-cache
ADD
yii /app/
ADD
./config /app/config
ADD
./web /app/web/
ADD
./src /app/src/
RUN
cp
src/app.env-dist src/app.env
ADD
./config /app/config
RUN
cp
config/app.env-dist config/app.env
RUN
mkdir
-p
runtime web/assets
&&
\
chmod
-R
775 runtime web/assets
&&
\
...
...
config/main.php
View file @
ffe32682
...
...
@@ -9,13 +9,6 @@
* file that was distributed with this source code.
*/
// Define application aliases
Yii
::
setAlias
(
'@app'
,
dirname
(
__DIR__
)
.
'/../src'
);
Yii
::
setAlias
(
'@root'
,
'..'
);
Yii
::
setAlias
(
'@runtime'
,
'@root/runtime'
);
Yii
::
setAlias
(
'@web'
,
'@root/web'
);
Yii
::
setAlias
(
'@webroot'
,
'/'
);
// Load $merge configuration files
$applicationType
=
php_sapi_name
()
==
'cli'
?
'console'
:
'web'
;
$env
=
YII_ENV
;
...
...
tests/codeception/_bootstrap.php
View file @
ffe32682
...
...
@@ -4,7 +4,7 @@
$rootPath
=
__DIR__
.
'/../..'
;
require
(
$rootPath
.
'/vendor/autoload.php'
);
require
(
$rootPath
.
'/
src/
config/env.php'
);
require
(
$rootPath
.
'/config/env.php'
);
if
(
getenv
(
'YII_ENV'
)
!==
'test'
)
{
echo
"Error: YII_ENV must be set to 'test'
\n
"
;
...
...
tests/codeception/_config/test.php
View file @
ffe32682
...
...
@@ -15,7 +15,7 @@ $_SERVER['HOST_NAME'] = 'web';
$applicationType
=
'web'
;
return
yii\helpers\ArrayHelper
::
merge
(
require
(
__DIR__
.
'/../../../
src/
config/main.php'
),
require
(
__DIR__
.
'/../../../config/main.php'
),
[
'components'
=>
[
'request'
=>
[
...
...
tests/codeception/_support/_generated/FunctionalTesterActions.php
0 → 100644
View file @
ffe32682
This diff is collapsed.
Click to expand it.
tests/codeception/_support/_generated/UnitTesterActions.php
0 → 100644
View file @
ffe32682
This diff is collapsed.
Click to expand it.
yii
View file @
ffe32682
...
...
@@ -15,13 +15,13 @@ defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
defined
(
'STDOUT'
)
or
define
(
'STDOUT'
,
fopen
(
'php://stdout'
,
'w'
));
require
(
__DIR__
.
'/vendor/autoload.php'
);
require
(
__DIR__
.
'/
src/
config/env.php'
);
require
(
__DIR__
.
'/config/env.php'
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
(
boolean
)
getenv
(
'YII_DEBUG'
));
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
getenv
(
'YII_ENV'
));
require
(
__DIR__
.
'/vendor/yiisoft/yii2/Yii.php'
);
$config
=
require
(
__DIR__
.
'/
src/
config/main.php'
);
$config
=
require
(
__DIR__
.
'/config/main.php'
);
$application
=
new
yii\console\Application
(
$config
);
$exitCode
=
$application
->
run
();
...
...
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