Skip to content
Snippets Groups Projects
Commit 12f0e73f authored by Neda Moeini's avatar Neda Moeini
Browse files

Added requirements to setup and fixed docker file.

parent a235dc3e
Branches
Tags
1 merge request!58Update file Dockerfile
Pipeline #84629 failed
...@@ -12,12 +12,11 @@ RUN apk add --update --no-cache gcc libc-dev libffi-dev curl vim bash openssh ...@@ -12,12 +12,11 @@ RUN apk add --update --no-cache gcc libc-dev libffi-dev curl vim bash openssh
RUN mkdir -p /app/gap/collections /app/gap/roles /etc/ansible && \ RUN mkdir -p /app/gap/collections /app/gap/roles /etc/ansible && \
printf "[defaults]\ncollections_paths = /app/gap/collections\nroles_path = /app/gap/roles" > /etc/ansible/ansible.cfg printf "[defaults]\ncollections_paths = /app/gap/collections\nroles_path = /app/gap/roles" > /etc/ansible/ansible.cfg
RUN pip3 install \ RUN pip install \
--pre \ --pre \
--extra-index-url https://artifactory.software.geant.org/artifactory/api/pypi/geant-swd-pypi/simple \ --extra-index-url https://artifactory.software.geant.org/artifactory/api/pypi/geant-swd-pypi/simple \
--target /app \ --target /app \
goat-lso==${ARTIFACT_VERSION} && \ goat-lso==${ARTIFACT_VERSION} && \
pip3 install ncclient xmltodict junos-eznc jxmlease ansible ansible_merge_vars && \
ansible-galaxy collection install \ ansible-galaxy collection install \
community.general \ community.general \
juniper.device \ juniper.device \
......
...@@ -21,6 +21,14 @@ setup( ...@@ -21,6 +21,14 @@ setup(
"jmespath~=1.0.0", "jmespath~=1.0.0",
"dictdiffer~=0.9.0", "dictdiffer~=0.9.0",
"ansible-runner~=2.3.3", "ansible-runner~=2.3.3",
"junos-eznc~=2.6.8",
"jxmlease~=1.0.3",
"ansible-core~=2.16.0",
"ansible_merge_vars~=5.0.0",
"httpx~=0.25.1",
"GitPython~=3.1.40",
"jinja2==3.1.2",
"ruamel.yaml~=0.18.5",
], ],
license="MIT", license="MIT",
license_files=("LICENSE.txt",), license_files=("LICENSE.txt",),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment