fabikd commented on issue #7238:
URL: 
https://github.com/apache/trafficcontrol/issues/7238#issuecomment-1349404481

   This fixed it for me: 
   
   Reinstalled docker from the command line to use user=[your username] flag, 
and update the dockerfiles in the code for both enroller and traffic_ops in the 
cdn-in-a-box folder with the correct architecture for the M1. Link to install 
info for docker: https://docs.docker.com/desktop/install/mac-install/  and use 
**Install from command line**. Then update cdn-in-a-box/traffic_ops Dockerfile 
line 46 to **aarch64/pgdg-redhat-repo-latest.noarch.rpm** after 
**EL-${RHEL_VERSION%%.*}** and, add in line 18 of the cdn-in-a-box/enroller 
Dockerfile   **--platform=linux/amd64** after the 1st **FROM**.
    
   Build and run of it:
   in the trafficcontrol/infrastructure/cdn-in-a-box folder run the following:
    
   
   - make build-builders ~~> this will create all the rpms and copy each rpms 
into its own folder in the cdn-in-a-box project. this will also create the dist 
folder under trafficcontrol folder structure even if you delete yours.
   
   - docker-compose up ~~> this will create docker images, and if rebuild is 
needed ran docker-compose up --build. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to