Note: Multi-platform Application UI (MAUI).
- .NET v7 (compat with MS iOS SDK 16.2)
- Visual Studio 2022
- iOS simulator 14.2
- macOS M1
# ------------------------------------------- | |
# Prepare runner | |
FROM node:18-alpine AS runner | |
RUN apk update && \ | |
apk add curl bash g++ make && \ | |
rm -rf /var/cache/apk/* | |
# Install node-prune (https://github.com/tj/node-prune) |
Example error log :
...
BUILD FAILED in 31s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
VERSION=2.1.1 | |
rm -rf ~/docker-compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/$VERSION/docker-compose-$(uname -s)-$(uname -m)" -o ~/docker-compose | |
sudo chmod +x ~/docker-compose | |
sudo mv ~/docker-compose /usr/local/bin/docker-compose | |
docker-compose -v |
Example : I would like to terminate node
and filebeat
service after test
service run finished or exit code is zero (success).
We need to create shell script and adding two docker-compose up
's options,
it's --abort-on-container-exit
and --exit-code-from
(the shell script below related with docker-container.yml
)
shell-scrip.sh
( (docker-compose -f docker-compose.yml down -v) || : ) && \
Function GetServiceByName { | |
Param ( | |
[string]$ServiceName | |
) | |
return Get-WmiObject -Class Win32_Service -Filter "Name LIKE '$ServiceName'" | Select-Object -ExpandProperty ProcessId | |
} | |
$nid = GetServiceByName -ServiceName "notepad" | |
If ($nid -ne 0) { |