mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-03-26 12:29:07 +00:00
Compare commits
27 Commits
focal-1.0.
...
jammy-1.0.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29f719fe03 | ||
|
|
9166a3b715 | ||
|
|
6af31d6ae6 | ||
|
|
4f74b2aec9 | ||
|
|
d454ef6271 | ||
|
|
b6c9af17cf | ||
|
|
2f33d79094 | ||
|
|
8d386a2b68 | ||
|
|
da721f3ba8 | ||
|
|
8ba3f53a02 | ||
|
|
794379ca49 | ||
|
|
107a17dd85 | ||
|
|
2edaaf9cd4 | ||
|
|
8e9a043cd2 | ||
|
|
157deafb0e | ||
|
|
227465e2d6 | ||
|
|
18c6aeeafa | ||
|
|
a81d149a76 | ||
|
|
2a65ac4630 | ||
|
|
d282e2e5e6 | ||
|
|
1efa0b37d5 | ||
|
|
9c42068299 | ||
|
|
edfe1e3d55 | ||
|
|
5d0faec03d | ||
|
|
1443b1f199 | ||
|
|
51e4f87c7e | ||
|
|
b43059907a |
@@ -1,21 +0,0 @@
|
|||||||
version: 2
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
machine: true
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
#- run:
|
|
||||||
# name : Getting docker
|
|
||||||
# command: curl https://get.docker.com | sh
|
|
||||||
- run:
|
|
||||||
name: Enabling qemu
|
|
||||||
command: docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
||||||
- run:
|
|
||||||
name: Building arm based image.
|
|
||||||
command: docker build -t arm-test .
|
|
||||||
- run:
|
|
||||||
name: Listing built images
|
|
||||||
command: docker images
|
|
||||||
# - run:
|
|
||||||
# name: Running arm based image.
|
|
||||||
# command: docker run --rm arm-test
|
|
||||||
29
.github/ISSUE_TEMPLATE/bug.md
vendored
Normal file
29
.github/ISSUE_TEMPLATE/bug.md
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels:kind: possible bug
|
||||||
|
assignees: ''
|
||||||
|
---
|
||||||
|
|
||||||
|
# Details
|
||||||
|
|
||||||
|
**Image version:**
|
||||||
|
|
||||||
|
<!-- Note: This should be the docker image version you're referring to -->
|
||||||
|
|
||||||
|
**What steps did you take and what happened:**
|
||||||
|
|
||||||
|
<!-- Note: This should be a clear and concise description of what the bug is. -->
|
||||||
|
|
||||||
|
**What did you expect to happen:**
|
||||||
|
|
||||||
|
<!-- Note: This should be a clear and concise description of what you expected to happen. -->
|
||||||
|
|
||||||
|
**Anything else you would like to add:**
|
||||||
|
|
||||||
|
<!-- Note: Miscellaneous information that will assist in solving the issue. -->
|
||||||
|
|
||||||
|
**Additional Information:**
|
||||||
|
|
||||||
|
<!-- Note: Anything to give further context to the bug report. -->
|
||||||
6
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
6
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: Discuss on Discord
|
||||||
|
url: https://discord.gg/PRT86Cdgnr
|
||||||
|
about: Join our Discord community
|
||||||
21
.github/ISSUE_TEMPLATE/enhancement.md
vendored
Normal file
21
.github/ISSUE_TEMPLATE/enhancement.md
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
title: ''
|
||||||
|
labels: kind:enhancement
|
||||||
|
assignees: ''
|
||||||
|
---
|
||||||
|
|
||||||
|
# Details
|
||||||
|
|
||||||
|
**Describe the solution you'd like:**
|
||||||
|
|
||||||
|
<!-- Note: A clear and concise description of what you want to happen. -->
|
||||||
|
|
||||||
|
**Anything else you would like to add:**
|
||||||
|
|
||||||
|
<!-- Note: Miscellaneous information that will assist in solving the issue. -->
|
||||||
|
|
||||||
|
**Additional Information:**
|
||||||
|
|
||||||
|
<!-- Note: Anything to give further context to the requested new feature. -->
|
||||||
32
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
32
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
<!--
|
||||||
|
Before you open the request please review the following guidelines and tips to help it be more easily integrated:
|
||||||
|
|
||||||
|
- Describe the scope of your change - i.e. what the change does.
|
||||||
|
- Describe any known limitations with your change.
|
||||||
|
- Please run any tests or examples that can exercise your modified code.
|
||||||
|
|
||||||
|
Thank you for contributing! We will try to test and integrate the change as soon as we can. There is no need to bump or check in on a pull request (it will clutter the discussion of the request).
|
||||||
|
|
||||||
|
Also don't be worried if the request is closed or not integrated sometimes our priorities might not match the priorities of the pull request. Don't fret, the open source community thrives on forks and GitHub makes it easy to keep your changes in a forked repo.
|
||||||
|
-->
|
||||||
|
|
||||||
|
**Description of the change**
|
||||||
|
|
||||||
|
<!-- Describe the scope of your change - i.e. what the change does. -->
|
||||||
|
|
||||||
|
**Benefits**
|
||||||
|
|
||||||
|
<!-- What benefits will be realized by the code change? -->
|
||||||
|
|
||||||
|
**Possible drawbacks**
|
||||||
|
|
||||||
|
<!-- Describe any known limitations with your change -->
|
||||||
|
|
||||||
|
**Applicable issues**
|
||||||
|
|
||||||
|
<!-- Enter any applicable Issues here (You can reference an issue using #) -->
|
||||||
|
- fixes #
|
||||||
|
|
||||||
|
**Additional information**
|
||||||
|
|
||||||
|
<!-- If there's anything else that's important and relevant to your pull request, mention that information here.-->
|
||||||
73
.github/workflows/main.yml
vendored
Normal file
73
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!contains(github.event.head_commit.message, '[ci-skip]')"
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
id: prep
|
||||||
|
run: |
|
||||||
|
DOCKER_IMAGE=phusion/baseimage
|
||||||
|
GIT_BRANCH=${GITHUB_REF##*/}
|
||||||
|
# Set the platforms to build for here and thus reduce duplicating it.
|
||||||
|
PLATFORMS=amd64,arm,arm64,riscv64
|
||||||
|
TAGS="${DOCKER_IMAGE}:${GIT_BRANCH}, ghcr.io/${{ github.repository_owner }}/baseimage:${GIT_BRANCH}"
|
||||||
|
|
||||||
|
# Set output parameters.
|
||||||
|
|
||||||
|
if [ "${{github.event_name}}" == "pull_request" ]; then
|
||||||
|
echo ::set-output name=push::false
|
||||||
|
else
|
||||||
|
echo ::set-output name=push::true
|
||||||
|
echo ::set-output name=tags::${TAGS}
|
||||||
|
echo ::set-output name=branch::${GIT_BRANCH}
|
||||||
|
echo ::set-output name=docker_image::${DOCKER_IMAGE}
|
||||||
|
fi
|
||||||
|
echo ::set-output name=platforms::${PLATFORMS}
|
||||||
|
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
with:
|
||||||
|
platforms: ${{ steps.prep.outputs.platforms }}
|
||||||
|
|
||||||
|
- name: Login to GHCR (Github Container Registry)
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
with:
|
||||||
|
install: true
|
||||||
|
version: latest
|
||||||
|
driver-opts: image=moby/buildkit:latest
|
||||||
|
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build and Push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
|
context: image
|
||||||
|
platforms: ${{ steps.prep.outputs.platforms }}
|
||||||
|
push: ${{ steps.prep.outputs.push }}
|
||||||
|
tags: ${{ steps.prep.outputs.tags }}
|
||||||
21
.github/workflows/stale.yml
vendored
Normal file
21
.github/workflows/stale.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: 'Close stale issues and PRs'
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 1 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stale:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@v3
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
stale-issue-message: 'This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.'
|
||||||
|
stale-pr-message: 'This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.'
|
||||||
|
close-issue-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.'
|
||||||
|
close-pr-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.'
|
||||||
|
days-before-stale: 15
|
||||||
|
days-before-close: 5
|
||||||
|
exempt-issue-labels: 'on-hold'
|
||||||
|
exempt-pr-labels: 'on-hold'
|
||||||
|
operations-per-run: 50
|
||||||
53
.travis.yml
53
.travis.yml
@@ -1,53 +0,0 @@
|
|||||||
os: linux
|
|
||||||
|
|
||||||
dist: bionic
|
|
||||||
|
|
||||||
language: c
|
|
||||||
|
|
||||||
services:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- docker-ce
|
|
||||||
- qemu-user-static
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
# - VERSION=${TRAVIS_TAG}
|
|
||||||
- VERSION=${TRAVIS_BRANCH}
|
|
||||||
- DOCKER_CLI_EXPERIMENTAL=enabled
|
|
||||||
- QEMU_VERSION=v4.0.0
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
# PLATFORM = Base image architecture to be used
|
|
||||||
# QEMU_ARCH = qemu binary to be downloaded from https://github.com/multiarch/qemu-user-static/releases
|
|
||||||
# TAG_ARCH = Tag to be applied to the image when upload to DockerHub
|
|
||||||
- PLATFORM=amd64 QEMU_ARCH=i386 TAG_ARCH=386
|
|
||||||
- PLATFORM=amd64 QEMU_ARCH=amd64 TAG_ARCH=amd64
|
|
||||||
- PLATFORM=arm64 QEMU_ARCH=aarch64 TAG_ARCH=arm64
|
|
||||||
# - PLATFORM=arm QEMU_ARCH=arm TAG_ARCH=arm
|
|
||||||
- PLATFORM=ppc64le QEMU_ARCH=ppc64le TAG_ARCH=ppc64le
|
|
||||||
# - PLATFORM=s390x QEMU_ARCH=s390x TAG_ARCH=s390x
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
|
|
||||||
- sudo service docker restart
|
|
||||||
|
|
||||||
script:
|
|
||||||
- make build test
|
|
||||||
- if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
|
|
||||||
docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}";
|
|
||||||
make release;
|
|
||||||
fi
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- stage: deploy
|
|
||||||
env:
|
|
||||||
- ARCHS="amd64 arm64 386 ppc64le"
|
|
||||||
script:
|
|
||||||
- echo $NAME:$VERSION_TAG
|
|
||||||
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
|
|
||||||
- make build_multiarch
|
|
||||||
1
Makefile
1
Makefile
@@ -23,7 +23,6 @@ VERSION_ARG ?= $(VERSION)
|
|||||||
all: build
|
all: build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
./build.sh
|
|
||||||
docker build --no-cache -t $(NAME):$(VERSION_ARG) $(BUILD_ARG) --build-arg QEMU_ARCH=$(QEMU_ARCH) --platform $(PLATFORM) --rm image
|
docker build --no-cache -t $(NAME):$(VERSION_ARG) $(BUILD_ARG) --build-arg QEMU_ARCH=$(QEMU_ARCH) --platform $(PLATFORM) --rm image
|
||||||
|
|
||||||
build_multiarch:
|
build_multiarch:
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# A minimal Ubuntu base image modified for Docker-friendliness
|
# A minimal Ubuntu base image modified for Docker-friendliness
|
||||||
|
|
||||||
[](https://imagelayers.io/?images=phusion/baseimage:latest 'Get your own badge on imagelayers.io')
|
[](https://github.com/phusion/baseimage-docker/actions/workflows/main.yml)
|
||||||
[](https://travis-ci.org/phusion/baseimage-docker)
|
|
||||||
|
|
||||||
_Baseimage-docker only consumes 8.3 MB RAM and is much more powerful than Busybox or Alpine. See why below._
|
_Baseimage-docker only consumes 8.3 MB RAM and is much more powerful than Busybox or Alpine. See why below._
|
||||||
|
|
||||||
@@ -36,7 +35,7 @@ You can configure the stock `ubuntu` image yourself from your Dockerfile, so why
|
|||||||
**Related resources**:
|
**Related resources**:
|
||||||
[Website](http://phusion.github.io/baseimage-docker/) |
|
[Website](http://phusion.github.io/baseimage-docker/) |
|
||||||
[Github](https://github.com/phusion/baseimage-docker) |
|
[Github](https://github.com/phusion/baseimage-docker) |
|
||||||
[Docker registry](https://index.docker.io/u/phusion/baseimage/) |
|
[Docker registry](https://registry.hub.docker.com/r/phusion/baseimage/) |
|
||||||
[Discussion forum](https://groups.google.com/d/forum/passenger-docker) |
|
[Discussion forum](https://groups.google.com/d/forum/passenger-docker) |
|
||||||
[Twitter](https://twitter.com/phusion_nl) |
|
[Twitter](https://twitter.com/phusion_nl) |
|
||||||
[Blog](http://blog.phusion.nl/)
|
[Blog](http://blog.phusion.nl/)
|
||||||
@@ -645,6 +644,6 @@ Then you can proceed with `make build` command.
|
|||||||
* Looking for a more complete base image, one that is ideal for Ruby, Python, Node.js and Meteor web apps? Take a look at [passenger-docker](https://github.com/phusion/passenger-docker).
|
* Looking for a more complete base image, one that is ideal for Ruby, Python, Node.js and Meteor web apps? Take a look at [passenger-docker](https://github.com/phusion/passenger-docker).
|
||||||
* Need a helping hand? Phusion also offers [consulting](https://www.phusion.nl/consultancy) on a wide range of topics, including Web Development, UI/UX Research & Design, Technology Migration and Auditing.
|
* Need a helping hand? Phusion also offers [consulting](https://www.phusion.nl/consultancy) on a wide range of topics, including Web Development, UI/UX Research & Design, Technology Migration and Auditing.
|
||||||
|
|
||||||
[<img src="https://www.phusion.nl/images/mark_logotype.svg">](https://www.phusion.nl/)
|
[<img src="https://avatars.githubusercontent.com/u/830588?s=200&v=4">](https://www.phusion.nl/)
|
||||||
|
|
||||||
Please enjoy baseimage-docker, a product by [Phusion](http://www.phusion.nl/). :-)
|
Please enjoy baseimage-docker, a product by [Phusion](http://www.phusion.nl/). :-)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
ARG BASE_IMAGE=ubuntu:20.04
|
ARG BASE_IMAGE=ubuntu:22.04
|
||||||
FROM $BASE_IMAGE
|
FROM $BASE_IMAGE
|
||||||
|
|
||||||
ARG QEMU_ARCH
|
ARG QEMU_ARCH
|
||||||
ADD x86_64_qemu-${QEMU_ARCH}-static.tar.gz /usr/bin
|
#ADD x86_64_qemu-${QEMU_ARCH}-static.tar.gz /usr/bin
|
||||||
|
|
||||||
COPY . /bd_build
|
COPY . /bd_build
|
||||||
|
|
||||||
|
|||||||
@@ -18,19 +18,4 @@ create
|
|||||||
# packages drop log rotation information into this directory
|
# packages drop log rotation information into this directory
|
||||||
include /etc/logrotate.d
|
include /etc/logrotate.d
|
||||||
|
|
||||||
# no packages own wtmp, or btmp -- we'll rotate them here
|
|
||||||
/var/log/wtmp {
|
|
||||||
missingok
|
|
||||||
monthly
|
|
||||||
create 0664 root utmp
|
|
||||||
rotate 1
|
|
||||||
}
|
|
||||||
|
|
||||||
/var/log/btmp {
|
|
||||||
missingok
|
|
||||||
monthly
|
|
||||||
create 0660 root utmp
|
|
||||||
rotate 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# system-specific logs may be configured here
|
# system-specific logs may be configured here
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@version: 3.13
|
@version: 3.25
|
||||||
@include "scl.conf"
|
@include "scl.conf"
|
||||||
|
|
||||||
# Syslog-ng configuration file, compatible with default Debian syslogd
|
# Syslog-ng configuration file, compatible with default Debian syslogd
|
||||||
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
# First, set some global options.
|
# First, set some global options.
|
||||||
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
|
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
|
||||||
owner("root"); group("adm"); perm(0640); stats_freq(0);
|
dns_cache(no); owner("root"); group("adm"); perm(0640);
|
||||||
bad_hostname("^gconfd$");
|
stats_freq(0); bad_hostname("^gconfd$");
|
||||||
};
|
};
|
||||||
|
|
||||||
########################
|
########################
|
||||||
|
|||||||
Reference in New Issue
Block a user