- Update gleam_compile task to handle missing mix_gleam/gleam binary - Add fallback to use pre-compiled BEAM files from priv/gleam - Include pre-compiled aprsme@encoding.beam for Docker builds - Update both Dockerfiles to ensure priv/gleam directory exists - Fix module name filter from "aprs@" to "aprsme@" in fallback logic This ensures Docker builds work without requiring gleam or mix_gleam to be installed in the production container. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
No EOL
366 B
Bash
Executable file
16 lines
No EOL
366 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Testing Docker build with Gleam support..."
|
|
|
|
# Build the Docker image
|
|
echo "Building Docker image..."
|
|
docker build -t aprsme-test:latest .
|
|
|
|
echo "Docker build completed successfully!"
|
|
|
|
# Test if the image runs
|
|
echo "Testing if the image can run..."
|
|
docker run --rm aprsme-test:latest bin/aprsme eval "IO.puts(:ok)"
|
|
|
|
echo "All tests passed!" |