I have deployed the image https://hub.docker.com/r/codercom/code-server which is remote VS code in Azure containers. But now if I want to open any Project(Eg: Angular Project with node and angular cli setup)in that VS Code and develop remotely how can I achieve this.
2
-
If you mean the VS code is in the container instance, but the projects are in other places, for example, your local machine or Github?Charles Xu– Charles Xu2020-04-02 09:15:49 +00:00Commented Apr 2, 2020 at 9:15
-
@CharlesXu no. it can be in same container not in my local machine.how to host project in same container and open it in VSCode.or how to take code from githubSan– San2020-04-02 09:24:52 +00:00Commented Apr 2, 2020 at 9:24
Add a comment
|
1 Answer
For your requirements, I think there are two ways to achieve it.
One is that copy your project to the image and then deploy the image to the ACI. Or copy the project after deploying the image to ACI.
Another is that mount Azure File share to the ACI, and then upload the projects to the Azure file share.
5 Comments
San
how can i copy project to that image? can we run code-server image in another docker file which includes copying of project.Is that what you are saying?
San
Don't Mind, I am new to docker ,one week back i started with docker. Bare with my non-sense questions. if you know/have any best materials to get started with docker please let me know.
Charles Xu
@San Yes, I mean to use the Dockerfile to create your own image with copying the project. You can take a look at the Dockerfile. But I recommend the second way in my answer. It does not need you to create your own image. Just mount the Azure File Share to the ACI and upload your project to the file share.
San
check this once stackoverflow.com/questions/61093103/…
Charles Xu
@San I will take a look later.