-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #380 from nornir-automation/develop
Release 2.2.0
- Loading branch information
Showing
67 changed files
with
2,603 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
**/*.pyc | ||
**/*.pyo | ||
**/*.log | ||
**/__pycache__ | ||
docs/_build | ||
**/.ipynb_checkpoints | ||
.venv/ | ||
.mypy_cache/ | ||
.pytest_cache/ | ||
.tox/ | ||
**/*.egg-info | ||
pip-wheel-metadata/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
sudo: required | ||
language: minimal | ||
dist: xenial | ||
services: | ||
- docker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
FROM python:3.6 | ||
RUN set -x && \ | ||
pip install nornir | ||
VOLUME [ "/nornir" ] | ||
WORKDIR "/nornir" | ||
ENTRYPOINT [ "/usr/local/bin/python" ] | ||
#usage: | ||
# from inside your nornir base directory run: docker run -it --rm -v `pwd`:/nornir nornir:latest get_facts.py | ||
ARG PYTHON | ||
FROM python:${PYTHON}-slim-stretch | ||
|
||
WORKDIR /nornir | ||
ENV PATH="/root/.poetry/bin:$PATH" \ | ||
PYTHONDONTWRITEBYTECODE=1 \ | ||
PYTHONUNBUFFERED=1 \ | ||
NORNIR_TESTS=1 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -yq curl git pandoc \ | ||
&& curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python \ | ||
&& poetry config settings.virtualenvs.create false | ||
|
||
COPY pyproject.toml . | ||
COPY poetry.lock . | ||
|
||
# Dependencies change more often, so we break RUN to cache the previous layer | ||
RUN poetry install --no-interaction | ||
|
||
COPY . . | ||
|
||
# Install the project as a package | ||
RUN poetry install --no-interaction | ||
|
||
CMD ["/bin/bash"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.