Urgent.News

What's breaking now, across thousands of outlets.

Tech

Docker Compose build must be a string, in CI

Docker Compose build must be a string is the schema validator naming one branch of a rule with two, and following it literally will send you to rewrite a mapping that was never the problem. Compose accepts a path string or a mapping under build , and the message picks the first branch it checked rather than listing both. The schema allows a string or a mapping. Both branches fail, both are…

Docker Compose build must be a string is an error that occurs when the value under the build key is not a string or a mapping. This rule applies when running docker compose build, docker compose config, or docker compose up --build. The error message indicates the key and the type that is invalid. The mapping branch of the rule is also invalid, but it is not specifically mentioned in the error message.

The error can be caused by various issues such as a stray dash turning a mapping into a list or a key with no value. It is recommended to validate the Compose files in CI before building, use an editor with a Compose schema, quote values written by a generator, and remove keys with empty values.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How to Sync Billing Data to Prisma Postgres (Stripe, QuickBooks, Xero & Paddle)

Sync Stripe, QuickBooks, Xero or Paddle into Prisma Postgres. Which connection string to use, how a batched sync counts operations, and what it costs.

  • Prisma Postgres bills per operation, not query duration, making it cost-effective for batch syncs
  • Recommended pooled connection string for background workers like scheduled syncs
  • Sync of 375 Stripe paymentintents costs only 15 operations, demonstrating efficiency

Turning noisy bathroom-scale data into a projected date: SMA vs. EMA vs. linear regression

Body weight is a terrible time series. On a single morning it can swing by a kilogram or more because of water, salt, glycogen and whatever is still in your gut.

  • Simple moving average (SMA) calculates 7-day average weight, lagging about 3 days
  • Exponentially smoothed moving average (EMA) uses 10% smoothing factor, slower to respond
  • Linear regression estimates daily weight change, provides date estimate but assumes constant rate

How we made battles deterministic and server-verified in a Telegram mini-game

We are building Seraph Legion, an angel-collector RPG that runs inside Telegram as a Mini App. This is a writeup of the most interesting engineering decision in the project: how battles work , and…

  • Battles are deterministic and server-verified to prevent cheating
  • Seeded random number generator ensures identical results with same inputs
  • Most write operations now server-verified after exploit prevention

Ctrl+A Only Copied a Third of the Page, So I Built a Chrome Extension

I was trying to save a lesson from an interactive course into my notes. You know the type. Slides you click through, cards you flip to see the answer, boxes that open up when you tap them, plus the…

  • Developer created Chrome extension to copy hidden content from web pages
  • Script traverses every text node on the page to extract all content
  • Extension outputs rough markdown for easy pasting into note-taking apps

Building a read-aloud screen: phrases, tappable words and a finger that drifts

Background A lot of what I read is still on paper: letters from the bank, school handouts, a recipe, a library book. I often want to listen to them instead, and I want to follow the words while I…

  • Outloud Reader app highlights phrases, tappable words, and offers just listen mode
  • Phrases consist of up to four words up to punctuation mark, highlighted as soft yellow plate
  • Custom SwiftUI Layout enables precise word control, hit-testing, and overlapping plates

Korean input kept breaking in Android terminals with a physical keyboard, so I built my own

I use a tablet with a physical keyboard and Gboard. Every time I typed Korean into an Android terminal app, composing input broke — syllables got eaten mid-composition or committed wrong.

  • User experiences Korean IME breaking in Android terminals with physical keyboard
  • Developer creates TermiPlus to solve Korean input issues
  • TermiPlus offers Korean input, SSH, and local terminal functionality

More from Sunday 15 November →