Mohammed Naser | 1de5519 | 2023-04-28 17:13:35 -0400 | [diff] [blame] | 1 | VERSION --use-copy-link 0.7 |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 2 | |
Mohammed Naser | 1de5519 | 2023-04-28 17:13:35 -0400 | [diff] [blame] | 3 | build.wheels: |
Mohammed Naser | 7060df8 | 2023-12-29 15:12:17 -0500 | [diff] [blame] | 4 | FROM ./images/builder+image |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 5 | COPY pyproject.toml poetry.lock ./ |
Mohammed Naser | 1de5519 | 2023-04-28 17:13:35 -0400 | [diff] [blame] | 6 | ARG --required only |
| 7 | RUN poetry export --only=${only} -f requirements.txt --without-hashes > requirements.txt |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 8 | RUN pip wheel -r requirements.txt --wheel-dir=/wheels |
| 9 | SAVE ARTIFACT requirements.txt |
| 10 | SAVE ARTIFACT /wheels |
Mohammed Naser | 1de5519 | 2023-04-28 17:13:35 -0400 | [diff] [blame] | 11 | SAVE IMAGE --cache-hint |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 12 | |
Mohammed Naser | 1de5519 | 2023-04-28 17:13:35 -0400 | [diff] [blame] | 13 | build.venv: |
| 14 | ARG --required only |
| 15 | FROM +build.wheels --only ${only} |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 16 | RUN python3 -m venv /venv |
| 17 | ENV PATH=/venv/bin:$PATH |
| 18 | RUN pip install -r requirements.txt |
Mohammed Naser | 1de5519 | 2023-04-28 17:13:35 -0400 | [diff] [blame] | 19 | SAVE IMAGE --cache-hint |
| 20 | |
| 21 | build.venv.dev: |
| 22 | FROM +build.venv --only main,dev |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 23 | SAVE ARTIFACT /venv |
| 24 | |
Mohammed Naser | 1de5519 | 2023-04-28 17:13:35 -0400 | [diff] [blame] | 25 | build.venv.runtime: |
| 26 | FROM +build.venv --only main |
| 27 | SAVE ARTIFACT /venv |
| 28 | |
| 29 | build.collections: |
| 30 | FROM +build.venv.runtime |
| 31 | COPY charts /src/charts |
| 32 | COPY meta /src/meta |
| 33 | COPY playbooks /src/playbooks |
| 34 | COPY plugins /src/plugins |
| 35 | COPY roles /src/roles |
| 36 | COPY galaxy.yml /src/galaxy.yml |
| 37 | RUN ansible-galaxy collection install --collections-path /usr/share/ansible/collections /src |
| 38 | SAVE ARTIFACT /usr/share/ansible/collections |
| 39 | SAVE IMAGE --cache-hint |
| 40 | |
| 41 | image: |
Michiel Piscaer | b19c1cf | 2024-01-08 22:09:04 +0100 | [diff] [blame] | 42 | ARG RELEASE=2023.1 |
| 43 | FROM ./images/cloud-archive-base+image --RELEASE ${RELEASE} |
Mohammed Naser | 1de5519 | 2023-04-28 17:13:35 -0400 | [diff] [blame] | 44 | ENV ANSIBLE_PIPELINING=True |
Mohammed Naser | aa48ddb | 2023-12-30 00:11:22 -0500 | [diff] [blame] | 45 | DO ./images+APT_INSTALL --PACKAGES "rsync openssh-client" |
Mohammed Naser | e720d78 | 2023-07-10 15:57:21 -0400 | [diff] [blame] | 46 | COPY +build.venv.runtime/venv /venv |
| 47 | ENV PATH=/venv/bin:$PATH |
| 48 | COPY +build.collections/ /usr/share/ansible |
Mohammed Naser | 1de5519 | 2023-04-28 17:13:35 -0400 | [diff] [blame] | 49 | ARG tag=latest |
Mohammed Naser | ccc70cc | 2023-04-28 22:20:34 +0000 | [diff] [blame] | 50 | SAVE IMAGE --push ghcr.io/vexxhost/atmosphere:${tag} |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 51 | |
Mohammed Naser | 7060df8 | 2023-12-29 15:12:17 -0500 | [diff] [blame] | 52 | images: |
Mohammed Naser | 05726e7 | 2024-01-02 14:55:33 -0500 | [diff] [blame] | 53 | BUILD ./images/barbican+image |
Mohammed Naser | 9b9b3e2 | 2024-01-02 15:17:43 -0500 | [diff] [blame] | 54 | BUILD ./images/cinder+image |
Mohammed Naser | 7060df8 | 2023-12-29 15:12:17 -0500 | [diff] [blame] | 55 | BUILD ./images/cluster-api-provider-openstack+image |
Mohammed Naser | 6a31b34 | 2024-01-02 15:26:44 -0500 | [diff] [blame] | 56 | BUILD ./images/designate+image |
Mohammed Naser | 05726e7 | 2024-01-02 14:55:33 -0500 | [diff] [blame] | 57 | BUILD ./images/glance+image |
| 58 | BUILD ./images/heat+image |
Mohammed Naser | c639230 | 2024-01-04 00:43:02 -0500 | [diff] [blame] | 59 | BUILD ./images/horizon+image |
| 60 | BUILD ./images/ironic+image |
| 61 | BUILD ./images/keystone+image |
Mohammed Naser | 19d6312 | 2024-01-08 17:10:05 -0500 | [diff] [blame^] | 62 | BUILD ./images/libvirtd+image |
Mohammed Naser | c639230 | 2024-01-04 00:43:02 -0500 | [diff] [blame] | 63 | BUILD ./images/magnum+image |
| 64 | BUILD ./images/manila+image |
| 65 | BUILD ./images/neutron+image |
| 66 | BUILD ./images/nova-ssh+image |
| 67 | BUILD ./images/nova+image |
Mohammed Naser | 05726e7 | 2024-01-02 14:55:33 -0500 | [diff] [blame] | 68 | BUILD ./images/octavia+image |
Mohammed Naser | 19d6312 | 2024-01-08 17:10:05 -0500 | [diff] [blame^] | 69 | BUILD ./images/openvswitch+image |
| 70 | BUILD ./images/ovn+images |
Mohammed Naser | 05726e7 | 2024-01-02 14:55:33 -0500 | [diff] [blame] | 71 | BUILD ./images/placement+image |
Mohammed Naser | a730177 | 2024-01-02 15:02:39 -0500 | [diff] [blame] | 72 | BUILD ./images/senlin+image |
Mohammed Naser | 19d6312 | 2024-01-08 17:10:05 -0500 | [diff] [blame^] | 73 | BUILD ./images/tempest+image |
Mohammed Naser | 7060df8 | 2023-12-29 15:12:17 -0500 | [diff] [blame] | 74 | |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 75 | pin-images: |
Mohammed Naser | 1de5519 | 2023-04-28 17:13:35 -0400 | [diff] [blame] | 76 | FROM +build.venv.dev |
ricolin | b8ab017 | 2023-06-01 15:41:02 +0800 | [diff] [blame] | 77 | COPY roles/defaults/vars/main.yml /defaults.yml |
Mohammed Naser | 8613c86 | 2023-04-24 17:26:51 -0400 | [diff] [blame] | 78 | COPY build/pin-images.py /usr/local/bin/pin-images |
Mohammed Naser | c639230 | 2024-01-04 00:43:02 -0500 | [diff] [blame] | 79 | RUN --no-cache /usr/local/bin/pin-images /defaults.yml /pinned.yml |
ricolin | b8ab017 | 2023-06-01 15:41:02 +0800 | [diff] [blame] | 80 | SAVE ARTIFACT /pinned.yml AS LOCAL roles/defaults/vars/main.yml |
Mohammed Naser | d03bba3 | 2023-04-25 12:54:58 +0000 | [diff] [blame] | 81 | |
| 82 | gh: |
| 83 | FROM alpine:3 |
| 84 | RUN apk add --no-cache github-cli |
| 85 | |
| 86 | trigger-image-sync: |
| 87 | FROM +gh |
| 88 | ARG --required project |
| 89 | RUN --secret GITHUB_TOKEN gh workflow run --repo vexxhost/docker-openstack-${project} sync.yml |
Mohammed Naser | 0c42887 | 2023-09-21 12:59:20 +0000 | [diff] [blame] | 90 | |
| 91 | image-sync: |
| 92 | FROM golang:1.19 |
| 93 | ARG --required project |
| 94 | WORKDIR /src |
| 95 | COPY . /src |
| 96 | RUN --secret GITHUB_TOKEN go run ./cmd/atmosphere-ci image repo sync ${project} |