While creating a custom docker app, I have noticed that the docker app creation editor does not allow to enter a ports range which is a huge problem for apps requiring a large ports range
This is a highly needed standard feature.
Impact
(How is this feature going to impact all TrueNAS users? What are the benefits and advantages? Are there disadvantages?)
Makes is difficult to create a docker app requiring a ports range. AgentDVR for instance needs ports range 50000-50100/udp. It will be very hard to enter these one by one
User Story
(Please give a short description on how you envision some user taking advantage of this feature, what are the steps a user will follow to accomplish it)
i liked still having advantage of the wizard and forms of non-direct-yaml ix App, so i generated a small bash script:
sleep 10
# First click the Add button 100 times
echo "Clicking Add button 100 times..."
for i in {1..100}
do
xdotool click 1
sleep 0.1
done
echo "Done creating entries!"
echo "Position your cursor in the first Container Port input box and press Enter..."
read
# Starting port number
port=50000
# Now fill in all the ports
for i in {1..100}
do
# Type port number
xdotool type "$port"
# Tab to next field
xdotool key Tab
sleep 0.1
# Type same port number
xdotool type "$port"
# Tab twice to get to next Container Port input
xdotool key Tab Tab Tab
sleep 0.1
# Increment port
((port++))
done
echo "Done filling ports!"