Skip to content
Snippets Groups Projects
Commit 2c1f82ad authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

.oniro-ci: add all build containers


The CI system depends on a number of containers. Those used to be
defined in another repository but with this migration we can now
simplify and aggregate everything into one repository.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent 9c2b5bac
No related branches found
No related tags found
No related merge requests found
Showing
with 185 additions and 0 deletions
...@@ -187,3 +187,28 @@ lava-report: ...@@ -187,3 +187,28 @@ lava-report:
changes: changes:
- .oniro-ci/containers/$CONTAINER_PATH/* - .oniro-ci/containers/$CONTAINER_PATH/*
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
build-bitbake-builder:
extends: .build-with-kaniko
variables:
CONTAINER_PATH: bitbake-builder
build-docs-builder:
extends: .build-with-kaniko
variables:
CONTAINER_PATH: docs-builder
build-dco-check:
extends: .build-with-kaniko
variables:
CONTAINER_PATH: dco-check
build-reuse:
extends: .build-with-kaniko
variables:
CONTAINER_PATH: reuse
build-npm-cspell:
extends: .build-with-kaniko
variables:
CONTAINER_PATH: npm-cspell
<!--
SPDX-FileCopyrightText: 2020 Huawei Inc.
SPDX-License-Identifier: Apache-2.0
-->
# Reference docker containers
This repository contains definitions of reference docker containers
used for various build tasks.
# SPDX-FileCopyrightText: 2021 Huawei Inc.
# SPDX-License-Identifier: Apache-2.0
[user]
name = OSTC Builder
email = ostc-builder@example.org
# Copyright 2021 Huawei Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
FROM ubuntu:20.04
COPY --chown=root:root ppa/zyga-ubuntu-oh-tools-focal.list /etc/apt/sources.list.d/
COPY --chown=root:root ppa/zyga-ubuntu-oh-tools.gpg /etc/apt/trusted.gpg.d/
ARG DEBIAN_FRONTEND="noninteractive"
RUN apt-get update -qq \
&& apt-get install -y eatmydata \
&& eatmydata apt-get install -qq -y \
bash git-repo apt-utils build-essential chrpath cpio diffstat gawk git sudo wget \
language-pack-en-base time locales python-is-python3 python3-distutils libssl-dev \
iproute2 iputils-ping curl jq \
&& eatmydata apt-get install -qq -y 'ca-certificates=20210119~20.04.2' \
&& eatmydata apt-get clean && rm -rf /var/lib/apt/lists/*
RUN locale-gen
# Let's just have /bin/sh as bash
RUN echo "dash dash/sh boolean false" | debconf-set-selections \
&& DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
RUN useradd --create-home --uid 1000 --shell /usr/bin/bash builder
COPY --chown=builder:builder .gitconfig /home/builder/.gitconfig
USER builder
WORKDIR /home/builder
<!--
SPDX-FileCopyrightText: 2021 Huawei Inc.
SPDX-License-Identifier: Apache-2.0
-->
# Bitbake builder for Oniro
This container provides repo and dependencies for using bitbake.
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2020 Huawei Inc.
deb http://ppa.launchpad.net/zyga/oh-tools/ubuntu/ focal main
# deb-src http://ppa.launchpad.net/zyga/oh-tools/ubuntu/ focal main
File added
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2020 Huawei Inc.
# Copyright 2021 Huawei Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
FROM ubuntu:20.04
COPY --chown=root:root ppa/zyga-ubuntu-oh-tools-focal.list /etc/apt/sources.list.d/
COPY --chown=root:root ppa/zyga-ubuntu-oh-tools.gpg /etc/apt/trusted.gpg.d/
ARG DEBIAN_FRONTEND="noninteractive"
RUN apt-get update -qq \
&& apt-get install -y eatmydata \
&& eatmydata apt-get install -qq -y 'dco-check=0.1.1-1+ostc2' \
&& eatmydata apt-get install -qq -y 'ca-certificates=20210119~20.04.2' \
&& eatmydata apt-get clean && rm -rf /var/lib/apt/lists/*
<!--
SPDX-FileCopyrightText: 2021 Huawei Inc.
SPDX-License-Identifier: Apache-2.0
-->
# DCO check for Oniro
This container provides the dco-check package.
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2020 Huawei Inc.
deb http://ppa.launchpad.net/zyga/oh-tools/ubuntu/ focal main
# deb-src http://ppa.launchpad.net/zyga/oh-tools/ubuntu/ focal main
File added
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2020 Huawei Inc.
# SPDX-FileCopyrightText: 2021 Huawei Inc.
# SPDX-License-Identifier: Apache-2.0
[user]
name = OSTC Builder
email = ostc-builder@example.org
# SPDX-FileCopyrightText: Huawei Inc.
# SPDX-License-Identifier: Apache-2.0
FROM ubuntu:20.10
COPY --chown=root:root ppa/zyga-ubuntu-oh-tools-groovy.list /etc/apt/sources.list.d/
COPY --chown=root:root ppa/zyga-ubuntu-oh-tools.gpg /etc/apt/trusted.gpg.d/
ARG DEBIAN_FRONTEND="noninteractive"
RUN apt-get update -qq \
&& apt-get install -y eatmydata \
&& eatmydata apt-get install -qq -y \
git-repo git \
python3-sphinx python3-sphinx-rtd-theme python3-recommonmark python3-sphinx-tabs \
python3-sphinxcontrib.plantuml \
&& eatmydata apt-get install -qq -y 'ca-certificates=20210119~20.10.1' \
&& eatmydata apt-get clean && rm -rf /var/lib/apt/lists/*
<!--
SPDX-FileCopyrightText: 2021 Huawei Inc.
SPDX-License-Identifier: Apache-2.0
-->
# Documentation builder for Oniro
This container provides repo, sphinx and several extensions.
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2020 Huawei Inc.
deb http://ppa.launchpad.net/zyga/oh-tools/ubuntu/ groovy main
# deb-src http://ppa.launchpad.net/zyga/oh-tools/ubuntu/ groovy main
File added
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2020 Huawei Inc.
# SPDX-FileCopyrightText: Huawei Inc.
# SPDX-License-Identifier: Apache-2.0
FROM ubuntu:21.04
ARG DEBIAN_FRONTEND="noninteractive"
RUN apt-get update -qq \
&& apt-get install -y eatmydata \
&& eatmydata apt-get install -qq -y npm \
&& eatmydata apt-get install -qq -y 'ca-certificates=20210119ubuntu0.21.04.1' \
&& eatmydata apt-get clean && rm -rf /var/lib/apt/lists/*
RUN npm install --global cspell
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment