Conversation
There was a problem hiding this comment.
Happy to approve, but would be nice to get the functionality in shadow-robot/sr-build-tools#711 (review) added before merging this PR.
|
Nice. |
The checkout of dx_system in this script is purely to grab the host_scripts directory (hence the sparse checkout and deletion of dx_system at the end). The actual dx_system is part of the docker image. At the moment we don't add dx_system to the user workspace, as I understood that would be something we would have the users do manually if they want to edit dx_system |
Understood. Does that mean that the mounting of a host PC directory into the container is also a manual process for the moment? |
Depends on the directory. We automatically mount the We expect users to develop into the container via the user_ws directory (e.g. they would put their version of dx_system in there) |
|
Malformed license check can be fixed by using the following license |
| cd "$temp_dir" || { print_red "Failed to change to temporary directory"; exit 1; } | ||
| git clone -n --depth=1 --filter=tree:0 https://github.com/shadow-robot/dx_system.git . || { print_red "Failed to clone repository"; exit 1; } | ||
|
|
||
| # Configure sparse checkout |
There was a problem hiding this comment.
You have to cd into the dir you just cloned for the next git commands to work
|
@niko-holmes this one seems to have been forgotten. Should we merge it? |
Yes please! Im doing a quick re-review and will address outstanding comments |
Proposed changes
Adding a script to automate the setting up of a DX System
Types of changes
What types of changes does your code introduce?
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. This is a reminder of what we should look for before merging this code. I have: