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
Branches
Tags
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:
- '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
* ./build.sh
* (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
\ No newline at end of file
* sudo docker push registry.gitlab.tugraz.at/dbp/dbp-api/api-server-template/main:v1
\ No newline at end of file
#!/bin/bash
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 run --rm --security-opt label=disable \
--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
It consists of a minimally configures Symfony application and development environment
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-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-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/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.
* A docker-compose based development environment
* Linter/Unittest integration
......
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "0eaab40bd6e1990a5a489e0f5e78de42",
"content-hash": "b645c9d169be4edf2c25919e106535bc",
"packages": [
{
"name": "api-platform/core",
......@@ -225,7 +225,7 @@
"version": "dev-main",
"source": {
"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"
},
"require": {
......@@ -252,7 +252,7 @@
"web-token/jwt-signature-algorithm-rsa": "^2.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.17",
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^0.12.33",
"phpstan/phpstan-phpunit": "^0.12.13",
"symfony/browser-kit": "^5.2",
......@@ -293,7 +293,7 @@
"@php vendor/bin/php-cs-fixer --ansi fix"
],
"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": [
"@php vendor/bin/simple-phpunit --coverage-html _coverage"
......@@ -309,7 +309,7 @@
"version": "dev-main",
"source": {
"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"
},
"require": {
......@@ -320,7 +320,7 @@
"symfony/framework-bundle": "^5.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^0.12.33",
"phpstan/phpstan-phpunit": "^0.12.13",
"symfony/browser-kit": "^5.2",
......@@ -361,7 +361,7 @@
"@php vendor/bin/php-cs-fixer --ansi fix"
],
"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": [
"@php vendor/bin/simple-phpunit --coverage-html _coverage"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment