compose.yaml 736 B

123456789101112131415161718192021222324252627282930
  1. name: build_stm32mp2
  2. services:
  3. build:
  4. build: &default-build
  5. context: .
  6. dockerfile: Dockerfile
  7. image: build_stm32mp2
  8. tty: true
  9. stdin_open: true
  10. working_dir: /home/ubuntu/build
  11. entrypoint:
  12. - "bash"
  13. - "-c"
  14. command: [ "./script.sh" ]
  15. environment: &default-env
  16. - MACHINE=stm32mp25-eval
  17. volumes: &default-volumes
  18. - type: bind
  19. source: ${HOME}/.gitconfig
  20. target: /home/ubuntu/.gitconfig
  21. - type: bind
  22. source: ${HOME}/.git-credentials
  23. target: /home/ubuntu/.git-credentials
  24. - type: bind
  25. source: ${HOME}/.ssh
  26. target: /home/ubuntu/.ssh
  27. - type: bind
  28. source: ./build
  29. target: /home/ubuntu/build