Skip to content

v0.6.3: Alpine Test Container with Developer Testing

Choose a tag to compare

@tsouche tsouche released this 22 Jan 10:35
· 26 commits to main since this release

Release v0.6.3 - Alpine Test Container with Developer Testing

Release Date: January 22, 2026

🎯 Overview

This release adds a permanent Alpine Linux test container and developer-accessible testing tools to verify musl cross-compilation locally before deploying to staging/production.

✨ New Features

Alpine Test Container

  • Permanent Alpine Linux 3.19 container runs alongside development environment (4 containers total)
  • Shared Docker volume for binary exchange between Ubuntu dev and Alpine containers
  • Static IP assignment: 172.20.0.14 on dev-network
  • Enables local runtime verification before deployment

Testing Tools

For Windows (PowerShell):

  • test-alpine.ps1: Automated testing script
    • Runs automatically during deployment
    • Can be executed independently: .\test-alpine.ps1
    • Creates, compiles, and tests musl binaries

For Developers (Inside Container):

  • test-alpine command: Bash script at /usr/local/bin/test-alpine
    • Same functionality as PowerShell version
    • Run from anywhere inside container: test-alpine
    • Verifies musl cross-compilation toolchain

Enhanced Build Verification

  • Two-stage validation in Dockerfile
    • Stage 1: File existence checks (musl-gcc, OpenSSL, Rust target)
    • Stage 2: Functional compilation test
    • Catches configuration issues at build time

📦 Container Architecture

4 Containers:

  • dev-container: Ubuntu 22.04 development environment
  • dev-mongodb: MongoDB 7.0 database
  • dev-mongo-express: Web UI for MongoDB
  • dev-alpine-test: Alpine 3.19 runtime testing ⭐ NEW

Shared Volume:

  • Volume: alpine-test-binaries
  • Dev container: /alpine-test (write binaries)
  • Alpine container: /test (execute binaries)

🚀 Quick Start

Deploy

cd deploy_dev_env
[deploy-dev.ps1](http://_vscodecontentref_/0)

Test (Inside Container)

```sh
ssh rust-dev
test-alpine

Test Your Binaries

cargo build --release --target x86_64-unknown-linux-musl
cp target/x86_64-unknown-linux-musl/release/your_app /alpine-test/
docker exec dev-alpine-test /test/your_app

🔄 Upgrade from v0.6.2

git pull origin main
git checkout v0.6.3
cd deploy_dev_env && .\deploy-dev.ps1

No breaking changes - fully backward compatible.

🐳 Docker Images
Base: tsouche/rust_dev_container:v0.6.3
Alpine: alpine:3.19