-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: ajout de paramétrage pour gérer les M1 plus proprement * feat: passage a la version 12 de debian --------- Co-authored-by: Jeremy PASTOURET <[email protected]>
- Loading branch information
1 parent
1d78ed2
commit cfc53f9
Showing
6 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM debian:11.6 | ||
FROM debian:12 | ||
ENV container=docker | ||
|
||
RUN apt-get update -y && apt-get dist-upgrade -y | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
--- | ||
- name: Add nodejs apt key | ||
ansible.builtin.apt_key: | ||
url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key | ||
state: present | ||
- name: Add nodejs 18.x ppa for apt repo | ||
ansible.builtin.apt_repository: | ||
repo: deb https://deb.nodesource.com/node_18.x bullseye main | ||
update_cache: true | ||
- name: Install nodejs | ||
|
||
- name: Download node.js installation script | ||
ansible.builtin.get_url: | ||
url: https://deb.nodesource.com/setup_{{ node_version }}.x | ||
dest: /tmp/nodesource_setup.sh | ||
mode: '0755' | ||
|
||
- name: Run the nodesource setup script | ||
become: true | ||
ansible.builtin.command: sh /tmp/nodesource_setup.sh | ||
args: | ||
creates: /usr/bin/node | ||
|
||
- name: Update and install nodejs | ||
become: true | ||
ansible.builtin.apt: | ||
update_cache: true | ||
name: nodejs | ||
state: present | ||
update_cache: true | ||
|
||
- name: Clean up NodeSource setup script | ||
ansible.builtin.file: | ||
path: /tmp/nodesource_setup.sh | ||
state: absent |