Allow different concurrent development environments on a single machine
See original GitHub issueEnvironment
- Python version: 3.8.5
- Nautobot version: 57c8b8f1e8cc (v1.0.4b1)
Proposed Functionality
The project_name
specified within “invoke” should be taken into account when building the docker image with invoke build
Use Case
As a developer I want to be able to have different development environments on the developers machine (different projects).
The problem with the current invoke build
version ist, that the container image name will not be affected by the docker-compose --project-name ...
parameter because it is fully specified as image name in docker-compose.yml file. Thus overwriting the image of all the other project when invoke build
is executed.
services:
nautobot:
build:
args:
PYTHON_VER: "${PYTHON_VER}"
context: ../
dockerfile: docker/Dockerfile
target: dev
image: "networktocode/nautobot-dev-py${PYTHON_VER}:local"
ports:
- "8000:8080"
depends_on:
- postgres
Database Changes
None
External Dependencies
None
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Using Multiple Environments to Improve Your Development ...
Using multiple environments when developing software saves time as no one has to wait on another person for shared resources. Running multiple ......
Read more >How do I handle 2 or more parallel development ...
I've used 1,2 and 3 and 1 is by far the best. RDP is generally fine, but it relies on the other computer...
Read more >Controlled Development Environments | Dojo Five
Docker is a great solution for controlled development environments. One of the great things about Docker is specifying an entire environment ...
Read more >Creating Reproducible Development Environments - Medium
Carefully and painstakingly creating documentation that gives step-by-step instructions on how to recreate the development environment via cut-n ...
Read more >Concurrent development by multiple developers in integrated ...
Concurrent development by multiple developers in integrated factory automation development environment using open-source system “Git”.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good suggestion! I think fixing this may be a bit more involved than just adding the project_name; we also need to consider making it possible to override the exposed ports (8080 and 4444) by each running development environment.
I’ll close this then - thanks! FYI there are some workflow changes here in 1.1.x - if you get a chance to review #782, it would be appreciated!