builder: init builder base and wiringpi
Change-Id: Ia985a05fd0e02ec40f4671aea06c443e3233b17a Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
This commit is contained in:
25
base/Dockerfile
Normal file
25
base/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
ARG UBUNTU_VER=resolute
|
||||||
|
FROM ubuntu:${UBUNTU_VER}
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
RUN find /etc/apt/ -type f \( -name "*.list" -o -name "*.sources" \) | xargs sed -i 's/ports.ubuntu.com/kr.ports.ubuntu.com/g' && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
curl \
|
||||||
|
build-essential \
|
||||||
|
debhelper \
|
||||||
|
devscripts \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
libtool \
|
||||||
|
pkg-config \
|
||||||
|
git \
|
||||||
|
cmake \
|
||||||
|
texlive-latex-base \
|
||||||
|
texlive-fonts-recommended && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
4
base/build.sh
Executable file
4
base/build.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker buildx bake --push
|
||||||
|
|
||||||
34
base/docker-bake.hcl
Normal file
34
base/docker-bake.hcl
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
group "default" {
|
||||||
|
targets = ["focal", "jammy", "noble", "resolute"]
|
||||||
|
}
|
||||||
|
|
||||||
|
target "base_config" {
|
||||||
|
context = "."
|
||||||
|
dockerfile = "Dockerfile"
|
||||||
|
platforms = ["linux/arm64"]
|
||||||
|
}
|
||||||
|
|
||||||
|
target "focal" {
|
||||||
|
inherits = ["base_config"]
|
||||||
|
args = { UBUNTU_VER = "focal" }
|
||||||
|
tags = ["git.sys114.com/shinys000114/builder/base:focal"]
|
||||||
|
}
|
||||||
|
|
||||||
|
target "jammy" {
|
||||||
|
inherits = ["base_config"]
|
||||||
|
args = { UBUNTU_VER = "jammy" }
|
||||||
|
tags = ["git.sys114.com/shinys000114/builder/base:jammy"]
|
||||||
|
}
|
||||||
|
|
||||||
|
target "noble" {
|
||||||
|
inherits = ["base_config"]
|
||||||
|
args = { UBUNTU_VER = "noble" }
|
||||||
|
tags = ["git.sys114.com/shinys000114/builder/base:noble"]
|
||||||
|
}
|
||||||
|
|
||||||
|
target "resolute" {
|
||||||
|
inherits = ["base_config"]
|
||||||
|
args = { UBUNTU_VER = "resolute" }
|
||||||
|
tags = ["git.sys114.com/shinys000114/builder/base:resolute"]
|
||||||
|
}
|
||||||
|
|
||||||
14
wiringpi/Dockerfile
Normal file
14
wiringpi/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Dockerfile 이라는 이름으로 저장
|
||||||
|
ARG UBUNTU_VER=resolute
|
||||||
|
FROM git.sys114.com/shinys000114/builder/base:${UBUNTU_VER}
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
libcrypt-dev \
|
||||||
|
libcrypt1 && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
4
wiringpi/build.sh
Executable file
4
wiringpi/build.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker buildx bake --push
|
||||||
|
|
||||||
34
wiringpi/docker-bake.hcl
Normal file
34
wiringpi/docker-bake.hcl
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
group "default" {
|
||||||
|
targets = ["focal", "jammy", "noble", "resolute"]
|
||||||
|
}
|
||||||
|
|
||||||
|
target "base" {
|
||||||
|
dockerfile = "Dockerfile"
|
||||||
|
platforms = ["linux/arm64"]
|
||||||
|
context = "."
|
||||||
|
}
|
||||||
|
|
||||||
|
target "focal" {
|
||||||
|
inherits = ["base"]
|
||||||
|
args = { UBUNTU_VER = "focal" }
|
||||||
|
tags = ["git.sys114.com/shinys000114/builder/wiringpi:focal"]
|
||||||
|
}
|
||||||
|
|
||||||
|
target "jammy" {
|
||||||
|
inherits = ["base"]
|
||||||
|
args = { UBUNTU_VER = "jammy" }
|
||||||
|
tags = ["git.sys114.com/shinys000114/builder/wiringpi:jammy"]
|
||||||
|
}
|
||||||
|
|
||||||
|
target "noble" {
|
||||||
|
inherits = ["base"]
|
||||||
|
args = { UBUNTU_VER = "noble" }
|
||||||
|
tags = ["git.sys114.com/shinys000114/builder/wiringpi:noble"]
|
||||||
|
}
|
||||||
|
|
||||||
|
target "resolute" {
|
||||||
|
inherits = ["base"]
|
||||||
|
args = { UBUNTU_VER = "resolute" }
|
||||||
|
tags = ["git.sys114.com/shinys000114/builder/wiringpi:resolute"]
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user