fix2
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -6,19 +6,13 @@ RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
docker.io \
|
||||
docker-compose \
|
||||
sshpass \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Устанавливаем Ansible, Molecule и Ansible Vault
|
||||
RUN pip install --no-cache-dir ansible ansible-vault molecule docker molecule-docker
|
||||
RUN pip3 install --no-cache-dir ansible ansible-lint ansible-vault molecule docker molecule-docker
|
||||
|
||||
# Устанавливаем Docker CLI
|
||||
RUN curl -fsSL https://get.docker.com | sh
|
||||
|
||||
# Устанавливаем рабочую директорию
|
||||
WORKDIR /workspace
|
||||
|
||||
# Устанавливаем роль из Ansible Galaxy (пример: geerlingguy.nginx)
|
||||
#RUN ansible-galaxy role install geerlingguy.nginx
|
||||
|
||||
# Указываем команду по умолчанию
|
||||
CMD ["molecule", "--version"]
|
||||
WORKDIR /ansible
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
|
||||
Reference in New Issue
Block a user