This content originally appeared on DEV Community and was authored by Okerew
Working on a scripting language, deployment features for my docker-like solution native to macOS.
https://github.com/Okerew/osxiec
# This is an example script for the OSXIEC scripting language
# Log the start of the script
LOG Starting script for $container_name
# Set container memory limits
SET_MEMORY $mem_soft $mem_hard
# Set CPU priority
SET_CPU $cpu_priority
# Execute a command
EXECUTE echo "Container $container_name initialized"
# Conditional execution
SET status running
IF status==running EXECUTE echo "Container is operational"
# Sleep for 2 seconds
SLEEP 2
# Echo some information
ECHO Container $container_name is configured with:
ECHO - Memory limits: $mem_soft MB (soft) / $mem_hard MB (hard)
ECHO - CPU priority: $cpu_priority
This content originally appeared on DEV Community and was authored by Okerew
Okerew | Sciencx (2024-07-26T17:29:27+00:00) What have I been working on for my docker-like solution native to macOS. Retrieved from https://www.scien.cx/2024/07/26/what-have-i-been-working-on-for-my-docker-like-solution-native-to-macos/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.