Skip to content

Commit d536d73

Browse files
Amir RomanoGalgc
authored andcommitted
remove java 11 installation and adding agent java to the path
1 parent f9d2356 commit d536d73

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

control-m/301-statefulset-agent-to-run-k8s-jobs-using-ai-job/docker/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
6264
COPY install_kubectl.sh .
6365
RUN ./install_kubectl.sh

control-m/301-statefulset-agent-to-run-k8s-jobs-using-ai-job/docker/container_agent_startup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ agentName=$(hostname)
1717
echo 'mapping persistent volume'
1818
cd /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+
2023
source ~/.bash_profile
2124

2225
if [ ! -d $PERSISTENT_VOL/pid ];

0 commit comments

Comments
 (0)