diff --git a/ops/Dockerfile b/ops/Dockerfile index 891e0e2..0e330e0 100644 --- a/ops/Dockerfile +++ b/ops/Dockerfile @@ -19,23 +19,18 @@ RUN tdnf makecache \ -e '$aClientAliveCountMax 3' \ -e '$aUseDNS yes' \ /etc/ssh/sshd_config \ - && mkdir -m 0755 /etc/ansible \ - && echo -e '[defaults]\n\ -host_key_checking = False\n\ -stdout_callback = debug\n\ -retry_files_enabled = False\n\ -' > /etc/ansible/ansible.cfg \ - && echo -e '[all:vars]\n\ -ansible_ssh_port=22\n\ -ansible_ssh_user=root\n\ -ansible_ssh_pass=111111\n\ -' > /etc/ansible/hosts \ && grep '^export PS' /etc/bash.bashrc | sed 's/\\h/OPS/' >> /etc/profile \ + && echo 'export LANG=en_US.UTF-8' >> /etc/profile \ + && echo 'export JAVA_HOME=/opt/jdk' >> /etc/profile \ + && echo 'export JRE_HOME=$JAVA_HOME/jre' >> /etc/profile \ + && echo 'export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib' >> /etc/profile \ + && echo 'export MAVEN_HOME=/opt/maven' >> /etc/profile \ + && echo 'export PATH=$MAVEN_HOME/bin:$JAVA_HOME/bin:$PATH' >> /etc/profile \ && rm -rf /var/cache/tdnf ADD --chown=root:root /ADD/maven /opt/maven ADD --chown=root:root /ADD/ssh_host_* /etc/ssh/ ADD --chown=root:root /ADD/id_rsa* /root/.ssh/ ENV MAVEN_HOME=/opt/maven -ENV PATH=${MAVEN_HOME}/bin:$PATH +ENV PATH=$MAVEN_HOME/bin:$PATH CMD ["/usr/sbin/sshd", "-D"]