WIP: Dodaj wsparcie dla Dockera #128

Draft
d33tah wants to merge 44 commits from d33tah/rentgen:develop into develop
3 changed files with 36 additions and 0 deletions
Showing only changes of commit d85c50f49f - Show all commits

View File

@ -56,3 +56,13 @@ RUN chmod +x /app/test_start_extension.sh
# Start script # Start script
CMD ["/app/test_start_extension.sh"] CMD ["/app/test_start_extension.sh"]
# Verify stage - automated testing with exit code
FROM runtime AS verify
# Copy verification script
COPY scripts/test_verify.sh /app/test_verify.sh
RUN chmod +x /app/test_verify.sh
# Run verification and exit with proper exit code
CMD ["/app/test_verify.sh"]

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
.PHONY: verify clean help
# Default target - run verification
verify:
@echo "Building and verifying Rentgen extension..."
docker compose up --force-recreate --build --abort-on-container-exit --exit-code-from rentgen_verify
@echo "✓ Verification completed successfully!"
# Clean up Docker resources
clean:
docker compose down --rmi local --volumes --remove-orphans
# Help target
help:
@echo "Rentgen Extension - Makefile"
@echo ""
@echo "Available targets:"
@echo " make verify - Build and verify extension (exits with error if verification fails)"
@echo " make clean - Clean up Docker resources"
@echo " make help - Show this help message"

View File

@ -8,3 +8,9 @@ services:
target: runtime target: runtime
stdin_open: true stdin_open: true
tty: true tty: true
rentgen_verify:
build:
context: .
target: verify
restart: "no"