container-creation.sh 747 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. set -e
  3. # GitHub doesn't pull in submodules by default when mounting
  4. # the repo directory on the container so we do this post-create
  5. git submodule update --init --recursive
  6. # Install SDK and tool dependencies before container starts
  7. # Also run the full restore on the repo so that go-to definition
  8. # and other language features will be available in C# files
  9. ./restore.sh
  10. # Add .NET Dev Certs to environment to facilitate debugging.
  11. # Do **NOT** do this in a public base image as all images inheriting
  12. # from the base image would inherit these dev certs as well.
  13. dotnet dev-certs https
  14. # The container creation script is executed in a new Bash instance
  15. # so we exit at the end to avoid the creation process lingering.
  16. exit