Skip to content

CloudFoundry Executor with runner manager using cf push

Paul Hirsch requested to merge pauldoom/execute-new-app into main

Hopping off work by @mogul I am trying a slightly different executor approach that would allow using images chosen on-the-fly and managing the lifecycle of the child runner directly.

Startup times for a do-nothing Cloud.gov app seem to run under 30 seconds with teardown under 10 seconds. Using a nearby OCI image might bring that down more.

This is PR gets basic functionality in place. A complete run with the following .gitlab-ci.yml takes about 2 minutes and 40 seconds. Follow on PRs can work on shrinking this down.

variables:
  # DELETE JOB LOGS AFTER TURNING THIS OFF
  CI_DEBUG_TRACE: "true"
stages:
- build
- test
- deploy
build-job:
  stage: build
  script:
  - echo "Compiling the code..."
  - echo "Compile complete."
unit-test-job:
  stage: test
  script:
  - echo "Running unit tests... This will take about 10 seconds."
  - sleep 10
  - echo "Code coverage is 0%, loser"
lint-test-job:
  stage: test
  script:
  - echo "Linting code... This will take about 10 seconds."
  - sleep 10
  - echo "Your code is most foul."
deploy-job:
  environment: production
  stage: deploy
  script:
  - echo "Deploying application..."
  - echo "Application deployed - Service is down."

image

Merge request reports

Loading