Skip to content

🆕 add a linux custom #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added linux-custom-almalinux-95.cmake
Empty file.
4 changes: 4 additions & 0 deletions linux-custom-almalinux-95.cmake.layers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
"!linux-*/**",
"linux-custom-almalinux-95*"
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ARG ALMALINUX_9_5="almalinux@sha256:91387bd5b12c2626c9b01a8062e6dd02cdf3a9d4b9ba705631c01597f9e3ae06"
FROM ${ALMALINUX_9_5}

# Install tipi and cmake-re
ENV TIPI_DISTRO_MODE=default
ENV TIPI_INSTALL_LEGACY_PACKAGES=OFF
ENV SUDO_GROUP=wheel
ENV TIPI_INSTALL_SOURCE=file:///tipi-linux-x86_64.zip
COPY /tipi-linux-x86_64.zip .
RUN curl -fsSL https://raw.githubusercontent.com/tipi-build/cli/c14014db11342118f65ef95520a70f43c17ca453/install/container/centos.sh -o centos.sh && /bin/bash centos.sh

USER tipi
WORKDIR /home/tipi
EXPOSE 22
17 changes: 17 additions & 0 deletions linux-custom-almalinux-95.pkr.js/linux-custom-almalinux-95.pkr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"variables": { },
"builders": [
{
"type": "docker",
"image": "linux-custom-almalinux-95:{{cmake_re_source_hash}}",
"commit": true
}
],
"post-processors": [
{
"type": "docker-tag",
"repository": "linux",
"tag": "latest"
}
]
}
Empty file added linux-custom.cmake
Empty file.
4 changes: 4 additions & 0 deletions linux-custom.cmake.layers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
"!linux-*/**",
"linux-custom*"
]
16 changes: 16 additions & 0 deletions linux-custom.pkr.js/linux-custom.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ARG UBUNTU_24_04="ubuntu@sha256:04f510bf1f2528604dc2ff46b517dbdbb85c262d62eacc4aa4d3629783036096"
FROM ${UBUNTU_24_04}

ENV TIPI_DISTRO_MODE=default
ENV TIPI_INSTALL_LEGACY_PACKAGES=OFF
ENV TIPI_INSTALL_SOURCE=file:///tipi-linux-x86_64.zip
COPY /tipi-linux-x86_64.zip .

ARG DEBIAN_FRONTEND=noninteractive # avoid tzdata asking for configuration
# Install tipi and cmake-re
RUN apt update -y && apt install -y curl gettext
RUN curl -fsSL https://raw.githubusercontent.com/tipi-build/cli/c14014db11342118f65ef95520a70f43c17ca453/install/container/ubuntu.sh -o ubuntu.sh && /bin/bash ubuntu.sh
USER tipi
WORKDIR /home/tipi
EXPOSE 22

18 changes: 18 additions & 0 deletions linux-custom.pkr.js/linux-custom.pkr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"variables": { },
"builders": [
{
"type": "docker",
"image": "linux-custom:{{cmake_re_source_hash}}",
"commit": true
}
],
"post-processors": [
{
"type": "docker-tag",
"repository": "linux",
"tag": "latest"
}
]

}
1 change: 1 addition & 0 deletions linux-ubuntu-2404.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include("${CMAKE_CURRENT_LIST_DIR}/linux-cxx17.cmake")
4 changes: 2 additions & 2 deletions linux-ubuntu-2404.pkr.js/linux-ubuntu-2404.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
ARG UBUNTU_24_04="ubuntu@sha256:04f510bf1f2528604dc2ff46b517dbdbb85c262d62eacc4aa4d3629783036096"
FROM ${UBUNTU_24_04}

ENV TIPI_DISTRO_MODE=default
ENV TIPI_DISTRO_MODE=all
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we now have a full one, do we want to put a default toolchain file with useful compiler defaults ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

ENV TIPI_INSTALL_LEGACY_PACKAGES=OFF
ENV TIPI_INSTALL_SOURCE=file:///tipi-linux-x86_64.zip
COPY /tipi-linux-x86_64.zip .

ARG DEBIAN_FRONTEND=noninteractive # avoid tzdata asking for configuration
# Install tipi and cmake-re
RUN apt update -y && apt install -y curl gettext
RUN apt update -y && apt install -y curl gettext build-essential
RUN curl -fsSL https://raw.githubusercontent.com/tipi-build/cli/c14014db11342118f65ef95520a70f43c17ca453/install/container/ubuntu.sh -o ubuntu.sh && /bin/bash ubuntu.sh
USER tipi
WORKDIR /home/tipi
Expand Down