I have setup a GitHub Codespaces environment that includes a SQL Server container.
Inside /.devcontainer/docker-compose.yml
i have something like this;
# ... other containers configururation
db:
image: mcr.microsoft.com/mssql/server:2019-latest
restart: unless-stopped
environment:
ACCEPT_EULA: Y
The SQL Server spins-up, but I don't know how can I restore a database on that server. When I run a VS Code DevContainer locally on docker I can just copy the file to the SQL Server container with the docker cp
command, and then run the script to restore the database from there.
But I don't know how to approach this task with Codespaces.
Any ideas appreciated.