Copy over dart container and add to jenkinsfile

This commit is contained in:
zontreck 2024-09-03 16:02:05 -07:00
parent 650579b474
commit 53536fffc3
4 changed files with 73 additions and 1 deletions

16
dart/entrypoint.sh Normal file
View file

@ -0,0 +1,16 @@
#!/bin/bash
cd /home/container
# Make internal Docker IP address available to processes
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
# Print Dart version
dart --version
# Replace startup variables
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo ":/home/container$ ${MODIFIED_STARTUP}"
# Run the server
eval ${MODIFIED_STARTUP}