Skip to content
Snippets Groups Projects
Commit e4f645b8 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Updates for GitLab path changes

parent 78c77ffc
No related branches found
No related tags found
No related merge requests found
Pipeline #33825 passed
image: registry.gitlab.tugraz.at/dbp/middleware/dbp-api/api-server-template/main:v1 image: registry.gitlab.tugraz.at/dbp/dbp-api/api-server-template/main:v1
before_script: before_script:
- 'git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.tugraz.at/".insteadOf "git@gitlab.tugraz.at:"' - 'git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.tugraz.at/".insteadOf "git@gitlab.tugraz.at:"'
......
* In case of an incompatible change increase the tag version number in build.sh * In case of an incompatible change increase the tag version number in build.sh
* ./build.sh * ./build.sh
* (first time) sudo docker login registry.gitlab.tugraz.at * (first time) sudo docker login registry.gitlab.tugraz.at
* sudo docker push registry.gitlab.tugraz.at/dbp/middleware/dbp-api/api-server-template/main:v1 * sudo docker push registry.gitlab.tugraz.at/dbp/dbp-api/api-server-template/main:v1
\ No newline at end of file \ No newline at end of file
#!/bin/bash #!/bin/bash
set -e set -e
TAG="registry.gitlab.tugraz.at/dbp/middleware/dbp-api/api-server-template/main:v1" TAG="registry.gitlab.tugraz.at/dbp/dbp-api/api-server-template/main:v1"
sudo docker build --tag "${TAG}" --file "Dockerfile" . sudo docker build --tag "${TAG}" --file "Dockerfile" .
sudo docker run --rm --security-opt label=disable \ sudo docker run --rm --security-opt label=disable \
--volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \ --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \
......
...@@ -4,8 +4,8 @@ This repository can be used as a template/starting point for your own API instan ...@@ -4,8 +4,8 @@ This repository can be used as a template/starting point for your own API instan
It consists of a minimally configures Symfony application and development environment It consists of a minimally configures Symfony application and development environment
and includes/integrates: and includes/integrates:
* The [dbp/api-core-bundle](https://gitlab.tugraz.at/dbp/middleware/dbp-api/api-core-bundle): Which provides authentication, some same base end points and entities and configuration for [api-platform](https://api-platform.com/) * The [dbp/api-core-bundle](https://gitlab.tugraz.at/dbp/dbp-api/api-core-bundle): Which provides authentication, some same base end points and entities and configuration for [api-platform](https://api-platform.com/)
* The [dbp/api-starter-bundle](https://gitlab.tugraz.at/dbp/middleware/dbp-api/api-starter-bundle): Which acts as a template for creating new bundles as * The [dbp/api-starter-bundle](https://gitlab.tugraz.at/dbp/dbp-api/api-starter-bundle): Which acts as a template for creating new bundles as
we as an example for what can be done in a bundle. we as an example for what can be done in a bundle.
* A docker-compose based development environment * A docker-compose based development environment
* Linter/Unittest integration * Linter/Unittest integration
......
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
"repositories": [ "repositories": [
{ {
"type": "vcs", "type": "vcs",
"url": "https://gitlab.tugraz.at/dbp/middleware/dbp-api/api-core-bundle.git" "url": "https://gitlab.tugraz.at/dbp/dbp-api/api-core-bundle.git"
}, },
{ {
"type": "vcs", "type": "vcs",
"url": "https://gitlab.tugraz.at/dbp/middleware/dbp-api/api-starter-bundle.git" "url": "https://gitlab.tugraz.at/dbp/dbp-api/api-starter-bundle.git"
} }
], ],
"config": { "config": {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "0eaab40bd6e1990a5a489e0f5e78de42", "content-hash": "b645c9d169be4edf2c25919e106535bc",
"packages": [ "packages": [
{ {
"name": "api-platform/core", "name": "api-platform/core",
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
"version": "dev-main", "version": "dev-main",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://gitlab.tugraz.at/dbp/middleware/dbp-api/api-core-bundle.git", "url": "https://gitlab.tugraz.at/dbp/dbp-api/api-core-bundle.git",
"reference": "7ee0cb4d5e73b2926070d6c8d7e4213367b86e8c" "reference": "7ee0cb4d5e73b2926070d6c8d7e4213367b86e8c"
}, },
"require": { "require": {
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
"web-token/jwt-signature-algorithm-rsa": "^2.1" "web-token/jwt-signature-algorithm-rsa": "^2.1"
}, },
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "^2.17", "friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^0.12.33", "phpstan/phpstan": "^0.12.33",
"phpstan/phpstan-phpunit": "^0.12.13", "phpstan/phpstan-phpunit": "^0.12.13",
"symfony/browser-kit": "^5.2", "symfony/browser-kit": "^5.2",
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
"@php vendor/bin/php-cs-fixer --ansi fix" "@php vendor/bin/php-cs-fixer --ansi fix"
], ],
"cs": [ "cs": [
"@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff --diff-format=udiff" "@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff"
], ],
"coverage": [ "coverage": [
"@php vendor/bin/simple-phpunit --coverage-html _coverage" "@php vendor/bin/simple-phpunit --coverage-html _coverage"
...@@ -309,7 +309,7 @@ ...@@ -309,7 +309,7 @@
"version": "dev-main", "version": "dev-main",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://gitlab.tugraz.at/dbp/middleware/dbp-api/api-starter-bundle.git", "url": "https://gitlab.tugraz.at/dbp/dbp-api/api-starter-bundle.git",
"reference": "12182ca139a35339813b15448d7800e87288e870" "reference": "12182ca139a35339813b15448d7800e87288e870"
}, },
"require": { "require": {
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
"symfony/framework-bundle": "^5.2" "symfony/framework-bundle": "^5.2"
}, },
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "^2.16", "friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^0.12.33", "phpstan/phpstan": "^0.12.33",
"phpstan/phpstan-phpunit": "^0.12.13", "phpstan/phpstan-phpunit": "^0.12.13",
"symfony/browser-kit": "^5.2", "symfony/browser-kit": "^5.2",
...@@ -361,7 +361,7 @@ ...@@ -361,7 +361,7 @@
"@php vendor/bin/php-cs-fixer --ansi fix" "@php vendor/bin/php-cs-fixer --ansi fix"
], ],
"cs": [ "cs": [
"@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff --diff-format=udiff" "@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff"
], ],
"coverage": [ "coverage": [
"@php vendor/bin/simple-phpunit --coverage-html _coverage" "@php vendor/bin/simple-phpunit --coverage-html _coverage"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment