Armada updates

This PS makes the following changes:

- makes sure the airskiff-deploy playbook is using 80Gb partition if
  available
- adds available security updates to docker images

Change-Id: I405743f9ae69194407bcc49a736b63e9993655c3
This commit is contained in:
Sergiy Markin 2023-08-18 21:35:28 +00:00
parent 4f43e2cc55
commit 25c3d621d6
5 changed files with 32 additions and 10 deletions

View File

@ -79,7 +79,7 @@
- job:
name: armada-docker-build-gate-ubuntu_bionic
timeout: 1800
timeout: 3600
run: tools/gate/playbooks/docker-image-build.yaml
nodeset: armada-single-node
vars:
@ -92,7 +92,7 @@
- job:
name: armada-docker-build-gate-ubuntu_focal
timeout: 1800
timeout: 3600
run: tools/gate/playbooks/docker-image-build.yaml
nodeset: armada-single-node-focal
vars:
@ -157,7 +157,7 @@
- job:
name: armada-docker-publish-ubuntu_focal
timeout: 1800
timeout: 3600
run: tools/gate/playbooks/docker-image-build.yaml
nodeset: armada-single-node-focal
secrets:
@ -174,7 +174,7 @@
- job:
name: armada-docker-publish-ubuntu_bionic
timeout: 1800
timeout: 3600
run: tools/gate/playbooks/docker-image-build.yaml
nodeset: armada-single-node
secrets:

View File

@ -15,7 +15,7 @@ ENV LC_ALL=C.UTF-8
EXPOSE 8000
RUN set -ex && \
apt-get -qq update && \
apt-get update && apt-get upgrade -y && \
apt-get -y install \
ca-certificates \
curl \

View File

@ -15,7 +15,7 @@ ENV LC_ALL=C.UTF-8
EXPOSE 8000
RUN set -ex && \
apt-get -qq update && \
apt-get update && apt-get upgrade -y && \
apt-get -y install \
ca-certificates \
curl \

View File

@ -23,6 +23,13 @@
tasks:
- name: Install Packaging python module for airship
block:
- pip:
name: packaging
executable: pip3
become: True
- name: Clone Required Repositories
shell: |
export CLONE_ARMADA={{ CLONE_ARMADA }}
@ -39,6 +46,17 @@
- name: Deploy Kubernetes with Minikube
shell: |
set -ex
sudo fdisk --list
df -h
sudo mkdir -p /opt/ext_vol
BIG_VOLUME=$(sudo fdisk -l 2>&1 | grep -E 80G | grep Linux | awk '{print $1}')
if ! mount | grep "${BIG_VOLUME}"
then
sudo mkfs.ext4 "${BIG_VOLUME}"
sudo mount "${BIG_VOLUME}" /opt/ext_vol
df -h
fi
./tools/deployment/airskiff/developer/010-deploy-k8s.sh
args:
chdir: "{{ zuul.projects['opendev.org/airship/treasuremap'].src_dir }}"
@ -111,9 +129,6 @@
set -x
mkdir -p ~/.kube
cp -rp /home/zuul/.kube/config ~/.kube/config
pip3 install packaging
./tools/deployment/airskiff/developer/030-armada-bootstrap.sh
args:
chdir: "{{ zuul.projects['opendev.org/airship/treasuremap'].src_dir }}"

View File

@ -18,7 +18,7 @@
- ensure-docker
- ensure-python
- ensure-pip
- ensure-tox
tasks:
- include_vars: vars.yaml
@ -57,6 +57,13 @@
executable: pip3
become: True
- name: Install tox python module for ansible docker login
block:
- pip:
name: tox
version: 3.28.0
executable: pip3
become: True
- name: Run images