From 987da16dbee2f2bbfcb0b46afd81c9944fdeace1 Mon Sep 17 00:00:00 2001 From: Gary Snider <75227981+gsnider2195@users.noreply.github.com> Date: Thu, 22 Aug 2024 09:43:07 -0700 Subject: [PATCH] update dockerfile and invoke.example.yml --- development/Dockerfile | 6 +++--- invoke.example.yml | 19 +++++++++++-------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/development/Dockerfile b/development/Dockerfile index 537f58c..017e429 100644 --- a/development/Dockerfile +++ b/development/Dockerfile @@ -18,9 +18,6 @@ FROM ghcr.io/nautobot/nautobot-dev:${NAUTOBOT_VER}-py${PYTHON_VER} # Runtime argument and environment setup ARG NAUTOBOT_ROOT=/opt/nautobot -# The build args must be declared in each stage -ARG PYTHON_VER - ENV prometheus_multiproc_dir=/prom_cache ENV NAUTOBOT_ROOT=${NAUTOBOT_ROOT} ENV INVOKE_NAUTOBOT_DEV_EXAMPLE_LOCAL=true @@ -56,6 +53,9 @@ RUN which poetry || curl -sSL https://install.python-poetry.org | python3 - && \ WORKDIR /source COPY . /source +# Build args must be declared in each stage +ARG PYTHON_VER + # Constrain the Nautobot version to NAUTOBOT_VER # In CI, this should be done outside of the Dockerfile to prevent cross-compile build failures ARG CI diff --git a/invoke.example.yml b/invoke.example.yml index 58db48e..9b9863c 100644 --- a/invoke.example.yml +++ b/invoke.example.yml @@ -1,12 +1,15 @@ --- nautobot_dev_example: - project_name: "nautobot-dev-example" nautobot_ver: "2.3.1" - local: false python_ver: "3.11" - compose_dir: "/full/path/to/nautobot-app-dev-example/development" - compose_files: - - "docker-compose.base.yml" - - "docker-compose.redis.yml" - - "docker-compose.postgres.yml" - - "docker-compose.dev.yml" + # local: false + # compose_dir: "/full/path/to/nautobot-app-dev-example/development" + +# The following is an example of using MySQL as the database backend +# --- +# nautobot_dev_example: +# compose_files: +# - "docker-compose.base.yml" +# - "docker-compose.redis.yml" +# - "docker-compose.mysql.yml" +# - "docker-compose.dev.yml"