Skip to content

Commit

Permalink
change kernel conf, add layout=ostree
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-online committed Jan 26, 2025
1 parent 6163f40 commit a271d92
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 10 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# 1. Checkout кода из репозитория
- uses: actions/checkout@v4

# 2 Логин в GitHub Container Registry
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.repository_owner }}" --password-stdin

# 3. Сборка Docker-образа
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/skywar-design/alt-atomic:source

# 4. Загрузка Docker-образа в GitHub Container Registry
- name: Push the Docker image to GitHub Container Registry
run: docker push ghcr.io/skywar-design/alt-atomic:source
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/skywar-design/alt-atomic:latest
cache-from: type=gha
cache-to: type=gha,mode=max
# Добавить для параллельных слоев
platforms: linux/amd64
# Включить разделение слоев
outputs: type=registry,cache=true
16 changes: 16 additions & 0 deletions DockerFileOld
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM registry.altlinux.org/sisyphus/base:latest

# Копируем скрипты
COPY src /src

# Устанавливаем переменные окружения
ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"
ENV PATH="/root/.cargo/bin:${PATH}"

WORKDIR /src
# Делаем один RUN запуск, потому что увеличние их числа добавляет ненужные слои и увеличивает обьем образа
RUN chmod +x main.sh && ./main.sh

WORKDIR /
# Помечаем образ как bootc совместимый
LABEL containers.bootc=1
23 changes: 22 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,29 @@ ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"
ENV PATH="/root/.cargo/bin:${PATH}"

WORKDIR /src

# Базовые пакеты для работы системы
RUN ./packages/apt_prepare.sh
RUN ./packages/base.sh
RUN ./packages/DE/GNOME/gnome.sh
RUN ./packages/apt_ending.sh

# Настройка
RUN ./configuration/branding.sh
RUN ./configuration/settings.sh
RUN ./configuration/user.sh
RUN ./configuration/kernel.sh
RUN ./make/zstd.sh
RUN ./make/cargo.sh
RUN ./make/bootupd.sh
RUN ./make/bootc.sh
RUN ./make/brew.sh
RUN ./make/zsh-plugins.sh
RUN ./make/atomic-actions.sh
RUN ./configuration/clear.sh

# Делаем один RUN запуск, потому что увеличние их числа добавляет ненужные слои и увеличивает обьем образа
RUN chmod +x main.sh && ./main.sh
# RUN chmod +x main.sh && ./main.sh

WORKDIR /
# Помечаем образ как bootc совместимый
Expand Down
25 changes: 25 additions & 0 deletions docker-imageOld
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
# 1. Checkout кода из репозитория
- uses: actions/checkout@v4

# 2 Логин в GitHub Container Registry
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.repository_owner }}" --password-stdin

# 3. Сборка Docker-образа
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/skywar-design/alt-atomic:source

# 4. Загрузка Docker-образа в GitHub Container Registry
- name: Push the Docker image to GitHub Container Registry
run: docker push ghcr.io/skywar-design/alt-atomic:source

0 comments on commit a271d92

Please sign in to comment.