How to query a Pervasive v13 database from a Docker Container? - pervasive

How can you query a Pervasive v13 database from an application that's running inside a docker container?
It would seem you'd have to install the pervasive sql client inside the docker container to accomplish this, but I cannot locate any documentation regarding this task.
Please advise.

Yes, you would need to install the Pervasive v13 client within the Docker container. You'd need to use the client for the OS of the container. If the container is Linux based, use the Linux client. If it's Windows, use the Windows client.

Related

Why my docker image does not want to deploy on azure web services?

i have an issue with deploying Docker container to Azure Web Services, it is showing only for this whole time:
Azure view
Do you have maybe an idea why is it like that? This is my docker file:
Dockerfile
And im doing those steps: first programming, then pulling to github, then using Docker Image:Build Image, and then using command:
docker pull xxxx/xxxx:latest
And waiting for result, but it is not changing anything, i have the basic plan, so i cannot use better plan, im using Docker Hub service
Azure view
And these are the settings
Just a wild guess, but have you tried
docker push xxxx/xxxx:latest
this will upload your docker image to the registry so that azure can then download your image.

GCloud, how to connect to MSSQL instance

This is straightforward but I haven't found out how to do it.
I started using Google Cloud and setup my PostgreSQL instance.
Now I need to migrate data from another MSSQL database, but not all of it.
I can migrate from my local computer connecting to both databases.
Now I'd like to do the same directly from GCloud.
The posts that I've found describe how to create the whole MSSQL from GCloud, but I only need to connect to one that has been created.
However, I haven't found how to connect to MSSQL from there. Specifically, how do I install the necessary drivers?
Thanks.

Best way to run SQL Server in Docker in Azure

Trying to find article or solution page in Azure but I am not successful yet.
The title is pretty much self explanatory. I am looking for a known best practice or solution with steps to follow to run docker with SQL Server in Azure.
I have Docker with SQL Server Express, Docker for Windows, running locally and my expectation is simply deploying this to Azure.
Based on my short experience with Azure, I probably need to set up some Azure service where I can deploy my docker image and run, not sure what that Azure product should be (probably more of Azure Container than Azure SQL)
well, given your requirement of windows containers (why?), you can use either Azure Container Instances (but be mindful of base images they support) or AKS engine. I'd discard webapps.

How do I connect the local SQL Server database for the ASP.NET Core application running inside either local Docker or Kubernetes?

I created an ASP.NET Core Web API using VS2017. After that I enabled the Docker support for my application.
Next, I was implemented the EF Core feature. After that I tested application locally then it’s working fine, database also created. But whenever I run the application inside local Docker or local Kubernetes the application won't work properly as I expected. because I used the Local SQL Server so, whatever the container running inside either Docker or Kubernetes it doesn't know the SQL Server or SQL Server database.
Can anyone suggest how to use the local database in the container running inside either Docker or Kubernetes?
You need to give the host's IP. In linux, you can use "host.docker.internal" hostname to connect to the host machine. It is supposedly working in Windows, however it has many, many, far too many problems in Windows.
If this hostname does not work for you, you have 2 IP addresses. One is the docker's gateway, that should start with 10...* or 172...* depending on how you set it up. Normally to learn this one, use docker inspect <container> and you can see the default gateway in the network section. However, Kubernetes might change these and it might be providing a better means to access the host. I did not use Kubernetes, so I don't know.
The other option is to use the IP address of the host, assigned by your network using DHCP. It should normally start with 192.168...
Your containers should be able to access applications on your host using these IP addresses. If the problem persists, turn off your firewall, and try pinging from inside the containers.

How to deploy database on linux

I have a small asp.net core website that I push to my server via jenkins. Jenkins does git checkout and then dotnet restore and dotnet run. It works for the website, but I added entity framework and I'm a little confused. How exactly do I move my local database to the server? Or should I create one on the server and then reference it?
I have one mssql database on (localdb)\MSSQLLocalDB, but when I run the server and try to go to a page which gets data from the database I get 500 Internal Server Error.
I would like to have one local db for testing and one on the server, but I just can't wrap my head around all of this.
Well in development, you should write a init script for your database. This will create all the required stuff your application needs.
So in linux...
Install the MySQL, get the users set up, and init the database.
In your application...
Provide the connection string for the DB installed in Linux.
I am not running my app in c# but this is similar to my node app. That is what I do. I develop in windows with Postgres. Then my prod is on a GoDaddy Linux cloud server and I have Postgres installed in that. When I do my git pull for the latest, I don't have to change much because of the .env file for my environment variables.

Resources