File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
control-m/301-statefulset-agent-to-run-k8s-jobs-using-ai-job/docker Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,17 @@ RUN ctm env add myenv $AAPI_END_POINT $AAPI_USER $AAPI_PASS \
4949 && java -version \
5050# install agent, setup will be done during statup
5151&& ctm provision image $AGENT_IMAGE_NAME && echo installation ended successfully \
52- && ctm env del myenv \
52+ && ctm env del myenv \
5353
5454# Persistent connection : internal AR keep-alive
5555&& echo "AR_PING_TO_SERVER_IND Y" >> /home/controlm/ctm/data/CONFIG.dat \
5656&& echo "AR_PING_TO_SERVER_INTERVAL 30" >> /home/controlm/ctm/data/CONFIG.dat \
5757&& echo "AR_PING_TO_SERVER_TIMEOUT 60" >> /home/controlm/ctm/data/CONFIG.dat \
58- # clean
58+ # clean and uninstall java 11
59+ && sudo yum -y autoremove java-11-openjdk \
5960&& sudo yum clean all \
6061&& sudo rm -rf /var/cache/yum
62+
6163# install kubectl
6264COPY install_kubectl.sh .
6365RUN ./install_kubectl.sh
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ agentName=$(hostname)
1717echo ' mapping persistent volume'
1818cd /home/controlm
1919
20+ sudo echo PATH=" ${PATH} :/home/controlm/bmcjava/bmcjava-V2/bin:/home/controlm/ctm/scripts:/home/controlm/ctm/exe" >> ~/.bash_profile
21+ sudo echo export PATH>> ~/.bash_profile
22+
2023source ~ /.bash_profile
2124
2225if [ ! -d $PERSISTENT_VOL /pid ];
You can’t perform that action at this time.
0 commit comments