From c220ff0d5a1dcb5c9df445144b27958bc05957f0 Mon Sep 17 00:00:00 2001 From: Kenneth Jorgensen <kenneth@autonomouslogic.com> Date: Wed, 13 Apr 2022 17:16:07 +0900 Subject: [PATCH] chore: Dockerized development examples (#15099) --- docs/development/local-development.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/development/local-development.md b/docs/development/local-development.md index d9d28660e3..c0cef748af 100644 --- a/docs/development/local-development.md +++ b/docs/development/local-development.md @@ -65,6 +65,21 @@ If you are using [VS Code](https://code.visualstudio.com/) you can skip installi The VS Code [integrated terminal](https://code.visualstudio.com/docs/editor/integrated-terminal) is now running in the container and can be used to run additional commands. +#### Local Docker + +If, for some reason, you can't run the relevant versions on your local machine, you can run everything from a Docker image. +To build the correct docker image: + +``` +docker build -f .devcontainer/Dockerfile -t renovatebot_local . +``` + +Then you can run Yarn directly from Docker, for instance: + +``` +docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app renovatebot_local yarn install +``` + ## Fork and Clone If you want to contribute to the project, you should first "fork" the main project using the GitHub website and then clone your fork locally. -- GitLab