python and ansible development for netapp automation
123
Python ansible dev environment for netapp automation.
python, ansible, netapp ontap pip libraries, and various utilities helpful for developing in are installed.
You probably want to start it with something like:
docker run -it --u nick:nick -v homedir:/home/nick --rm -it -d --name devbox nickbernstein/netapp-dev-env
and then connect to it with:
docker exec -it -w /home/nick --user nick:nick devbox zsh
Feel free to make your own:
FROM python:3
LABEL maintainer="[email protected]"
RUN pip install --no-cache-dir netapp-ontap virtualenv
RUN DEBIAN_FRONTEND=noninteractive apt-get update -yq && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq \
curl \
git \
zsh zsh-autosuggestions zsh-syntax-highlighting \
sudo \
ansible ansible-doc ansible-lint sshpass \
jq \
tldr \
httpie \
ranger \
tree \
mc \
vim-nox vim-common vim-addon-manager \
python3-pip \
cmatrix
RUN CHSH=yes ; curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh
WORKDIR /NetApp
RUN git clone https://github.com/NetApp/Ansible-with-OnCommand-API-Services.git ;\
git clone https://github.com/NetApp/Ansible-with-Active-IQ-Unified-Manager.git ;\
git clone https://github.com/NetApp/Jenkins-Plugin.git ;\
git clone https://github.com/NetApp/ontap-rest-python.git ;\
git clone https://github.com/NetApp/ansible.git ;\
git clone https://github.com/NetApp/netapp-data-science-toolkit ;\
git clone https://github.com/NetApp/trident
RUN groupadd -g 1000 nick && useradd nick -u 1000 -m -g nick -s /bin/bash
USER nick
WORKDIR /home/nick
RUN mkdir /home/nick/app && chown nick:nick app
CMD ["sleep infinity"]
Content type
Image
Digest
Size
547.6 MB
Last updated
over 5 years ago
docker pull nickbernstein/netapp-dev-env