Ansible Script 추가

This commit is contained in:
ByeonJungHun
2023-12-19 13:36:16 +09:00
parent 0273450ff6
commit 05cb8d9269
2610 changed files with 281893 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# Start from Python 3.9 base image
FROM nexus2.exem-oss.org/awx-ee:latest
USER root
# Update and install dependencies
RUN yum clean all && \
yum makecache && \
yum update -y && \
yum install -y sudo nfs-utils
# Python package management
RUN pip3 uninstall -y crypto pycrypto && \
pip3 install pycryptodome hvac xlwt
# Install kubectl
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
chmod +x kubectl && \
mv kubectl /usr/local/bin/
# Copy kubeconfig (Not recommended for production)
COPY kubeconfig /root/.kube/config
# Keep the container running
#CMD ["bash"]
CMD ["tail", "-f", "/dev/null"]