-v /xxx/xxx:/data
sudo docker run -it -p 3050:3050 --name=interbase sybilla/interbase:6.0.1
=====sh内容====
#!/bin/bash
# InterBase default credentials
export ISC_USER=SYSDBA
export ISC_PASSWORD=masterkey
uname -a
echo -e "\nStarting InterBase server ..."
echo -e "\tISC_USER: '${ISC_USER}'"
echo -e "\tISC_PASSWORD: '${ISC_PASSWORD}'"
# Start server
${INTERBASE}/bin/ibmgr -start -forever
# Change password
if [[ ! -z "${IB_PASSWORD}" ]]; then
echo -e "\nChanging SYSDBA password to '${IB_PASSWORD}' ...\n"
IB_IS_RUNNING=$(ps aux | grep -v grep | grep -c ibserver)
if [[ ${IB_IS_RUNNING} -eq 0 ]]; then
echo -e "Wait until InterBase server is started\n"
while (! ps aux | grep -v grep | grep ibserver); do echo "."; sleep 1; done;
fi
${INTERBASE}/bin/gsec -user ${ISC_USER} -password ${ISC_PASSWORD} -modify ${ISC_USER} -pw ${IB_PASSWORD}
if [[ $? -eq 0 ]]; then
echo -e "\t... password has been changed"
else
echo -e "\t... there was an error during changing password"
fi
fi
# Show that server is listening
echo -e "\nInterBase server is listening on ..."
netstat -naop | grep ibserver
cd ${INTERBASE}
# Forward log to docker log collector
ln -sf /dev/stdout ${INTERBASE}/interbase.log
# Want to have container running,这里加上了后面的命令后不退出了
/bin/bash -c "while true;do echo running;sleep 1;done"
=============================================
Content type
Image
Digest
Size
85.2 MB
Last updated
about 5 years ago
docker pull feiyusir/interbase:6.0.1