q-shift / qshift-templates

Backstage templates for the Qshift demo
Apache License 2.0
1 stars 3 forks source link

Enable or disable the maven parameter: -Dquarkus.package.type=native-sources #50

Closed cmoulliard closed 5 months ago

cmoulliard commented 5 months ago
cmoulliard commented 5 months ago

Tests succeeded to test this change with: 3.8 or 3.9

Screenshot 2024-04-17 at 11 28 47

JSON files tested locally with backstage-playground

Test: 3.8

cat<<EOF > quarkus-38.json
{
  "templateRef": "template:default/quarkus-application",
  "values": {
    "component_id": "38-quarkus-app",
    "owner": "user:default/guest",
    "native": false,
    "quarkusVersion": "io.quarkus.platform:3.8",
    "groupId": "io.quarkus",
    "artifactId": "my-quarkus-app",
    "version": "1.0.0-SNAPSHOT",
    "java_package_name": "io.quarkus.demo",
    "description": "A cool quarkus app",
    "javaVersion": "17",
    "buildTool": "MAVEN",
    "database": "quarkus-jdbc-postgresql",
    "healthEndpoint": true,
    "metricsEndpoint": true,
    "infoEndpoint": true,
    "extensions": [
      "io.quarkus:quarkus-resteasy-reactive-jackson",
      "io.quarkus:quarkus-hibernate-orm-rest-data-panache"
    ],
    "repo": {
      "host": "github.com",
      "org": "ch007m"
    },
    "namespace": "cmoullia",
    "imageRepository": "quay.io",
    "virtualMachineName": "quarkus-dev",
    "virtualMachineNamespace": "cmoullia",
    "imageUrl": "quay.io/ch007m/my-quarkus"
  },
  "secrets": {}
}
EOF
curl 'http://localhost:7007/api/scaffolder/v2/tasks' \
  -H 'Content-Type: application/json' \
  -d @quarkus-38.json

Test: 3.9

cat<<EOF > quarkus-39.json
{
  "templateRef": "template:default/quarkus-application",
  "values": {
    "component_id": "39-quarkus-app",
    "owner": "user:default/guest",
    "native": false,
    "quarkusVersion": "io.quarkus.platform:3.9",
    "groupId": "io.quarkus",
    "artifactId": "my-quarkus-app",
    "version": "1.0.0-SNAPSHOT",
    "java_package_name": "io.quarkus.demo",
    "description": "A cool quarkus app",
    "javaVersion": "17",
    "buildTool": "MAVEN",
    "database": "quarkus-jdbc-postgresql",
    "healthEndpoint": true,
    "metricsEndpoint": true,
    "infoEndpoint": true,
    "extensions": [
      "io.quarkus:quarkus-resteasy",
      "io.quarkus:quarkus-resteasy-jackson",
      "io.quarkus:quarkus-hibernate-orm-rest-data-panache"
    ],
    "repo": {
      "host": "github.com",
      "org": "ch007m"
    },
    "namespace": "cmoullia",
    "imageRepository": "quay.io",
    "virtualMachineName": "quarkus-dev",
    "virtualMachineNamespace": "cmoullia",
    "imageUrl": "quay.io/ch007m/my-quarkus"
  },
  "secrets": {}
}
EOF

curl 'http://localhost:7007/api/scaffolder/v2/tasks' \
  -H 'Content-Type: application/json' \
  -d @quarkus-39.json