Create Your First App and Job

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

Create Your First App And Job

Estimated time: 4 minutes

This step connects the repository, Nomad cluster, job, and first deployment environment in Nomatron.

For this guide, create a NOMAD job.

1. Create The App

Apps tell Nomatron where and how to connect to your chosen repository.

The app repository URL is required. Jobs inherit this repository unless you choose a job-level repository override.

  1. Open your organization.
  2. Go to Apps.
  3. Click New App.
  4. Fill in:
    • Application Name: demo-service
    • Repository URL: <YOUR_REPO_URL>
    • Ref: main
    • Nomad Cluster: dev-cluster
    • GitHub App Integration: choose the integration you just created
  5. Leave Validate repository access before creating enabled.
  6. Click Create.

New App drawer

2. Create The Job

Jobs tell Nomatron which file in the repository to use. The app and its environments decide where the deployment goes.

  1. Open the app.
  2. Go to Jobs.
  3. Click New Job.
  4. Fill in:
    • Job Name: web
    • Jobspec Type: NOMAD
    • Default Namespace: default
    • Group Priority: 10
    • Jobspec Path: <YOUR_JOBSPEC_PATH>
    • Repository Override: leave disabled so the job inherits the app repository
    • Cluster Override: leave empty unless this job should use a different cluster
  5. Click Create.

Do not choose TEMPLATE for this walkthrough.

New Job drawer

3. Create The First App Environment

Apps and jobs can be created before environments, but plan and apply operations need an app environment to target.

  1. Open the app.
  2. Go to Environments.
  3. Click New Environment.
  4. Fill in:
    • Environment Name: dev
    • Namespace: default
    • Cluster Override: leave empty to use the app default cluster
  5. Click Create.

New Environment drawer

4. Confirm The Wiring

On the app and job overview screens, confirm:

  • the effective repository is correct
  • the ref is correct
  • the jobspec path is correct
  • the cluster is correct
  • the dev environment exists

If one of these values is wrong, update it before planning.

To use a different repository for a specific job, enable the repository override on the job and enter that repository URL. Disable the override again to return the job to app repository inheritance.