Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
Doorcode
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guardians of the Kretschmar Elock System
Doorcode
Commits
54238f07
Commit
54238f07
authored
May 18, 2020
by
Jacob Priddy
👌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove references to web folder and fix
parent
5b4ebaf5
Pipeline
#9092
passed with stages
in 3 minutes and 1 second
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
24 deletions
+78
-24
.gitlab-ci.yml
.gitlab-ci.yml
+9
-9
Dockerfile
Dockerfile
+1
-1
docker-compose.yml.example
docker-compose.yml.example
+2
-2
src/backend/composer.lock
src/backend/composer.lock
+65
-11
src/backend/src/Authorization/ApiAuthorizer.php
src/backend/src/Authorization/ApiAuthorizer.php
+1
-1
No files found.
.gitlab-ci.yml
View file @
54238f07
...
...
@@ -14,40 +14,40 @@ stages:
build_web_backend
:
stage
:
build
script
:
-
src/
web/
backend/install-dev.sh
-
src/backend/install-dev.sh
artifacts
:
paths
:
-
src/
web/
backend/vendor
-
src/
web/
backend/.env
-
src/
web/
backend/composer.lock
-
src/backend/vendor
-
src/backend/.env
-
src/backend/composer.lock
# Currently set to build timeout
expire_in
:
1 hour
build_web_frontend
:
stage
:
build
script
:
-
src/
web/
frontend/install-dev.sh
-
src/frontend/install-dev.sh
test_php_styles
:
stage
:
test
script
:
-
cd src/
web/
backend
-
cd src/backend
-
vendor/bin/php-cs-fixer fix --config=.php_cs -v --dry-run --stop-on-violation --using-cache=no
test_web_backend_unit
:
stage
:
test
script
:
-
cd src/
web/
backend
-
cd src/backend
-
vendor/bin/phpunit --testsuite Unit
test_web_backend_feature
:
stage
:
test
script
:
-
cd src/
web/
backend
-
cd src/backend
-
vendor/bin/phpunit --testsuite Feature
test_web_backend_database
:
stage
:
test
script
:
-
cd src/
web/
backend
-
cd src/backend
-
vendor/bin/phpunit --testsuite Database
Dockerfile
View file @
54238f07
...
...
@@ -36,7 +36,7 @@ RUN groupadd -g 1000 www && \
useradd
-u
1000
-ms
/bin/bash
-g
www www
# Copy existing application directory permissions
COPY
--chown=www:www src/
web
${WORKDIR}
COPY
--chown=www:www src/ ${WORKDIR}
COPY
php/dev.ini /usr/local/etc/php/conf.d/local.ini
# Change current user to www
...
...
docker-compose.yml.example
View file @
54238f07
...
...
@@ -28,7 +28,7 @@ services:
ports:
- "8080:443"
volumes:
- ./src
/web
:/var/www
- ./src:/var/www
- ./nginx/conf.d/:/etc/nginx/conf.d
- ./nginx/dhparam/:/run/dhparam
# Saml config
...
...
@@ -78,7 +78,7 @@ services:
dockerfile: Dockerfile
container_name: api
volumes:
- ./src
/web
:/var/www
- ./src:/var/www
- ./php/dev.ini:/usr/local/etc/php/conf.d/local.ini
# Map saml files to the php-fpm server so it has access to them as well
- ./simplesamlphp-1.18.5:/var/simplesamlphp
...
...
src/backend/composer.lock
View file @
54238f07
...
...
@@ -102,6 +102,12 @@
"brick",
"math"
],
"funding": [
{
"url": "https://tidelift.com/funding/github/packagist/brick/math",
"type": "tidelift"
}
],
"time": "2020-04-15T15:59:35+00:00"
},
{
...
...
@@ -848,16 +854,16 @@
},
{
"name": "league/flysystem",
"version": "1.0.6
8
",
"version": "1.0.6
9
",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "
3e4198372276ec99ac3409a21d7c9d1ced9026e4
"
"reference": "
7106f78428a344bc4f643c233a94e48795f10967
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/
3e4198372276ec99ac3409a21d7c9d1ced9026e4
",
"reference": "
3e4198372276ec99ac3409a21d7c9d1ced9026e4
",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/
7106f78428a344bc4f643c233a94e48795f10967
",
"reference": "
7106f78428a344bc4f643c233a94e48795f10967
",
"shasum": ""
},
"require": {
...
...
@@ -934,7 +940,7 @@
"type": "other"
}
],
"time": "2020-05-1
2T20:33:44
+00:00"
"time": "2020-05-1
8T15:13:39
+00:00"
},
{
"name": "monolog/monolog",
...
...
@@ -1670,6 +1676,12 @@
"identifier",
"uuid"
],
"funding": [
{
"url": "https://github.com/ramsey",
"type": "github"
}
],
"time": "2020-03-29T20:13:32+00:00"
},
{
...
...
@@ -3519,6 +3531,24 @@
"clean",
"php"
],
"funding": [
{
"url": "https://www.paypal.me/moelleken",
"type": "custom"
},
{
"url": "https://github.com/voku",
"type": "github"
},
{
"url": "https://www.patreon.com/voku",
"type": "patreon"
},
{
"url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii",
"type": "tidelift"
}
],
"time": "2020-03-13T01:23:26+00:00"
}
],
...
...
@@ -3672,6 +3702,12 @@
"Xdebug",
"performance"
],
"funding": [
{
"url": "https://packagist.com",
"type": "custom"
}
],
"time": "2020-03-01T12:26:26+00:00"
},
{
...
...
@@ -3851,20 +3887,26 @@
"flare",
"reporting"
],
"funding": [
{
"url": "https://www.patreon.com/spatie",
"type": "patreon"
}
],
"time": "2020-03-02T15:52:04+00:00"
},
{
"name": "facade/ignition",
"version": "2.0.
2
",
"version": "2.0.
4
",
"source": {
"type": "git",
"url": "https://github.com/facade/ignition.git",
"reference": "
67f1677954ad33ca6b77f2c41cf43a58624f27fc
"
"reference": "
749fba7bf560fe2600ea55bf8734a7c9b8c30cfd
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/facade/ignition/zipball/
67f1677954ad33ca6b77f2c41cf43a58624f27fc
",
"reference": "
67f1677954ad33ca6b77f2c41cf43a58624f27fc
",
"url": "https://api.github.com/repos/facade/ignition/zipball/
749fba7bf560fe2600ea55bf8734a7c9b8c30cfd
",
"reference": "
749fba7bf560fe2600ea55bf8734a7c9b8c30cfd
",
"shasum": ""
},
"require": {
...
...
@@ -3873,7 +3915,7 @@
"facade/flare-client-php": "^1.0",
"facade/ignition-contracts": "^1.0",
"filp/whoops": "^2.4",
"illuminate/support": "^7.0",
"illuminate/support": "^7.0
|^8.0
",
"monolog/monolog": "^2.0",
"php": "^7.2.5",
"scrivo/highlight.php": "^9.15",
...
...
@@ -3922,7 +3964,7 @@
"laravel",
"page"
],
"time": "2020-0
3-18T19:20:44
+00:00"
"time": "2020-0
5-18T15:20:13
+00:00"
},
{
"name": "facade/ignition-contracts",
...
...
@@ -4118,6 +4160,12 @@
}
],
"description": "A tool to automatically fix PHP code style",
"funding": [
{
"url": "https://github.com/keradus",
"type": "github"
}
],
"time": "2020-04-15T18:51:10+00:00"
},
{
...
...
@@ -5516,6 +5564,12 @@
"highlight.php",
"syntax"
],
"funding": [
{
"url": "https://github.com/allejo",
"type": "github"
}
],
"time": "2020-03-02T05:59:21+00:00"
},
{
...
...
src/backend/src/Authorization/ApiAuthorizer.php
View file @
54238f07
...
...
@@ -35,7 +35,7 @@ class ApiAuthorizer implements Authorizer
/**
* @var string[]
*/
protected
array
$userGroups
;
protected
array
$userGroups
=
[]
;
public
function
__construct
(
?string
$currentUserId
,
...
...
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