Now that LMDBService runs in a docker image, it is possible to run it into Azure Container Instance.
Here are the steps to follow:
- Build the docker image locally with its dockerfile
- docker image build –tag mydocker/myserver d:\dev\docker
- Create a Repository in Azure Repository
- Connect in docker shell to the repo
- docker login lmdbwsprod.azurecr.io -u lmdbwsprod -p xxxxxxxxxxxxxxxxxxxxxxxxxx
- Tag the prod repository
- docker tag mydocker/myserver lmdbwsprod.azurecr.io/prod
- Push the docker image to the Azure repository
- Go to Azure portal and choose Azure Repository
- Choose prod repository
- Check tags and choose latest
- Click Run Instance in […] button
- Open port 7001
- Click OK
- Go to Azure Container Instance
- choose the container and click Overview
- Retrieve the IP address
Test the URL : http://40.114.209.198:7001/MyServer/LMDB/?request=set-data&key=Key_v99&value=Value_v99&name=cache_NET
Leave a Reply