Publish Image in quay.io. airshipit/porthole
and adding zuul gates Change-Id: I2c58e60bc94f48b4d35bc70ffc4c4e67271489c0
This commit is contained in:
parent
8abb6a43bf
commit
6d24e2e45f
@ -12,8 +12,8 @@ release_group: null
|
|||||||
images:
|
images:
|
||||||
pull_policy: IfNotPresent
|
pull_policy: IfNotPresent
|
||||||
tags:
|
tags:
|
||||||
openstack_utility: 'docker.io/diwakarthyagaraj/openstackutility:v0.0.2'
|
openstack_utility: 'quay.io/airshipit/porthole-openstack-utility:latest-ubuntu_xenial'
|
||||||
image_repo_sync: docker.io/docker:17.07.0
|
image_repo_sync: docker.io/docker:18.09.02
|
||||||
local_registry:
|
local_registry:
|
||||||
active: false
|
active: false
|
||||||
exclude:
|
exclude:
|
||||||
|
@ -1,31 +1,38 @@
|
|||||||
ARG FROM=docker.io/ubuntu:xenial
|
ARG FROM=docker.io/ubuntu:xenial
|
||||||
FROM ${FROM}
|
FROM ${FROM}
|
||||||
MAINTAINER Prateek Reddy Dodda <pd2839@att.com>
|
|
||||||
|
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
|
||||||
|
org.opencontainers.image.url='https://airshipit.org' \
|
||||||
|
org.opencontainers.image.documentation='https://opendev.org/airship/porthole' \
|
||||||
|
org.opencontainers.image.source='https://opendev.org/airship/porthole' \
|
||||||
|
org.opencontainers.image.vendor='The Airship Authors' \
|
||||||
|
org.opencontainers.image.licenses='Apache-2.0'
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& echo '#!/bin/sh' > /usr/sbin/policy-rc.d \
|
&& echo '#!/bin/sh' > /usr/sbin/policy-rc.d \
|
||||||
## If there is no shebang at the beginning of the file, the OS will try to execute it as a “normal” binary.
|
&& echo 'exit 101' >> /usr/sbin/policy-rc.d \
|
||||||
&& echo 'exit 101' >> /usr/sbin/policy-rc.d \
|
&& chmod +x /usr/sbin/policy-rc.d \
|
||||||
&& chmod +x /usr/sbin/policy-rc.d \
|
&& sed -i '/nobody/d' /etc/passwd \
|
||||||
## To prevent services from being started automatically when you install packages with dpkg, apt, etc.,
|
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
|
||||||
&& sed -i '/nobody/d' /etc/passwd \
|
&& dpkg-divert --local --rename --add /sbin/initctl \
|
||||||
&& echo "nobody:x:65534:65534:nobody:/nonexistent:/bin/bash" >> /etc/passwd \
|
&& cp -a /usr/sbin/policy-rc.d /sbin/initctl \
|
||||||
## To Restrict User to nobody for User login.
|
&& sed -i 's/^exit.*/exit 0/' /sbin/initctl \
|
||||||
&& dpkg-divert --local --rename --add /sbin/initctl \
|
&& apt-get update \
|
||||||
&& cp -a /usr/sbin/policy-rc.d /sbin/initctl \
|
&& apt-get install -y \
|
||||||
&& sed -i 's/^exit.*/exit 0/' /sbin/initctl \
|
bash\
|
||||||
## To use an updated version of some application instead of old version existing on your machine.
|
moreutils \
|
||||||
&& echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup \
|
sudo \
|
||||||
## Temporarily disable dpkg fsync to make building faster.
|
rsyslog \
|
||||||
&& echo 'DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' > /etc/apt/apt.conf.d/docker-clean \
|
x11-apps \
|
||||||
&& echo 'APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' >> /etc/apt/apt.conf.d/docker-clean \
|
python-oslo.rootwrap \
|
||||||
&& echo 'Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";' >> /etc/apt/apt.conf.d/docker-clean \
|
python-openstackclient \
|
||||||
&& echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/docker-no-languages \
|
python3-oslo.rootwrap \
|
||||||
&& echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/docker-gzip-indexes \
|
python3-openstackclient \
|
||||||
&& echo 'Apt::AutoRemove::SuggestsImportant "false";' > /etc/apt/apt.conf.d/docker-autoremove-suggests \
|
python3-glanceclient \
|
||||||
# Docker configurations for base Image
|
python3-novaclient \
|
||||||
&& apt-get update && apt-get install -y bash moreutils vim sudo screen rsyslog x11-apps python-oslo.rootwrap python-openstackclient python-glanceclient python-novaclient python-neutronclient python-cinderclient python-heat python3-oslo.rootwrap python3-openstackclient python3-glanceclient python3-novaclient python3-neutronclient python3-cinderclient \
|
python3-neutronclient \
|
||||||
## Install bash utilities,rsyslog,openstack client which is required for Keystone and oslo rootwrap.
|
python3-cinderclient \
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
- airship-porthole-images-build-gate-ceph-utility
|
- airship-porthole-images-build-gate-ceph-utility
|
||||||
- airship-porthole-images-build-gate-etcdctl-utility
|
- airship-porthole-images-build-gate-etcdctl-utility
|
||||||
- airship-porthole-images-build-gate-mysqlclient-utility
|
- airship-porthole-images-build-gate-mysqlclient-utility
|
||||||
|
- airship-porthole-images-build-gate-openstack-utility
|
||||||
- airship-porthole-images-build-gate-postgresql-utility
|
- airship-porthole-images-build-gate-postgresql-utility
|
||||||
|
|
||||||
gate:
|
gate:
|
||||||
jobs:
|
jobs:
|
||||||
- airship-porthole-linter
|
- airship-porthole-linter
|
||||||
@ -29,6 +29,7 @@
|
|||||||
- airship-porthole-images-build-gate-ceph-utility
|
- airship-porthole-images-build-gate-ceph-utility
|
||||||
- airship-porthole-images-build-gate-etcdctl-utility
|
- airship-porthole-images-build-gate-etcdctl-utility
|
||||||
- airship-porthole-images-build-gate-mysqlclient-utility
|
- airship-porthole-images-build-gate-mysqlclient-utility
|
||||||
|
- airship-porthole-images-build-gate-openstack-utility
|
||||||
- airship-porthole-images-build-gate-postgresql-utility
|
- airship-porthole-images-build-gate-postgresql-utility
|
||||||
|
|
||||||
post:
|
post:
|
||||||
@ -37,6 +38,7 @@
|
|||||||
- airship-porthole-images-publish-ceph-utility
|
- airship-porthole-images-publish-ceph-utility
|
||||||
- airship-porthole-images-publish-etcdctl-utility
|
- airship-porthole-images-publish-etcdctl-utility
|
||||||
- airship-porthole-images-publish-mysqlclient-utility
|
- airship-porthole-images-publish-mysqlclient-utility
|
||||||
|
- airship-porthole-images-publish-openstack-utility
|
||||||
- airship-porthole-images-publish-postgresql-utility
|
- airship-porthole-images-publish-postgresql-utility
|
||||||
|
|
||||||
- nodeset:
|
- nodeset:
|
||||||
|
41
zuul.d/openstack-utility.yaml
Normal file
41
zuul.d/openstack-utility.yaml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# Copyright 2019 AT&T Intellectual Property. All other rights reserved.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
# https://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.
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: airship-porthole-images-build-gate-openstack-utility
|
||||||
|
parent: &parent airship-porthole-images
|
||||||
|
vars:
|
||||||
|
image_name: &image_name porthole-openstack-utility
|
||||||
|
distro_suffix: &distro_suffix ubuntu_xenial
|
||||||
|
files:
|
||||||
|
- ^charts/openstack-utility/.*$
|
||||||
|
- ^images/openstack-utility/.*$
|
||||||
|
- ^Makefile$
|
||||||
|
- ^tools/.*$
|
||||||
|
- ^zuul.d/.*$
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: airship-porthole-images-publish-openstack-utility
|
||||||
|
parent: *parent
|
||||||
|
secrets:
|
||||||
|
- name: quay_credentials
|
||||||
|
secret: quay_credentials
|
||||||
|
pass-to-parent: true
|
||||||
|
vars:
|
||||||
|
image_name: *image_name
|
||||||
|
distro_suffix: *distro_suffix
|
||||||
|
publish: true
|
||||||
|
tags:
|
||||||
|
dynamic:
|
||||||
|
commit: true
|
Loading…
Reference in New Issue
Block a user