Skip to content

sengmann/dagger-ui-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DaggerUiTest

Showcase dagger build pipeline for Nx repositories.

This example shows a NestJS backend and an Angular frontend. The pipeline builds and publishes two individual containers. Deployment could be done with docker compose. See the deployment-compose.yaml.

Prerequisites

  1. NodeJS 18 or later
  2. Docker or compatible Container Engine
  3. Dagger.io CLI

Usage

dagger-demo.png

  1. npm install
  2. dagger run npx ts-node --esm --project dagger/tsconfig.json dagger/build.mts --docker-prefix=your-registry
  3. docker compose -f deployment-compose.yaml up
  4. open localhost:8080

Builder Arguments

So far one argument can be passed to the build.mts

  1. docker-prefix (p) : docker registry that you want to push into

Example:

#publish to dockerhub sirion182
dagger run npx ts-node --esm --project dagger/tsconfig.json dagger/build.mts --docker-prefix=sirion182

Next possible steps

  • add test execution into pipeline
  • use containers to execute e2e tests
  • add Kubernetes deployment example
  • improve command line arguments
  • utilize affected graph of nx
  • add example ci integration
    • Github Action
    • Gitlab Pipeline
  • add Secret Handling

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors