docker-compose.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. version: "3"
  2. # This docker-compose is for testing the installation process.
  3. # In starts the installation and executes also build of get-started example.
  4. services:
  5. idf-setup-online-test:
  6. image: mcr.microsoft.com/windows/servercore:1809
  7. command: powershell -c "C:/Scripts/Install-Idf.ps1 -Installer 'c:/Output/esp-idf-tools-setup-online-unsigned.exe' -IdfVersion ${IDF_VERSION}; C:/Scripts/Test-IdfCmd.ps1; C:/Scripts/Test-IdfPowerShell.ps1;; powershell ;exit $$LASTEXITCODE"
  8. tmpfs:
  9. - C:\Users\ContainerAdministrator\.espressif
  10. volumes:
  11. - type: bind
  12. source: C:\projects\esp-idf\tools\windows\tool_setup\Output
  13. target: C:\Output
  14. read_only: true
  15. - type: bind
  16. source: C:\projects\esp-idf\tools\windows\tool_setup\Scripts
  17. target: C:\Scripts
  18. read_only: true
  19. idf-setup-offline-test:
  20. image: mcr.microsoft.com/windows/servercore:1809
  21. command: powershell -c "C:/Scripts/Install-Idf.ps1 -Installer 'c:/Output/esp-idf-tools-setup-offline-unsigned.exe' -IdfVersion ${IDF_VERSION}; C:/Scripts/Test-IdfCmd.ps1; C:/Scripts/Test-IdfPowerShell.ps1; powershell ;exit $$LASTEXITCODE"
  22. tmpfs:
  23. - C:\Users\ContainerAdministrator\.espressif
  24. volumes:
  25. - type: bind
  26. source: C:\projects\esp-idf\tools\windows\tool_setup\Output
  27. target: C:\Output
  28. read_only: true
  29. - type: bind
  30. source: C:\projects\esp-idf\tools\windows\tool_setup\Scripts
  31. target: C:\Scripts
  32. read_only: true
  33. idf-setup-precached-test:
  34. image: mcr.microsoft.com/windows/servercore:1809
  35. command: powershell -c "C:/Scripts/Prepare-Cache.ps1 -IdfVersion ${IDF_VERSION}; C:/Scripts/Install-Idf.ps1 -Installer 'c:/Output/esp-idf-tools-setup-online-unsigned.exe' -IdfVersion ${IDF_VERSION}; C:/Scripts/Test-IdfCmd.ps1; C:/Scripts/Test-IdfPowerShell.ps1; powershell ;exit $$LASTEXITCODE"
  36. tmpfs:
  37. - C:\Users\ContainerAdministrator\.espressif
  38. volumes:
  39. - type: bind
  40. source: C:\projects\esp-idf\tools\windows\tool_setup\Output
  41. target: C:\Output
  42. read_only: true
  43. - type: bind
  44. source: C:\projects\esp-idf\tools\windows\tool_setup\Scripts
  45. target: C:\Scripts
  46. read_only: true
  47. # releases volume to speed up installation and avoid downloading of files
  48. - type: bind
  49. source: C:\projects\esp-tests\installer-docker-runner\.espressif\
  50. target: C:\Cache
  51. read_only: true