Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

change prebuild files attribute if exist, in case git clone code doesn't have 'x' permission of it #3053

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
872f1cd
Initiate Burmilla OS project
olljanat Nov 14, 2020
6e80223
Fixed issues found from v1.9.0-beta2
olljanat Nov 21, 2020
c25bb67
Disabled banner from SSH and updated boot banner
olljanat Nov 23, 2020
2c8a40b
Make docker-compose command available on console
olljanat Nov 30, 2020
50dcc4b
Release v1.9.0
olljanat Dec 10, 2020
1fb4bcb
Boot banner correction + code cleanup
olljanat Dec 10, 2020
94e85d2
Enable Bash colors
olljanat Dec 13, 2020
d1ffbca
Optimize kernel parameters
olljanat Dec 19, 2020
faffe2e
Allow iscsid.conf modifications
olljanat Dec 19, 2020
4866d88
Use iSCSI settings based on Nutanix guidance
olljanat Dec 19, 2020
bb62c58
Bump libcompose to version with oom_score_adj support
olljanat Dec 19, 2020
b6b68dd
Optimize out of memory handling logic
olljanat Dec 19, 2020
c0e4f7a
Optimize kernel parameters for Redis
olljanat Dec 22, 2020
d9e9511
Optimize kernel parameters for ElasticSearch
olljanat Jan 6, 2021
b31b3fe
v2.0.0-beta3
olljanat Dec 13, 2020
0018ca5
Sync master with v1.9.1 version
olljanat Feb 2, 2021
6fd46dd
Enable pull request validation
olljanat Feb 15, 2021
6cde287
make golang files to pass the latest go lints
h8liu Feb 15, 2021
af08844
Upgrade golang compiler to latest; go fmt files.
h8liu Feb 15, 2021
0c950bd
Support user Docker userns-remap (#63)
olljanat Feb 19, 2021
2ab4b23
Use HOST_ARCH for downloading golang compiler. (#67)
h8liu Mar 24, 2021
791c924
Rename bootfiles to bootloader (#69)
h8liu Mar 26, 2021
91271ef
- Kernel 5.10.28 (5.10.27 for Raspberry Pi) (#79)
olljanat Apr 12, 2021
fe5bdc0
Automatically publish iPXE files (#81)
olljanat Apr 12, 2021
1d57b43
Increase Raspberry boot partition size (#83)
olljanat Apr 12, 2021
9bf4143
Change console back to iptables-legacy (#85)
olljanat Apr 12, 2021
98d7760
Revendor customized from burmilla repos (#89)
olljanat May 1, 2021
f33c848
Added libisl-dev dependency to dapper dockerfile.
rakshasa May 4, 2021
5ee3709
Bump up Golang to 1.16.3
olljanat May 2, 2021
486b29d
Add option to use mirrors of "archive.ubuntu.com" in Dockerfile.dapper.
rakshasa May 5, 2021
4d473e8
Bump up github.com/sirupsen/logrus to 1.8.1 (#90)
olljanat May 9, 2021
0dc7a00
Added nvi to the console image, for those who prefer that.
justledbetter Jun 23, 2021
1b4afa2
Sleep 30 seconds after creating release
olljanat Mar 9, 2022
8ad288b
Kernel 5.10.129, Docker 20.10.13
tredger Jul 19, 2022
8cf3151
dhcpcd: Ignore Docker container interfaces
olljanat Mar 22, 2022
dab432f
Buildroot 2022.02.3. Also fixes #132 in 5.10.x branch
tredger Jul 21, 2022
498c58c
Docker 22.06.0-beta.0
tredger Jul 24, 2022
a9184f2
Removed mips64el support
tredger Jul 25, 2022
c660335
Updated arm64 for Buildroot 2022.02.3 images
tredger Jul 25, 2022
7afcca7
Locked console to Debian bullseye (see #111)
tredger Jul 25, 2022
977771c
rpi kernel to v5.10.110
tredger Jul 25, 2022
4148642
v2.0.0-beta6
olljanat Jan 5, 2023
f87c220
v2.0.0-beta7
olljanat Mar 2, 2023
615b3d4
v2.0.0-rc1
olljanat Aug 14, 2023
8a9e14f
v2.0.0-rc2
olljanat Nov 13, 2023
ab3f7a0
v2.0.0
olljanat Mar 5, 2024
afce4f9
v2.0.1
olljanat Apr 12, 2024
35caf34
v2.0.2-rc1
olljanat Jun 7, 2024
2a0c230
Drop golint which does not work anymore with current Golang versions
olljanat Oct 19, 2024
5d298d5
Use Docker 26.1.4 in builds
olljanat Oct 19, 2024
ed36859
v2.0.2-rc2
olljanat Oct 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ tests/integration/.tox
*/*/*/*.pyc
*/*/*/__pycache__
.trash-cache
#.dapper
vendor/*/*/*/.git
tmp
docs/_site
22 changes: 0 additions & 22 deletions .drone.yml

This file was deleted.

19 changes: 17 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
**RancherOS Version: (ros os version)**
**BurmillaOS Version: (ros os version)**

**Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)**
**Where are you running BurmillaOS? (docker-machine, AWS, GCE, baremetal, etc.)**

**Which processor architecture you are using?**

**Do you use some extra hardware? (GPU, etc)?**

**Which console you use (default, ubuntu, centos, etc..)**

**Do you use some service(s) which are not enabled by default?**

**Have you installed some extra tools to console?**

**Do you use some other customizations?**

**Please share copy of your cloud-init (remember remove all sensitive data first)**
```yaml
<replace with sudo ros config export output>
```
40 changes: 40 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: release

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'

- name: Install github-release
run: |
sudo wget https://github.com/github-release/github-release/releases/download/v0.9.0/linux-amd64-github-release.bz2 -O /usr/local/bin/github-release.bz2
sudo bunzip2 /usr/local/bin/github-release.bz2
sudo chmod 0755 /usr/local/bin/github-release

- name: Build OS
run: |
export VERSION=$(git describe --exact-match --tags $(git log -n1 --pretty='%h'))
if [ -z "$VERSION" ]; then
echo "Build is not started from tag. Will exit..."
exit 1
fi
export OS_FIRMWARE=${{ github.event.inputs.firmware }}
export ARCH=amd64
make release

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Publish release
run: ${PWD}/dist/publish.sh
env:
GITHUB_TOKEN: ${{ secrets.OS_RELEASE_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/pull-request-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: PR
on: pull_request

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Test with dapper
run: |
make pr-validation
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ __pycache__
/trash.lock
.idea
.trash-conf
/Dockerfile.dapper*
!/Dockerfile.dapper
scripts/images/raspberry-pi-hypriot64/Dockerfile.dapper*
69 changes: 35 additions & 34 deletions Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ FROM ubuntu:bionic

# get the apt-cacher proxy set
ARG APTPROXY=
ARG APT_ARCHIVE_SOURCE="archive.ubuntu.com"

RUN echo "Acquire::http { Proxy \"$APTPROXY\"; };" >> /etc/apt/apt.conf.d/01proxy \
&& cat /etc/apt/apt.conf.d/01proxy \
&& sed -i "s|archive.ubuntu.com|${APT_ARCHIVE_SOURCE}|" /etc/apt/sources.list \
&& cat /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
Expand Down Expand Up @@ -42,7 +45,7 @@ RUN echo "Acquire::http { Proxy \"$APTPROXY\"; };" >> /etc/apt/apt.conf.d/01prox

ENV DAPPER_ENV VERSION DEV_BUILD RUNTEST DEBUG APTPROXY ENGINE_REGISTRY_MIRROR KERNEL_CHECK APPEND_SYSTEM_IMAGES APPEND_USER_IMAGES
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_SOURCE /go/src/github.com/rancher/os
ENV DAPPER_SOURCE /go/src/github.com/burmilla/os
ENV DAPPER_OUTPUT ./bin ./dist ./build/initrd ./build/kernel
ENV DAPPER_RUN_ARGS --privileged
ENV TRASH_CACHE ${DAPPER_SOURCE}/.trash-cache
Expand All @@ -54,42 +57,42 @@ ARG DAPPER_HOST_ARCH=amd64
ARG HOST_ARCH=${DAPPER_HOST_ARCH}
ARG ARCH=${HOST_ARCH}

ARG OS_REPO=rancher
ARG HOSTNAME_DEFAULT=rancher
ARG DISTRIB_ID=RancherOS
ARG OS_REPO=burmilla
ARG HOSTNAME_DEFAULT=burmilla
ARG DISTRIB_ID=BurmillaOS

ARG SELINUX_POLICY_URL=https://github.com/rancher/refpolicy/releases/download/v0.0.3/policy.29
ARG KERNEL_VERSION=5.10.211-burmilla
ARG KERNEL_URL_amd64=https://github.com/burmilla/os-kernel/releases/download/v${KERNEL_VERSION}/linux-${KERNEL_VERSION}-x86.tar.gz
ARG KERNEL_URL_arm64=https://github.com/burmilla/os-kernel/releases/download/v${KERNEL_VERSION}/linux-${KERNEL_VERSION}-arm64.tar.gz

ARG KERNEL_VERSION=4.14.176-rancher
ARG KERNEL_URL_amd64=https://github.com/rancher/os-kernel/releases/download/v${KERNEL_VERSION}/linux-${KERNEL_VERSION}-x86.tar.gz
ARG KERNEL_URL_arm64=https://github.com/rancher/os-kernel/releases/download/v${KERNEL_VERSION}/linux-${KERNEL_VERSION}-arm64.tar.gz
ARG BUILD_DOCKER_URL_amd64=https://download.docker.com/linux/static/stable/x86_64/docker-26.1.4.tgz
ARG BUILD_DOCKER_URL_arm64=https://download.docker.com/linux/static/stable/aarch64/docker-26.1.4.tgz

ARG BUILD_DOCKER_URL_amd64=https://get.docker.com/builds/Linux/x86_64/docker-1.10.3
ARG BUILD_DOCKER_URL_arm64=https://github.com/rancher/docker/releases/download/v1.10.3-ros1/docker-1.10.3_arm64

ARG OS_RELEASES_YML=https://releases.rancher.com/os
ARG OS_RELEASES_YML=https://raw.githubusercontent.com/burmilla/releases/v2.0.x

ARG OS_SERVICES_REPO=https://raw.githubusercontent.com/${OS_REPO}/os-services
ARG IMAGE_NAME=${OS_REPO}/os

ARG OS_CONSOLE=default
ARG OS_AUTOFORMAT=false
ARG OS_FIRMWARE=true

ARG OS_BASE_URL_amd64=https://github.com/rancher/os-base/releases/download/v2018.02.11-1/os-base_amd64.tar.xz
ARG OS_BASE_URL_arm64=https://github.com/rancher/os-base/releases/download/v2018.02.11-1/os-base_arm64.tar.xz
ARG OS_BASE_URL_amd64=https://github.com/burmilla/os-base/releases/download/v2023.05-1/os-base_amd64.tar.xz
ARG OS_BASE_URL_arm64=https://github.com/burmilla/os-base/releases/download/v2023.05-1/os-base_arm64.tar.xz

ARG OS_INITRD_BASE_URL_amd64=https://github.com/rancher/os-initrd-base/releases/download/v2018.02.11-1/os-initrd-base-amd64.tar.gz
ARG OS_INITRD_BASE_URL_arm64=https://github.com/rancher/os-initrd-base/releases/download/v2018.02.11-1/os-initrd-base-arm64.tar.gz
ARG OS_INITRD_BASE_URL_amd64=https://github.com/burmilla/os-initrd-base/releases/download/v2023.02.10-2/os-initrd-base-amd64.tar.gz
ARG OS_INITRD_BASE_URL_arm64=https://github.com/burmilla/os-initrd-base/releases/download/v2023.02.10-2/os-initrd-base-arm64.tar.gz

ARG SYSTEM_DOCKER_VERSION=17.06-ros6
ARG SYSTEM_DOCKER_URL_amd64=https://github.com/rancher/os-system-docker/releases/download/${SYSTEM_DOCKER_VERSION}/docker-amd64-${SYSTEM_DOCKER_VERSION}.tgz
ARG SYSTEM_DOCKER_URL_arm64=https://github.com/rancher/os-system-docker/releases/download/${SYSTEM_DOCKER_VERSION}/docker-arm64-${SYSTEM_DOCKER_VERSION}.tgz
ARG SYSTEM_DOCKER_VERSION=17.06.107
ARG SYSTEM_DOCKER_URL_amd64=https://github.com/burmilla/os-system-docker/releases/download/${SYSTEM_DOCKER_VERSION}/docker-amd64-${SYSTEM_DOCKER_VERSION}.tgz
ARG SYSTEM_DOCKER_URL_arm64=https://github.com/burmilla/os-system-docker/releases/download/${SYSTEM_DOCKER_VERSION}/docker-arm64-${SYSTEM_DOCKER_VERSION}.tgz

ARG USER_DOCKER_VERSION=19.03.8
ARG USER_DOCKER_VERSION=latest
ARG USER_DOCKER_ENGINE_VERSION=docker-${USER_DOCKER_VERSION}

ARG AZURE_SERVICE=false
ARG PROXMOXVE_SERVICE=false
ARG SKIP_BUILD=false
######################################################

# Set up environment and export all ARGS as ENV
Expand All @@ -104,7 +107,8 @@ ENV BUILD_DOCKER_URL=BUILD_DOCKER_URL_${ARCH} \
DISTRIB_ID=${DISTRIB_ID} \
DOWNLOADS=/usr/src/downloads \
GOPATH=/go \
GO_VERSION=1.8.5 \
GO_VERSION=1.19.5 \
GO111MODULE=off \
GOARCH=$ARCH \
HOSTNAME_DEFAULT=${HOSTNAME_DEFAULT} \
IMAGE_NAME=${IMAGE_NAME} \
Expand All @@ -123,42 +127,39 @@ ENV BUILD_DOCKER_URL=BUILD_DOCKER_URL_${ARCH} \
OS_SERVICES_REPO=${OS_SERVICES_REPO} \
OS_CONSOLE=${OS_CONSOLE} \
OS_AUTOFORMAT=${OS_AUTOFORMAT} \
OS_FIRMWARE=${OS_FIRMWARE} \
REPO_VERSION=master \
SELINUX_POLICY_URL=${SELINUX_POLICY_URL} \
SYSTEM_DOCKER_URL=SYSTEM_DOCKER_URL_${ARCH} \
SYSTEM_DOCKER_URL_amd64=${SYSTEM_DOCKER_URL_amd64} \
SYSTEM_DOCKER_URL_arm64=${SYSTEM_DOCKER_URL_arm64} \
USER_DOCKER_VERSION=${USER_DOCKER_VERSION} \
USER_DOCKER_ENGINE_VERSION=${USER_DOCKER_ENGINE_VERSION} \
AZURE_SERVICE=${AZURE_SERVICE} \
PROXMOXVE_SERVICE=${PROXMOXVE_SERVICE}
PROXMOXVE_SERVICE=${PROXMOXVE_SERVICE} \
SKIP_BUILD=${SKIP_BUILD}
ENV PATH=${GOPATH}/bin:/usr/local/go/bin:$PATH
ENV GO111MODULE=off

RUN mkdir -p ${DOWNLOADS}

# Download kernel
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN echo "... Downloading ${!KERNEL_URL}"; \
if [ -n "${!KERNEL_URL}" ]; then \
if [ "${!KERNEL_URL}" != "skip" ]; then \
curl -fL ${!KERNEL_URL} > ${DOWNLOADS}/kernel.tar.gz \
;fi

# Download SELinux Policy
RUN curl -pfL ${SELINUX_POLICY_URL} > ${DOWNLOADS}/$(basename ${SELINUX_POLICY_URL})

# Install Go
RUN wget -O - https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GOARCH}.tar.gz | tar -xzf - -C /usr/local && \
go get github.com/rancher/trash

RUN mkdir -p ${GOPATH}/src/golang.org/x && cd ${GOPATH}/src/golang.org/x/ && git clone https://github.com/golang/tools && \
cd tools && git checkout 6adeb8aab2ded9eb693b831d5fd090c10a6ebdfa -b temp && go get golang.org/x/lint/golint
RUN curl -L https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${HOST_ARCH}.tar.gz | tar -xzf - -C /usr/local && \
go get github.com/burmilla/trash

# Install Host Docker
RUN curl -fL ${!BUILD_DOCKER_URL} > /usr/bin/docker && \
RUN curl -fL ${!BUILD_DOCKER_URL} > /tmp/docker.tgz && \
tar zxvf /tmp/docker.tgz --strip-components=1 -C /usr/bin/ && \
chmod +x /usr/bin/docker

# Install dapper
RUN curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m | sed 's/arm.*/arm/'` > /usr/bin/dapper && \
RUN curl -sL https://releases.rancher.com/dapper/v0.5.4/dapper-`uname -s`-`uname -m | sed 's/arm.*/arm/'` > /usr/bin/dapper && \
chmod +x /usr/bin/dapper

RUN cd ${DOWNLOADS} && \
Expand Down
25 changes: 15 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ TARGETS := $(shell ls scripts | grep -vE 'clean|run|help|release*|build-moby|run
$(TARGETS): .dapper
./.dapper $@

pr-validation: .dapper
ARCH="amd64" \
KERNEL_URL_amd64="skip" \
SKIP_BUILD="true" \
./.dapper ci

trash: .dapper
./.dapper -m bind trash

Expand Down Expand Up @@ -48,36 +54,35 @@ rpi64: .dapper

vmware: .dapper
mkdir -p dist
APPEND_SYSTEM_IMAGES="rancher/os-openvmtools:10.3.10-2" \
OS_FIRMWARE="false" \
APPEND_SYSTEM_IMAGES="burmilla/os-openvmtools:11.2.0-5" \
./.dapper release-vmware

hyperv: .dapper
mkdir -p dist
APPEND_SYSTEM_IMAGES="rancher/os-hypervvmtools:v4.14.138-rancher-1" \
OS_FIRMWARE="false" \
APPEND_SYSTEM_IMAGES="burmilla/os-hypervvmtools:v4.14.206-burmilla-1" \
./.dapper release-hyperv

azurebase: .dapper
mkdir -p dist
AZURE_SERVICE="true" \
APPEND_SYSTEM_IMAGES="rancher/os-hypervvmtools:v4.14.138-rancher-1 rancher/os-waagent:v2.2.34-1" \
OS_FIRMWARE="false" \
APPEND_SYSTEM_IMAGES="burmilla/os-hypervvmtools:v4.14.206-burmilla-1 burmilla/os-waagent:v2.2.49.2-1" \
./.dapper release-azurebase

4glte: .dapper
mkdir -p dist
APPEND_SYSTEM_IMAGES="rancher/os-modemmanager:v1.6.4-1" \
APPEND_SYSTEM_IMAGES="burmilla/os-modemmanager:v1.6.4-1" \
./.dapper release-4glte

proxmoxve: .dapper
mkdir -p dist
PROXMOXVE_SERVICE="true" \
APPEND_SYSTEM_IMAGES="rancher/os-qemuguestagent:v2.8.1-2" \
OS_FIRMWARE="false" \
APPEND_SYSTEM_IMAGES="burmilla/os-qemuguestagent:v3.1.0-1" \
./.dapper release-proxmoxve

pingan: .dapper
mkdir -p dist
APPEND_SYSTEM_IMAGES="cnrancher/os-pingan-amc:v0.0.6-1" \
./.dapper release-pingan

help:
@./scripts/help

Expand Down
Loading