0

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.

Charles Xu
  • 29,862
  • 2
  • 22
  • 39
San
  • 69
  • 1
  • 8
  • 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 Apr 02 '20 at 09: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 github – San Apr 02 '20 at 09:24

1 Answers1

1

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.

Charles Xu
  • 29,862
  • 2
  • 22
  • 39
  • 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 Apr 02 '20 at 10:08
  • 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. – San Apr 02 '20 at 10:23
  • @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](https://docs.docker.com/engine/reference/builder/). 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. – Charles Xu Apr 03 '20 at 02:01
  • check this once https://stackoverflow.com/questions/61093103/how-can-i-pass-container-level-arguments-in-azure-container-create – San Apr 08 '20 at 04:51
  • @San I will take a look later. – Charles Xu Apr 08 '20 at 05:39