How to import a project from Docker into Android Studio - docker

I am using this repo github.com/opengisch/QField to create a Docker image. It all went ok and I can see the Docker container is running. This runs a local machine and I am not able to see where the files downloaded by Docker are saved on Widows 10. I have not used Docker before.
I need to open this project in Android Studio but I cannot find any guide how to do this. I have tried to locate files and directly download to Windows but dont seem to have any luck.

Related

Error publishing Docker image to Azure container registry

I am trying to publish my first Docker image (built from a simple .Net core console app) to my Azure container registry. The process started and ran for about two minues before errored out. Here is the error:
The log mentioned contains the same imformation.
It looks like the error is related to some Nuget package:
But the problem is that I don't have this "C:\Program Files\dotnet\sdk\5.0.408" folder on my machine:
and I don't have a reference to that package in my project:
What am I missing? and what should do to fix it? I am totaly new to Docker so any inputs will be highly appreciated.
UPDATE
Here is my firewall settings - it doesn't have any Docker related items in it! Could that be the problem? If so, how do I fix it?
• I would advise you to please check the installation of the latest version of the ‘Docker Desktop for Windows’ software that is supported by ‘ASP .Net Core Web App’ long term release version. It should be compatible to the created ‘.Net Core Web App’ version such that when you are trying to publish your web app image from the Visual Studio App to the Azure container registry, the ‘Docker Desktop for Windows’ will be able to sync push the image to the linked ACR.
• Would also suggest you to please check whether the Linux kernel package for x64 machines is updated or not. If not, would suggest you to please download the WSL2 Linux Kernel update package, install it and restart the ‘Docker Desktop for Windows’ software on your system. This will ensure that the Linux kernel set for the Web app in Visual studio is accordingly setup in ‘Docker Desktop for Windows’ application.
• Finally, please check the local Windows firewall for the inbound allow rules for the ‘Docker Desktop for Windows’ software whether its backend is allowed to run and connect to the Azure Container Registry or not as below: -
Also, ensure that the ‘Azure.Container.ContainerRegistry’ library is installed in your environment through the Visual Studio extension gallery as it is required for developing a .Net Web app code. Please ensure that ‘Microsoft Authentication’ libraries are also installed correctly in your Visual Studio repository for successful connections. I followed the below documentation link for publishing Docker image to Azure Container Registry and I was able to successfully connect to the ACR as shown below: -
https://learn.microsoft.com/en-us/visualstudio/containers/hosting-web-apps-in-docker?view=vs-2022
Thus, would suggest you follow the given link.

visual studio code stores extensions and other settings for a specific docker image

I have the following "problem". Let's say I set up a Docker container with Node on it and want to use it as a development container. I connect in Visual Studio Code via the extension "Remote - Containers" with the container and create a working folder, respectively I install some extensions e.g. Prettier.
If I now delete this container and create a new one with the same image, all extensions of the old container are automatically reinstalled and Visual Studio Code also tries to connect to the old working folder, which may not be available at all.
Does anyone know where this information is stored regarding the image so that I can delete it after I delete a container. I work on macOS
I have found the files related to my problem. They are located in the following path under macOS:
~/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/imageConfigs
The .json files contain information about the workspaces folder and the installed extensions.

How to run Github Desktop on Manjaro

I am new to Manjaro and Linux in general. I downloaded the AppImage from the github repsitory: https://github.com/shiftkey/desktop/releases/tag/release-2.9.14-linux2 and set the properties to be able to run as program. How can i start Github Desktop from the terminal now? What is the recommended folder to store .AppImage files in my system?
Update: I enabled AUR download, downloaded the Github Desktop from AUR.
To run the application from the terminal you have to type github-desktop

Remote Docker Visual Studio Code - No running containers - Mac OS

I am trying to Attach VS Code Window into a Docker container inside my remote machine on Azure.
It has stopped working at some point, the message is "There are no running container to attach to", but clearly there is one because it finds it in the Docker extensions.
These are my steps.
Open VS Code
SSH-Remote Development to open VS Code on the Remote machine and install Docker extension there
I find the docker container in the remote machine, but it fails opening it.
I attach here a screenshot.
I have tried this issue of possibly being because of opening VS Code from Spotlight instead of the Terminal, but is not the case.
Thanks !
I had the same issue, but opening a folder first, on the VSCode instance on the remote machine, seems to solve the problem for me.
File > Open Folder > "chose a folder"

Can i containerise console app with vs2019 into ACR, seems only dotnetcore web apps will work

I am using VS2019 with docker support (and windows docker running). When creating a console app there is no checkbox for docker support like there is for a dotnetcore web app. This means i cannot publish a container to ACR from VS2019.
I can create a console app and then add docker support and i can build image but embarrassing enough i cannot locate the image that's built or figure how to get it into ACR. running docker ps -a shows nothing in the container list.
So: is there support for pushing containers to ACR from VS2019 console apps?
If not then exactly how do i build a docker image of a console app and get it to ACR - am i left with CLI only?
thanks
Paul
I managed to solve this.
The issue was that the underlying version of windows 10 i was on would not allow me to create a docker image using a more modern supported version of windows nano server. Once i updated windows and double checked the base image that create image was using it would all work. Take the resulting docker image and use the azure cli to push to ACR and then i can run the container from ACI...
Bit tortuous compared to creating a web app but it worked...

Resources