Giter VIP home page Giter VIP logo

Comments (7)

chris968 avatar chris968 commented on July 20, 2024
  • I've managed to achieve the "Install Python packages" task on arm64 architecture after "libssl-dev" and "libffi-dev" packages installation

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

I can't say that I have any experience with Raspian. Were you able to get everything working in the end?

from ansible-docker.

chris968 avatar chris968 commented on July 20, 2024

I don't known for raspian but i've managed to make it work on Debian Buster for arm64/aarch64 architecture with the following changes on the "defaults/main.yml" file :

docker__package_dependencies: >
  [
  {% if ansible_architecture == "aarch64" %}
  "libffi-dev",
  "libssl-dev",
  {% endif %}
  "apt-transport-https",
  "ca-certificates",
  "cron",
  "gnupg2",
  "software-properties-common"
  ]

docker__apt_repository: >
  {% if ansible_architecture == "aarch64" %}
  deb [arch=arm64]
  {% else %}
  deb [arch=amd64]
  {% endif %}
  https://download.docker.com/linux/{{ ansible_distribution | lower }}
  {{ ansible_distribution_release }} {{ docker__channel | join (' ') }}

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

That looks good. I'm glad you found a solution that didn't involve forking the role.

@FauthD, can you confirm if this works for you with Raspian?

I'm not 100% sold on supporting this officially with the role by adding new variables to make this easier to configure only because I never used Raspian and I'm trying to keep things focused on distros and architectures you would typically find on popular cloud hosting providers.

But with that said, I'm not opposed to including an example of this in the documentation and who knows, maybe down the line extracting out a variable for the architecture might be worth it if enough people are really using this role for that use case.

from ansible-docker.

FauthD avatar FauthD commented on July 20, 2024

Hi,
the hint from chris968 did lead to a solution.
Additionally what I wrote at first, this must also be added to the host_vars file:

docker__package_dependencies:
  - "apt-transport-https"
  - "ca-certificates"
  - "cron"
  - "gnupg2"
  - "software-properties-common"
  - "libssl-dev"
  - "libffi-dev"

Now it did build everything successfully.
Testing how it works will have to wait, need to switch gears...

Thanks for all the help!

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

Thanks. So it sounds like in both cases it came down adding the 2 extra lib*-dev packages and also making sure the architecture matches for the apt sources list.

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

Closing this for now as a solution does exist.

from ansible-docker.

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.