Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Mendix Build Pack Azure #152

Open
CMS247Breakdown opened this issue Aug 25, 2022 · 1 comment
Open

Docker Mendix Build Pack Azure #152

CMS247Breakdown opened this issue Aug 25, 2022 · 1 comment

Comments

@CMS247Breakdown
Copy link

Docker version 20.10.12

Mendix version 9.16.1

Mendix Build Pack 3.5.2

I will remove this issue ASAP if my build procedure is non applicable

I think this is the conventional Build process, however I am using Azure containers. In Docker the image is created. I can push the although I do not get that splash page during build process although my log shows a complete build and when I reference the image for my container I don’t get my landing page…

1- Open Mendix application and select the App option and open in file explorer

2- Make a copy after building and testing a place in a repository directory to push svn

3- Navigate to the builder pack and pull the latest ZIP

4- https://github.com/mendix/docker-mendix-buildpack

5- Unzip file into a local a repository

6- Go back to file explorer and copy the project into the unziped file

7- Open the file directory an svn

8- Push the entire directory

9- Open Build Unix Server

10- sudo git clone https://github.com/____________/mdx_build_bldpck.git

11- Copy the application along with all associated files to a directory off of home (/home/__/App) to aquire the relative path

12- Open terminal where docker file is located

13- sudo docker build --build-arg BUILD_PATH="/home/__/App/App" -t mdx_build_bldpck_compile .

14- sudo docker images – to confirm

15- Log into Azure Cloud

16- Select Create a Resource

17- Type Container registry and select

18- Select create

19-Apply a resouce group according to build

20- Apply an approriate registry name

21- Go to back to home page and select the correlated Registry

22- On the left hand side slect the menu Acess Keys

23- Enable Admin

24- Copy the login server address

25- Go back to terminal

26- sudo docker login mdxbuildbldpck.azurecr.io

27- For username use the admin username and generated password

28- Apply a tag for the newly created build with reference to registry and application

Example: sudo docker tag 506c57686493 mdxbuildbldpck.azurecr.io/mdx_build_bldpckv1:v1234

29- Push to the Registry repository

Example: sudo docker push mdxbuildbldpck.azurecr.io/mdx_build_bldpckv1:v1234

30- Evaluate a sucessful build by navigating in Azure

Home-> Container Registry-> Respository ->

This is where I have a problem...when I create a container instance and reference the image nothing comes up on browser

@JWHolding
Copy link

do you get any logs? have you tried pulling the image and running locally? do you definitely get an image in the ACR?
we have quite a large footprint of mendix apps in Azure using docker and ACR and never had an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants