Skip to content

Commit

Permalink
packer-rocm/submodule: +arg for clone, sync excludes++ (#53)
Browse files Browse the repository at this point in the history
Ergonomics for submodules are a bit unusual, note the recursion option. Also: relax the copies in `build.yml`
  • Loading branch information
joshlay2amd authored Oct 20, 2024
1 parent e2bfe81 commit b4cca3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packer-rocm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ project.
### Setup

```shell
git clone https://github.com/nod-ai/ADA.git
git clone --recurse-submodules https://github.com/nod-ai/ADA.git
ansible-galaxy collection install -r ADA/packer-rocm/requirements.yml
```

Expand Down
4 changes: 4 additions & 0 deletions packer-rocm/playbooks/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,13 @@
src: "{{ packer_rocm_dir }}/" # trailing '/' on source is significant; copying *contents* of the dir
dest: "{{ packer_maas_dir }}"
rsync_opts:
- "--exclude='.git'"
- "--exclude='*.md'"
- "--exclude='ansible.cfg'"
- "--exclude='inventories'"
- "--exclude='NOTICE'"
- "--exclude='LICENSE'"
- "--exclude='TODO'"
- "--exclude='packer-maas'"

- name: "Ensure Packer plugins are installed"
Expand Down

0 comments on commit b4cca3e

Please sign in to comment.