forked from containers/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test that toolbox(1) can be built without podman(1) and subordinate IDs
This is meant to roughly replicate the build environments used by downstream distributors to build toolbox(1). These can be restricted in odd ways compared to a fully featured environment where toolbox(1) is actually going to be used. It's important to ensure that toolbox(1) can be built by downstream distributors without any unnecessary hassle. containers/podman#17657 containers#1246
- Loading branch information
1 parent
bc80985
commit 235576e
Showing
3 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# | ||
# Copyright © 2023 Red Hat, 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. | ||
# | ||
|
||
- name: Remove /etc/subgid | ||
become: yes | ||
command: | ||
cmd: rm /etc/subgid | ||
removes: /etc/subgid | ||
|
||
- name: Remove /etc/subuid | ||
become: yes | ||
command: | ||
cmd: rm /etc/subuid | ||
removes: /etc/subuid | ||
|
||
- name: Install RPM packages | ||
become: yes | ||
package: | ||
update_cache: "{{ true if zuul.attempts > 1 else false }}" | ||
name: | ||
- ShellCheck | ||
- bash-completion | ||
- codespell | ||
- fish | ||
- flatpak-session-helper | ||
- gcc | ||
- golang | ||
- golang-github-cpuguy83-md2man | ||
- meson | ||
- ninja-build | ||
- shadow-utils-subid-devel | ||
- systemd | ||
- udisks2 | ||
|
||
- name: Download Go modules | ||
shell: | | ||
go mod download -x | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}/src' | ||
|
||
- name: Set up Git submodules | ||
shell: | | ||
git submodule init | ||
git submodule update | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' | ||
|
||
- name: Check versions of crucial packages | ||
command: rpm -qa ShellCheck codespell *kernel* gcc *glibc* shadow-utils-subid-devel golang flatpak-session-helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Copyright © 2023 Red Hat, 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. | ||
# | ||
|
||
--- | ||
- hosts: all | ||
tasks: | ||
- include_tasks: dependencies-fedora-restricted.yaml | ||
|
||
- name: Set up build directory | ||
command: meson setup --fatal-meson-warnings builddir | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' |