DefangLabs / DefangLabs/defang

Defang generate with Redis should automatically add x-defang-redis

Open
#548 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-generate storage
Dominant language
Go
Stars
166
Forks
24
Avg merge
10h 8m
Merged PRs (30d)
33

Description

I generated a project with defang generate which ended up looking like this:

services:
  service1:
    restart: always
    build:
      context: .
      dockerfile: Dockerfile
    environment:
      - REDIS_HOST=redis
      - REDIS_PORT=6379

  redis:
    image: redis:alpine
    ports:
      - 6379:6379

Good starting point, but we should make sure that generated code includes x-defang-redis: true if it includes Redis at all.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the defang generate entry point and trace how the generated Compose configuration is assembled and how Redis services are identified. Update the generated output so any project containing Redis includes x-defang-redis: true, then run the relevant generation checks or compare generated output with the example in this issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.