Code Monkey home page Code Monkey logo

Comments (9)

kanika1894 avatar kanika1894 commented on July 23, 2024 2

Thanks a lot, @SteveMaier-IRT for your inputs.

from aci-deploy.

SteveMaier-IRT avatar SteveMaier-IRT commented on July 23, 2024 1

Hey @aylmerbritto,

I do not think you are doing anything wrong. the aci-deploy command does not support multiple images in a single container group. There are other people that have forked this project that have different implementations to be able to have a single container group with multiple images inside of it. For my issue that I am seeing I am just deploying them to 3 separate containers until this gets fixed or until I look at all of the forks of the github action and see which one would work the best for me.

from aci-deploy.

github-actions avatar github-actions commented on July 23, 2024

This issue is marked need-to-triage for generating issues report.

from aci-deploy.

SteveMaier-IRT avatar SteveMaier-IRT commented on July 23, 2024

docker-compose can also do this for multiple images into a single container. The source code for this action has it where it is setting the array of images to an array of a single object instead of multiple.

from aci-deploy.

aylmerbritto avatar aylmerbritto commented on July 23, 2024

Hey @SteveMaier-IRT ,
Thank you for the response
I didn't quite understand what I have been doing wrong. If you don't mind can you please have a [look at this]
`
on: [push]
name: Linux_Container_Workflow

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# checkout the repo
- name: 'Checkout GitHub Action'
uses: actions/checkout@v1

    - name: 'Login via Azure CLI'
      uses: azure/login@v1
      with:
        creds: ${{ secrets.AZURE_CREDENTIALS }}
    
    - uses: azure/docker-login@v1
      with:
        login-server: <url>
        username: <username>
        password: <pwd>
    - run: |
        docker-compose build
        docker push #image1
        docker push #image2
    - name: 'Deploy to Rabit'
      uses: 'azure/aci-deploy@v1'
      with:
        resource-group: <resource-group>
        dns-name-label: <domain-name>
        environment-variables: C_FORCE_ROOT=yes, APP_ENV=Production
        image: image1
        #command-line: celery worker -B -A simulator.tasks.celery --loglevel=debug
        location: uksouth
        name: crisismodellingmulti
        ports: 8000, 5672, 15672, 15692
        protocol: TCP
        registry-login-server: <url>
        registry-username: <unmae>
        registry-password: <pwd>
        restart-policy: Always`

and let me know what can be done?
The issue is, I can bring only one image up. while I have to launch containers from three images.
I manually deploy the app using aci.yml file `

The command I use is az container create --resource-group <> --file aci.yml. I have all three containers running if I launch it manually using the yaml file. But there's no provision for me to pass the aci.yml here.

from aci-deploy.

aylmerbritto avatar aylmerbritto commented on July 23, 2024

Alright, thank you @SteveMaier-IRT
I understand.
I know it's too much to ask but can you point me to any of the forked repositories that deploy multiple images in a single container group?
Also, you mentioned that you had deployed

single container group with multiple images inside of it

May I ask how did you do that? Because even if you manage to mention the images in an array, I have different commands that have to run while these containers are launching. How do I map each command to the respective images?

from aci-deploy.

SteveMaier-IRT avatar SteveMaier-IRT commented on July 23, 2024

https://github.com/PierreVH2/azure-containergroup-deploy/

This one seems pretty good and also has the ability to have separate command lines for each container. look in the source for it in the taskparameters.ts to see how it is loading up the containers. Each one can have its own image, command, evironment variables, etc. Looks like it should work ok. I am going to play with it for abit as well.

from aci-deploy.

aylmerbritto avatar aylmerbritto commented on July 23, 2024

This means alot. I will try it and let know you either ways :)

from aci-deploy.

github-actions avatar github-actions commented on July 23, 2024

This issue is marked need-to-triage for generating issues report.

from aci-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.