Skip to content

Commit

Permalink
update dockerfile and invoke.example.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnider2195 committed Aug 22, 2024
1 parent 0978dfc commit 987da16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
6 changes: 3 additions & 3 deletions development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
19 changes: 11 additions & 8 deletions invoke.example.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 987da16

Please sign in to comment.