This commit is contained in:
Sambit Mishra 2017-10-26 13:32:59 -07:00
Родитель cf584c68b9
Коммит 3b30e33348
2 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -4,7 +4,7 @@ LABEL vendor=Microsoft\ Corp \
com.microsoft.product="OMS Container Docker Provider" \
com.microsoft.version="1.0.0-28"
ENV tmpdir /opt
RUN /usr/bin/apt-get update && /usr/bin/apt-get install -y libc-bin wget openssl curl sudo python-ctypes sysv-rc net-tools rsyslog cron vim && rm -rf /var/lib/apt/lists/*
RUN /usr/bin/apt-get update && /usr/bin/apt-get install -y libc-bin wget openssl curl sudo python-ctypes sysv-rc net-tools rsyslog cron vim dmidecode && rm -rf /var/lib/apt/lists/*
COPY setup.sh main.sh $tmpdir/
WORKDIR ${tmpdir}
RUN chmod 775 $tmpdir/*.sh; sync; $tmpdir/setup.sh

Просмотреть файл

@ -44,13 +44,10 @@ fi
#Reload OMI Server
/opt/omi/bin/omiserver -s
/opt/omi/bin/omiserver --configfile=/etc/opt/omi/conf/omiserver.conf -d
#Test successful install of docker-provider
#Test successful install of docker-provider
/opt/omi/bin/omicli id
/opt/omi/bin/omicli ei root/cimv2 Container_HostInventory
#service omsagent start
/opt/microsoft/omsagent/bin/service_control start
#check if agent onboarded successfully
/opt/microsoft/omsagent/bin/omsadmin.sh -l