mirror of
https://github.com/DomiStyle/docker-idrac6.git
synced 2024-12-22 05:45:22 +01:00
Merge pull request #6 from DomiStyle/http-port
Allow specifying port for iDRAC host
This commit is contained in:
commit
1e88164d48
@ -1,6 +1,7 @@
|
||||
FROM jlesage/baseimage-gui:alpine-3.7
|
||||
|
||||
ENV APP_NAME="iDRAC 6"
|
||||
ENV APP_NAME="iDRAC 6" \
|
||||
IDRAC_PORT=443
|
||||
|
||||
RUN apk add --no-cache openjdk7-jre
|
||||
|
||||
|
12
startapp.sh
12
startapp.sh
@ -11,6 +11,12 @@ if [ -z "${IDRAC_HOST}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "${IDRAC_PORT}" ]; then
|
||||
echo -e "${RED}Please set a proper idrac port with IDRAC_PORT${NC}"
|
||||
sleep 2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "${IDRAC_USER}" ]; then
|
||||
echo -e "${RED}Please set a proper idrac user with IDRAC_USER${NC}"
|
||||
sleep 2
|
||||
@ -33,7 +39,7 @@ mkdir lib
|
||||
echo "Downloading required files"
|
||||
|
||||
if [ ! -f avctKVM.jar ]; then
|
||||
wget https://${IDRAC_HOST}/software/avctKVM.jar --no-check-certificate
|
||||
wget https://${IDRAC_HOST}:${IDRAC_PORT}/software/avctKVM.jar --no-check-certificate
|
||||
|
||||
if [ ! $? -eq 0 ]; then
|
||||
echo -e "${RED}Failed to download avctKVM.jar, please check your settings${NC}"
|
||||
@ -43,7 +49,7 @@ if [ ! -f avctKVM.jar ]; then
|
||||
fi
|
||||
|
||||
if [ ! -f lib/avctKVMIOLinux64.jar ]; then
|
||||
wget -O lib/avctKVMIOLinux64.jar https://${IDRAC_HOST}/software/avctKVMIOLinux64.jar --no-check-certificate
|
||||
wget -O lib/avctKVMIOLinux64.jar https://${IDRAC_HOST}:${IDRAC_PORT}/software/avctKVMIOLinux64.jar --no-check-certificate
|
||||
|
||||
if [ ! $? -eq 0 ]; then
|
||||
echo -e "${RED}Failed to download avctKVMIOLinux64.jar, please check your settings${NC}"
|
||||
@ -53,7 +59,7 @@ if [ ! -f lib/avctKVMIOLinux64.jar ]; then
|
||||
fi
|
||||
|
||||
if [ ! -f lib/avctVMLinux64.jar ]; then
|
||||
wget -O lib/avctVMLinux64.jar https://${IDRAC_HOST}/software/avctVMLinux64.jar --no-check-certificate
|
||||
wget -O lib/avctVMLinux64.jar https://${IDRAC_HOST}:${IDRAC_PORT}/software/avctVMLinux64.jar --no-check-certificate
|
||||
|
||||
if [ ! $? -eq 0 ]; then
|
||||
echo -e "${RED}Failed to download avctVMLinux64.jar, please check your settings${NC}"
|
||||
|
Loading…
Reference in New Issue
Block a user