mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-08-04 10:48:10 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 63a0d9e2d8 |
@@ -1,45 +0,0 @@
|
|||||||
name: Dockerfiles Release
|
|
||||||
on: create
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release-pre-reqs:
|
|
||||||
if: (github.event_name == 'create' && github.event.ref_type == 'tag')
|
|
||||||
name: Release image required by other images
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Code Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Login to GitHub Container Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Build and Push os-core
|
|
||||||
run: ./build-and-push-images.sh os-core ${{ github.event.ref }}
|
|
||||||
- name: Build and Push httpd
|
|
||||||
run: ./build-and-push-images.sh httpd ${{ github.event.ref }}
|
|
||||||
release-matrix:
|
|
||||||
needs: release-pre-reqs
|
|
||||||
if: (github.event_name == 'create' && github.event.ref_type == 'tag')
|
|
||||||
name: Release Matrix
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
image: ['cgit', 'golang', 'haproxy', 'iperf', 'mariadb', 'memcached', 'nginx', 'node', 'numpy-mp', 'perl', 'php', 'php-fpm', 'postgres', 'python', 'rabbitmq', 'r-base', 'redis', 'ruby', 'tesseract-ocr']
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Code Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Login to GitHub Container Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Build and Push
|
|
||||||
run: ./build-and-push-images.sh ${{ matrix.image }} ${{ github.event.ref }}
|
|
||||||
@@ -35,8 +35,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: install
|
- name: install
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install bats -f
|
sudo apt-get purge moby-engine moby-cli
|
||||||
|
sudo apt-get install docker.io bats -f
|
||||||
sudo modprobe -r overlay
|
sudo modprobe -r overlay
|
||||||
sudo modprobe overlay redirect_dir=off
|
sudo modprobe overlay redirect_dir=off
|
||||||
sudo systemctl restart docker
|
sudo systemctl restart docker
|
||||||
|
|||||||
@@ -2,6 +2,5 @@ Clear Linux* based Docker Containers
|
|||||||
====================================
|
====================================
|
||||||

|

|
||||||
|
|
||||||
This repository holds all the Dockerfiles for Clear Linux based containers.
|
This repository holds all the Dockerfiles for Clear Linux based containers that are hosted at:
|
||||||
|
https://hub.docker.com/u/clearlinux/
|
||||||
The base image can be found in Docker's base repository or at https://github.com/clearlinux/docker-brew-clearlinux/ (which also has previous image releases under branches).
|
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -eu -o pipefail
|
|
||||||
|
|
||||||
create_image() {
|
|
||||||
local name="$1"
|
|
||||||
local ver="$2"
|
|
||||||
pushd "${name}"
|
|
||||||
echo "Creating ${name} for version ${ver}"
|
|
||||||
docker build -t ghcr.io/clearlinux/"${name}":"${ver}" . --build-arg="clear_ver=${ver}"
|
|
||||||
popd
|
|
||||||
}
|
|
||||||
|
|
||||||
push_image() {
|
|
||||||
local name="$1"
|
|
||||||
local ver="$2"
|
|
||||||
echo "Pushing ${name} for version ${ver}"
|
|
||||||
docker push ghcr.io/clearlinux/"${name}":"${ver}"
|
|
||||||
}
|
|
||||||
|
|
||||||
build_and_push_image() {
|
|
||||||
local name="$1"
|
|
||||||
local ver="$2"
|
|
||||||
create_image "${name}" "${ver}"
|
|
||||||
push_image "${name}" "${ver}"
|
|
||||||
}
|
|
||||||
|
|
||||||
build_and_push_image $1 $2
|
|
||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/httpd:$clear_ver AS httpd
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=httpd /usr/lib/os-release /
|
COPY --from=clearlinux/httpd:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,11 +23,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=httpd / /os_core_install/
|
COPY --from=clearlinux/httpd:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM httpd
|
FROM clearlinux/httpd:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
COPY cgitrc /etc/cgitrc
|
COPY cgitrc /etc/cgitrc
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
FROM clearlinux:latest
|
FROM clearlinux:latest
|
||||||
ARG clear_ver
|
|
||||||
|
|
||||||
# Configure Go
|
# Configure Go
|
||||||
ENV GOPATH="/go" PATH="/go/bin:${PATH}"
|
ENV GOPATH="/go" PATH="/go/bin:${PATH}"
|
||||||
|
|
||||||
# Update and add bundles
|
# Update and add bundles
|
||||||
RUN swupd update -V $clear_ver && \
|
RUN swupd update && \
|
||||||
swupd bundle-add sysadmin-basic storage-utils network-basic go-basic-dev devpkg-gtk3 clr-installer-gui && \
|
swupd bundle-add sysadmin-basic storage-utils network-basic go-basic-dev devpkg-gtk3 clr-installer-gui && \
|
||||||
swupd clean && \
|
swupd clean && \
|
||||||
# Install the Go Linters
|
# Install the Go Linters
|
||||||
|
|||||||
+1
-1
@@ -68,7 +68,7 @@ function do_tag {
|
|||||||
local image=$1
|
local image=$1
|
||||||
local pkg=$2
|
local pkg=$2
|
||||||
local base=$3
|
local base=$3
|
||||||
|
|
||||||
echo "=> Tagging the $image"
|
echo "=> Tagging the $image"
|
||||||
local tag=$(get_tag $pkg)
|
local tag=$(get_tag $pkg)
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,11 +23,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,12 +23,12 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,11 +23,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,12 +23,12 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,18 +1,15 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest as builder
|
FROM clearlinux:latest as builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
|
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -27,11 +24,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,11 +23,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+4
-3
@@ -1,15 +1,16 @@
|
|||||||
FROM clearlinux:latest
|
FROM clearlinux:latest
|
||||||
ARG clear_ver
|
|
||||||
|
|
||||||
# Configure Go
|
# Configure Go
|
||||||
ENV GOPATH /home/clr/go
|
ENV GOPATH /home/clr/go
|
||||||
ENV PATH="/home/clr/go/bin:${PATH}"
|
ENV PATH="/home/clr/go/bin:${PATH}"
|
||||||
|
|
||||||
# Update and add bundles
|
# Update and add bundles
|
||||||
RUN swupd update -V $clear_ver && \
|
RUN swupd update && \
|
||||||
swupd bundle-add mixer go-basic c-basic os-core-update-dev sudo && \
|
swupd bundle-add mixer go-basic c-basic os-core-update-dev sudo && \
|
||||||
useradd -G wheelnopw clr && \
|
useradd -G wheelnopw clr && \
|
||||||
mkdir -p /run/lock
|
mkdir -p /run/lock
|
||||||
USER clr
|
USER clr
|
||||||
RUN git config --global user.email "travis@example.com" && \
|
RUN git config --global user.email "travis@example.com" && \
|
||||||
git config --global user.name "Travis CI"
|
git config --global user.name "Travis CI" && \
|
||||||
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.18.0
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,11 +23,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
COPY default.conf /etc/nginx-mainline/conf.d/default.conf
|
COPY default.conf /etc/nginx-mainline/conf.d/default.conf
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,12 +23,12 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,11 +23,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -1,10 +1,9 @@
|
|||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
|
|
||||||
# Move to latest Clear Linux release
|
# Move to latest Clear Linux release
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Install clean os-core bundle in target directory
|
# Install clean os-core bundle in target directory
|
||||||
# using the new os version
|
# using the new os version
|
||||||
|
|||||||
+5
-8
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,14 +23,14 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
CMD ["perl","-de0"]
|
CMD ["perl5.28.2","-de0"]
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,12 +23,12 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -35,11 +32,11 @@ opcache.revalidate_freq=${OPCACHE_REVALIDATE_FREQ}' >> /install_root/usr/share/d
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
ENV OPCACHE_REVALIDATE_FREQ=0 \
|
ENV OPCACHE_REVALIDATE_FREQ=0 \
|
||||||
OPCACHE_VALIDATE_TIMESTAMPS=0 \
|
OPCACHE_VALIDATE_TIMESTAMPS=0 \
|
||||||
|
|||||||
+5
-8
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,11 +23,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
@@ -45,7 +42,7 @@ RUN sed -i "s|#listen_addresses.*|listen_addresses = '*'|" /usr/share/postgresql
|
|||||||
VOLUME /var/lib/pgsql/data
|
VOLUME /var/lib/pgsql/data
|
||||||
COPY docker-entrypoint.sh /usr/local/bin/
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh && \
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh && \
|
||||||
ln -s /usr/local/bin/docker-entrypoint.sh /
|
ln -s /usr/local/bin/docker-entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
|
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
|
|||||||
chown -R postgres "$PGDATA"
|
chown -R postgres "$PGDATA"
|
||||||
chmod 700 "$PGDATA"
|
chmod 700 "$PGDATA"
|
||||||
|
|
||||||
mkdir -p /var/run/postgresql
|
mkdir -p /var/run/postgresql11
|
||||||
chown -R postgres /var/run/postgresql
|
chown -R postgres /var/run/postgresql11
|
||||||
chmod 775 /var/run/postgresql
|
chmod 775 /var/run/postgresql11
|
||||||
|
|
||||||
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
|
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
|
||||||
if [ "$POSTGRES_INITDB_WALDIR" ]; then
|
if [ "$POSTGRES_INITDB_WALDIR" ]; then
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,12 +23,12 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
ENV NAME="clearlinux-python"
|
ENV NAME="clearlinux-python"
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|||||||
+5
-7
@@ -1,17 +1,15 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,12 +24,12 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,11 +23,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,11 +23,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
+4
-7
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,11 +23,11 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,14 @@
|
|||||||
ARG clear_ver
|
|
||||||
FROM ghcr.io/clearlinux/os-core:$clear_ver AS core
|
|
||||||
FROM clearlinux:latest AS builder
|
FROM clearlinux:latest AS builder
|
||||||
|
|
||||||
ARG clear_ver
|
|
||||||
ARG swupd_args
|
ARG swupd_args
|
||||||
# Move to latest Clear Linux release to ensure
|
# Move to latest Clear Linux release to ensure
|
||||||
# that the swupd command line arguments are
|
# that the swupd command line arguments are
|
||||||
# correct
|
# correct
|
||||||
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
|
RUN swupd update --no-boot-update $swupd_args
|
||||||
|
|
||||||
# Grab os-release info from the minimal base image so
|
# Grab os-release info from the minimal base image so
|
||||||
# that the new content matches the exact OS version
|
# that the new content matches the exact OS version
|
||||||
COPY --from=core /usr/lib/os-release /
|
COPY --from=clearlinux/os-core:latest /usr/lib/os-release /
|
||||||
|
|
||||||
# Install additional content in a target directory
|
# Install additional content in a target directory
|
||||||
# using the os version from the minimal base
|
# using the os version from the minimal base
|
||||||
@@ -26,12 +23,12 @@ RUN source /os-release && \
|
|||||||
# file exists on different layers. To minimize docker
|
# file exists on different layers. To minimize docker
|
||||||
# image size, remove the overlapped files before copy.
|
# image size, remove the overlapped files before copy.
|
||||||
RUN mkdir /os_core_install
|
RUN mkdir /os_core_install
|
||||||
COPY --from=core / /os_core_install/
|
COPY --from=clearlinux/os-core:latest / /os_core_install/
|
||||||
RUN cd / && \
|
RUN cd / && \
|
||||||
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
find os_core_install | sed -e 's/os_core_install/install_root/' | xargs rm -d &> /dev/null || true
|
||||||
|
|
||||||
|
|
||||||
FROM core
|
FROM clearlinux/os-core:latest
|
||||||
|
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user