This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sf() { | |
if [ -f ./vendor/bin/contao-console ]; then | |
./vendor/bin/contao-console $@ | |
return $? | |
fi; | |
if [ -f ./bin/console ]; then | |
./bin/console $@ | |
return $? | |
fi; | |
if [ -f ./app/console ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Kernel; | |
use Symfony\Component\Debug\Debug; | |
use Symfony\Component\Dotenv\Dotenv; | |
use Symfony\Component\HttpFoundation\Request; | |
require __DIR__.'/../vendor/autoload.php'; | |
// The check is to ensure we don't use .env in production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /jobs | |
Content-Type: application/json | |
Accept: application/json | |
{ | |
"composerJson": { | |
"name": "...", | |
"version": "...", | |
"requires": { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.1 201 Created | |
Location: /jobs/5241c3603853e648127910e71ea235b7 | |
Content-Type: application/json; charset=UTF-8 | |
{ | |
"jobId": "5241c3603853e648127910e71ea235b7", | |
"status": "queued", | |
"retries": 0, | |
"worker": "worker-hostname", | |
"links": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Action; | |
use App\Entity\User; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
use Symfony\Component\Routing\Annotation\Route; | |
class ProfileAction extends Controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: docker:stable | |
services: | |
- docker:dind | |
stages: | |
- build | |
- deploy | |
variables: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: {{ .Values.web.name }} | |
labels: | |
my-super-app: {{ .Values.web.name }} | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: {{ .Values.web.name }} | |
labels: | |
my-super-app: {{ .Values.web.name }} | |
spec: | |
ports: | |
- name: http | |
port: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: {{ .Values.web.name }}-ingress | |
annotations: | |
kubernetes.io/ingress.class: traefik | |
spec: | |
rules: | |
- host: {{ .Values.web.host }} | |
http: |