Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:fdegirmenci:stack-validation
stack-validation
Dockerfile
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Dockerfile of Package stack-validation
#!BuildTag: stack-validation:latest #!BuildVersion: 15.6 FROM opensuse/leap:15.6 ARG USERNAME=ansible ARG USER_UID=1000 ARG USER_GID=$USER_UID # Install requirements RUN zypper refresh && \ zypper -n in \ sudo=1.9.15p5-150600.1.2 \ git-core=2.43.0-150600.1.10 \ vim=9.1.0330-150500.20.12.1 \ coreutils=8.32-150400.9.3.1 \ findutils=4.8.0-1.20 \ e2fsprogs=1.47.0-150600.2.26 \ sshpass=1.10-bp156.1.5 \ shadow=4.8.1-150600.15.45 \ util-linux=2.39.3-150600.2.1 \ openssh-clients=9.6p1-150600.4.2 \ ansible-core=2.16.5-bp156.1.2 \ python3=3.6 \ python3-kubernetes=26.1.0-150400.16.2 \ python3-netaddr=0.7.19-1.17 \ python3-passlib=1.7.4-150300.3.2.1 \ python3-lxml=4.9.1-150500.1.2 \ dosfstools=4.1-3.6.1 \ mtools=4.0.43-150600.1.6 \ bats=1.10.0-bp156.1.1 \ podman=4.8.3-150500.3.9.1 \ sonobuoy=0.20.0-bp156.3.15 \ python3-yamllint=1.22.1-bp156.4.1 \ python3-python-gitlab=1.11.0-bp156.3.2 \ python3-urllib3=1.25.10-150300.4.9.1 \ python3-PyYAML=5.4.1-1.1 \ gawk=4.2.1-150000.3.3.1 \ yq=4.35.2-150500.3.3.1 \ helm=3.13.3-150000.1.32.1 \ ca-certificates-suse=1.0-lp156.8.1 \ python3-boto3=1.26.89-150200.23.12.1 && \ zypper clean -a RUN zypper addlock \ sudo \ git-core \ vim \ coreutils \ findutils \ e2fsprogs \ sshpass \ shadow \ util-linux \ openssh-clients \ ansible-core \ python3 \ python3-kubernetes \ python3-netaddr \ python3-passlib \ python3-lxml \ dosfstools \ mtools \ bats \ podman \ sonobuoy \ python3-yamllint \ python3-python-gitlab \ python3-urllib3 \ python3-PyYAML \ gawk \ yq \ helm \ ca-certificates-suse \ python3-boto3 COPY kubectl-v1.30.0 /usr/bin/kubectl COPY kubectl-node_shell-v1.10.1 /usr/bin/kubectl-node_shell RUN chmod 755 /usr/bin/kubectl /usr/bin/kubectl-node_shell # Disable requiretty. # https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/OAUAIGEWKJXBK2I6SEB4GLVJLXGZBPQQ/ RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers # Install Ansible inventory file RUN mkdir -p /etc/ansible/collections && \ echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts && \ chmod 777 /etc/ansible/collections # Create the user RUN groupadd --gid $USER_GID $USERNAME \ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ && chmod 0440 /etc/sudoers.d/$USERNAME USER $USERNAME # Install collections required. There is no internet at build time so.. # TODO: Better process (create packages, etc.) COPY --chown=$USERNAME:$USERNAME . /etc/ansible/collections/ # This must be executed on the folder where the collections are stored. # https://docs.ansible.com/ansible/latest/collections_guide/collections_downloading.html RUN pushd /etc/ansible/collections && \ ansible-galaxy collection install -r requirements.yml && \ popd
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor