Skip to content

Commit

Permalink
initial commit for noble
Browse files Browse the repository at this point in the history
  • Loading branch information
mqcmd196 committed Jul 20, 2024
1 parent 9d6b911 commit 0ef5a1c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/sudoer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
CODENAME: focal
- OS: ubuntu
CODENAME: jammy
- OS: ubuntu
CODENAME: noble
steps:
- name: Free disk space
run: |
Expand Down
8 changes: 8 additions & 0 deletions roles/emacs/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
environment:
PIP_BREAK_SYSTEM_PACKAGES: 1

- name: Install common packages for emacs29 in Ubuntu noble
apt:
name: ['libgccjit-13-dev']
state: present
become: yes
when: ansible_facts['distribution'] == "Ubuntu" and ansible_facts['distribution_major_version'] == "24"

- name: Install common packages for emacs29 in Debian bookworm
apt:
name: ['libgccjit-12-dev']
Expand Down Expand Up @@ -102,6 +109,7 @@
state: present
filename: llvm-toolchain
become: true
when: not (ansible_facts['distribution'] == "Ubuntu" and ansible_facts['distribution_major_version'] == "24")

- name: Install clang tools
apt:
Expand Down
29 changes: 29 additions & 0 deletions test/docker/ubuntu-noble.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM ubuntu:noble

ENV DEBIAN_FRONTEND=noninteractive

# For manage user
RUN apt update -qq && \
apt upgrade -y -qq && \
apt install -y -qq --no-install-recommends sudo software-properties-common

# install prerequisites
RUN apt install -y -qq --no-install-recommends \
git \
ansible

# Add non root user
ARG USERNAME=user
ARG PASSWORD=user
ARG GROUPNAME=user
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID $GROUPNAME && \
useradd -m -s /bin/bash -u $UID -g $GID -G sudo $USERNAME && \
echo $USERNAME:$PASSWORD | chpasswd && \
echo "$USERNAME ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER $USERNAME

WORKDIR /home/$USERNAME/dotfiles
COPY ./ .
RUN ./test/docker/run_deb

0 comments on commit 0ef5a1c

Please sign in to comment.