Skip to content

feat(noop-bb): add nix tool installation example and smoke test#165

Closed
jannymeshi wants to merge 1 commit intomainfrom
feature/nix-noop-bb-update
Closed

feat(noop-bb): add nix tool installation example and smoke test#165
jannymeshi wants to merge 1 commit intomainfrom
feature/nix-noop-bb-update

Conversation

@jannymeshi
Copy link
Copy Markdown

Summary

Updates the noop building block to demonstrate the nix-based package installation that is now available in the go runner image (shipped in meshfed-release #9885).

Changes

prerun.sh

  • Replaces the old "not supported via apk add" placeholder with a working nix profile add nixpkgs#awscli2 example
  • Verifies the installed CLI with aws --version so the runner logs confirm nix works

noop.tftest.hcl (new)

  • Smoke test covering all input/output types of the noop building block
  • Run locally with tofu test to validate the module applies cleanly
  • FILE inputs (some-file.yaml, sensitive-file.yaml) are now included as fixture files so tofu test can run without a live meshStack instance

README.md

  • New "Installing Tools in Pre-Run Scripts" section documenting the nix profile add pattern with examples

Related

- Update prerun.sh to demonstrate installing awscli2 via nix profile add
  instead of the old 'not supported' placeholder comment
- Add noop.tftest.hcl smoke test covering all input/output types
- Add some-file.yaml and sensitive-file.yaml fixture files required
  for local tofu test runs (meshStack writes these at runtime)
- Update README.md to document nix-based tool installation pattern

Closes CU-86c9j0enc
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

🎨 Missing Building Block Icons

Found 2 building block(s) without logo.png files.

Copy the AI Prompts below and use them with your favorite AI image generator (Gemini, DALL-E, Midjourney, Stable Diffusion, etc.).

Then follow the Post-Processing Steps to prepare the icons for upload.


Azure Virtual Machine Starterkit

Platform: azure

Path: /home/runner/work/meshstack-hub/meshstack-hub/modules/azure/azure-virtual-machine-starterkit/buildingblock/logo.png

AI Prompt (copy this to image generator)

Create a professional flat design icon for the meshcloud Building Block ecosystem.

Purpose: The Azure Virtual Machine Starterkit provides application teams with a pre-configured Azure environment. It includes a dedicated project, an Azure tenant, and a virtual machine for quick provisioning and testing.

Visual Style:
- Plain white background (#FFFFFF) for easy removal in post-processing
- Background will be converted to transparent (see post-processing steps)
- Use Azure colors: blue (#0078D4), cyan (#00BCF2), and light blue (#50E6FF) as accent colors
- Maximum 2-3 colors total
- Simple geometric shapes with clean lines
- Flat design (no gradients, shadows, or 3D effects)
- Minimalist, modern appearance

Composition:
- Square centered layout (NOT horizontal)
- Icon fills the entire canvas edge-to-edge (100% of area)
- No padding or margins around the icon
- Symmetrical arrangement
- Platform-appropriate symbol for AZURE (e.g., cloud, container, database, server, etc.)

Style: Enterprise professional, instantly recognizable at small sizes, similar to app icons or logos.
Dimensions: 800x800 pixels

Post-Processing Instructions

Step 1: Remove white background with GIMP (free)

a) Open image in GIMP
b) Right-click layer → "Add Alpha Channel"
c) Tools → "Select by Color" (Shift+O)
d) Click white background
e) Press Delete key
f) File → Export As → logo.png
g) Set Compression level to 9 → Export

Step 2: Resize to 800x800 pixels if needed

  • GIMP: Image → Scale Image → 800x800px
  • Or use any image editor

Step 3: Compress with pngquant (free command line tool)

  • Install: brew install pngquant (Mac) or apt install pngquant (Linux)
  • Run: pngquant --quality=20-30 logo.png --ext .png --force
  • This reduces file size by 60-80% while maintaining quality

Target specs: 800x800px PNG with transparent background, under 100KB


Kubernetes Manifest (Helm)

Platform: kubernetes

Path: /home/runner/work/meshstack-hub/meshstack-hub/modules/kubernetes/manifest/buildingblock/logo.png

AI Prompt (copy this to image generator)

Create a professional flat design icon for the meshcloud Building Block ecosystem.

Purpose: Deploys arbitrary Kubernetes manifests into a tenant namespace via a local Helm chart, with operator-supplied templates and user-provided values.

Visual Style:
- Plain white background (#FFFFFF) for easy removal in post-processing
- Background will be converted to transparent (see post-processing steps)
- Use Kubernetes colors: blue (#326CE5), cyan (#00D3E0), and light blue (#7AB8FF) as accent colors
- Maximum 2-3 colors total
- Simple geometric shapes with clean lines
- Flat design (no gradients, shadows, or 3D effects)
- Minimalist, modern appearance

Composition:
- Square centered layout (NOT horizontal)
- Icon fills the entire canvas edge-to-edge (100% of area)
- No padding or margins around the icon
- Symmetrical arrangement
- Platform-appropriate symbol for KUBERNETES (e.g., cloud, container, database, server, etc.)

Style: Enterprise professional, instantly recognizable at small sizes, similar to app icons or logos.
Dimensions: 800x800 pixels

Post-Processing Instructions

Step 1: Remove white background with GIMP (free)

a) Open image in GIMP
b) Right-click layer → "Add Alpha Channel"
c) Tools → "Select by Color" (Shift+O)
d) Click white background
e) Press Delete key
f) File → Export As → logo.png
g) Set Compression level to 9 → Export

Step 2: Resize to 800x800 pixels if needed

  • GIMP: Image → Scale Image → 800x800px
  • Or use any image editor

Step 3: Compress with pngquant (free command line tool)

  • Install: brew install pngquant (Mac) or apt install pngquant (Linux)
  • Run: pngquant --quality=20-30 logo.png --ext .png --force
  • This reduces file size by 60-80% while maintaining quality

Target specs: 800x800px PNG with transparent background, under 100KB


@aws-amplify-eu-central-1
Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-165.d1o16zfeoh2slu.amplifyapp.com

@jannymeshi
Copy link
Copy Markdown
Author

Superseded by #166 (commit 54969fa)

@jannymeshi jannymeshi closed this May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant