Skip to content

Commit

Permalink
Merge pull request #16 from darkwizard242/feature/multi-arch-support
Browse files Browse the repository at this point in the history
Multi-Arch Support & Remove obsolete platforms
  • Loading branch information
darkwizard242 authored Jun 20, 2024
2 parents d0b82dd + 9937b51 commit 00304e8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
strategy:
max-parallel: 10
matrix:
IMAGE: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, rockylinux-8, centos-7, debian-bullseye, debian-buster]
IMAGE: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, rockylinux-8, debian-bullseye, debian-buster]

steps:

Expand Down
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@ Available variables are listed below (located in `defaults/main.yml`):
```yaml
lazydocker_app: lazydocker
lazydocker_version: '0.23.3'
lazydocker_dl_url: https://github.com/jesseduffield/{{ lazydocker_app }}/releases/download/v{{ lazydocker_version }}/{{ lazydocker_app }}_{{ lazydocker_version }}_{{ ansible_system }}_{{ ansible_architecture }}.tar.gz
lazydocker_architecture_map:
amd64: x86_64
arm: arm64
x86_64: x86_64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: x86_64
lazydocker_dl_url: https://github.com/jesseduffield/{{ lazydocker_app }}/releases/download/v{{ lazydocker_version }}/{{ lazydocker_app }}_{{ lazydocker_version }}_{{ ansible_system }}_{{ lazydocker_architecture_map[ansible_architecture] }}.tar.gz
lazydocker_bin_path: /usr/local/bin
lazydocker_file_owner: root
lazydocker_file_group: root
Expand All @@ -26,15 +35,16 @@ lazydocker_file_mode: '0755'
### Variables table:
Variable | Description
--------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------
lazydocker_app | Defines the app to install i.e. **lazydocker**
lazydocker_version | Defined to dynamically fetch the desired version to install. Defaults to: **0.23.3**
lazydocker_dl_url | Defines URL to download the lazydocker binary from.
lazydocker_bin_path | Defined to dynamically set the appropriate path to store lazydocker binary into. Defaults to (as generally available on any user's PATH): **/usr/local/bin**
lazydocker_file_owner | Owner for the binary file of lazydocker.
lazydocker_file_group | Group for the binary file of lazydocker.
lazydocker_file_mode | Mode for the binary file of lazydocker.
Variable | Description
--------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------
lazydocker_app | Defines the app to install i.e. **lazydocker**
lazydocker_version | Defined to dynamically fetch the desired version to install. Defaults to: **0.23.3**
lazydocker_architecture_map | Defined to dynamically fetch the processor architecture and assign relevant value
lazydocker_dl_url | Defines URL to download the lazydocker binary from.
lazydocker_bin_path | Defined to dynamically set the appropriate path to store lazydocker binary into. Defaults to (as generally available on any user's PATH): **/usr/local/bin**
lazydocker_file_owner | Owner for the binary file of lazydocker.
lazydocker_file_group | Group for the binary file of lazydocker.
lazydocker_file_mode | Mode for the binary file of lazydocker.
## Dependencies
Expand Down
11 changes: 10 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@

lazydocker_app: lazydocker
lazydocker_version: '0.23.3'
lazydocker_dl_url: https://github.com/jesseduffield/{{ lazydocker_app }}/releases/download/v{{ lazydocker_version }}/{{ lazydocker_app }}_{{ lazydocker_version }}_{{ ansible_system }}_{{ ansible_architecture }}.tar.gz
lazydocker_architecture_map:
amd64: x86_64
arm: arm64
x86_64: x86_64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: x86_64
lazydocker_dl_url: https://github.com/jesseduffield/{{ lazydocker_app }}/releases/download/v{{ lazydocker_version }}/{{ lazydocker_app }}_{{ lazydocker_version }}_{{ ansible_system }}_{{ lazydocker_architecture_map[ansible_architecture] }}.tar.gz
lazydocker_bin_path: /usr/local/bin
lazydocker_file_owner: root
lazydocker_file_group: root
Expand Down
2 changes: 0 additions & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ galaxy_info:
- noble
- jammy
- focal
- bionic
- name: Debian
versions:
- bullseye
- buster
- name: EL
versions:
- 8
- 7

galaxy_tags:
- lazydocker
Expand Down

0 comments on commit 00304e8

Please sign in to comment.