Skip to content

Commit

Permalink
Merge pull request #83 from nautobot/1.6.0
Browse files Browse the repository at this point in the history
Resolve Nautobot 1.6.0 build issues
  • Loading branch information
jtdub authored Aug 12, 2023
2 parents aabbe46 + 81d548d commit b98b374
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM public.ecr.aws/ubuntu/ubuntu:22.04_stable

ARG NAUTOBOT_VERSION="1.5.24"
ARG NAUTOBOT_VERSION="1.6.0"

ARG DB_NAME="nautobot"

Expand Down
19 changes: 12 additions & 7 deletions pb_nautobot_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,10 @@
group: "nautobot"
mode: "0640"

- name: "UPDATE REDIS.CONF"
ansible.builtin.template:
src: "redis.conf"
dest: "/etc/redis/redis.conf"
owner: "redis"
group: "redis"
mode: "0640"
- name: "START REDIS"
ansible.builtin.service:
name: "redis-server"
state: "started"

- name: "UPDATE PG_HBA.CONF"
ansible.builtin.template:
Expand Down Expand Up @@ -132,3 +129,11 @@
group: "nautobot"
mode: u=rwX,g=rX,o=rX
recurse: "yes"

- name: "UPDATE REDIS.CONF"
ansible.builtin.template:
src: "redis.conf"
dest: "/etc/redis/redis.conf"
owner: "redis"
group: "redis"
mode: "0640"
75 changes: 67 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ yamllint = "^1.31.0"

[tool.poetry.dev-dependencies]

[tool.poetry.group.dev.dependencies]
invoke = "^2.2.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
7 changes: 7 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from invoke import task


@task
def docker_build(context, version: str = "latest"):
command = f"docker build -t networktocode/nautobot-lab:{version} ."
context.run(command)

0 comments on commit b98b374

Please sign in to comment.