Skip to content

Commit

Permalink
Merge branch 'release/7.4.9-4alvistack2' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Aug 26, 2020
2 parents 4f2bddf + 1510935 commit d48ad93
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 23 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Docker Image Packaging for PHP

## 7.4.6-XalvistackY - TBC
## 7.4.9-XalvistackY - TBC

### Major Changes

## 7.4.9-4alvistack2 - 2020-08-26

### Major Changes

- Upgrade minimal Ansible Lint support to 4.3.2
- Upgrade Travis CI test as Ubuntu Focal based
- Upgrade minimal Ansible support to 2.10.0

Expand Down
4 changes: 4 additions & 0 deletions ansible-galaxy-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ collections:
src: https://galaxy.ansible.com
version: ">=1.0.0,<2.0.0"

- name: containers.podman
src: https://galaxy.ansible.com
version: ">=1.0.0,<2.0.0"

- name: operator_sdk.util
src: https://galaxy.ansible.com
version: ">=0.0.0,<1.0.0"
17 changes: 14 additions & 3 deletions molecule/default/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,20 @@
become: true
gather_facts: false
tasks:
- name: prepare directories
file:
dest: "{{ molecule_ephemeral_directory }}/{{ item.name }}"
mode: "0755"
state: "directory"
loop_control:
label: "{{ item.name }}"
loop: "{{ molecule_yml.platforms }}"
when: item.dockerfile is defined

- name: copy template
template:
src: "{{ molecule_scenario_directory }}/{{ item.dockerfile }}"
dest: "{{ molecule_ephemeral_directory }}/Dockerfile-{{ item.name }}"
dest: "{{ molecule_ephemeral_directory }}/{{ item.name }}/Dockerfile"
mode: "0644"
loop_control:
label: "{{ item.name }}"
Expand All @@ -35,8 +45,8 @@
name: "{{ molecule_ephemeral_directory | regex_replace('^.*/([^/]*/[^/]*)$', '\\1') }}:{{ item.name }}"
source: "build"
build:
path: "{{ molecule_ephemeral_directory }}"
dockerfile: "{{ molecule_ephemeral_directory }}/Dockerfile-{{ item.name }}"
path: "{{ molecule_ephemeral_directory }}/{{ item.name }}"
pull: true
loop_control:
label: "{{ item.name }}"
loop: "{{ molecule_yml.platforms }}"
Expand Down Expand Up @@ -71,6 +81,7 @@
tty: "{{ item.tty | default(omit) }}"
volumes: "{{ item.volumes | default(omit) }}"
env: "{{ item.env | default(omit) }}"
container_default_behavior: "no_defaults"
state: "started"
loop_control:
label: "{{ item.name }}"
Expand Down
1 change: 1 addition & 0 deletions molecule/default/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
- name: docker rm
docker_container:
name: "{{ item.name }}"
container_default_behavior: "no_defaults"
state: "absent"
loop_control:
label: "{{ item.name }}"
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ansible~=2.10.0a9
ansible-lint~=4.3.0a6
ansible>=2.10.0a9,<2.11.0
ansible-lint>=4.3.2,<4.4.0
ansible-runner
ansible-runner-http
argcomplete
docker
flake8
jmespath
molecule~=3.0.2
molecule>=3.0.8,<3.1.0
molecule-vagrant
netaddr
openshift
Expand Down
2 changes: 1 addition & 1 deletion roles/gosu
2 changes: 1 addition & 1 deletion roles/locales
2 changes: 1 addition & 1 deletion roles/python
3 changes: 3 additions & 0 deletions scripts/bootstrap-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ curl -skL https://bootstrap.pypa.io/get-pip.py | python3 - --prefix=/usr/local

# Install PIP dependencies
pip3 install --prefix=/usr/local --upgrade --ignore-installed --requirement requirements.txt

# Install Ansible Collection dependencies
ansible-galaxy collection install --force --requirements-file ansible-galaxy-requirements.yml
18 changes: 9 additions & 9 deletions scripts/bootstrap-vagrant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@ cd "$(cd "$(dirname "$0")"; pwd -P)/../"
if [ -x "$(command -v apt-get)" ]; then
apt-get update
apt-get install -y binutils bridge-utils dnsmasq-base ebtables libvirt-clients libvirt-daemon-system libvirt-dev make qemu-kvm qemu-utils ruby-dev
curl -Os https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_x86_64.deb
dpkg -i vagrant_2.2.9_x86_64.deb
rm -rf vagrant_2.2.9_*
curl -Os https://releases.hashicorp.com/vagrant/2.2.10/vagrant_2.2.10_x86_64.deb
dpkg -i vagrant_2.2.10_x86_64.deb
rm -rf vagrant_2.2.10_*
fi

# Prepare YUM dependencies
if [ -x "$(command -v yum)" ]; then
yum makecache
yum install -y binutils dnsmasq ebtables libvirt libvirt-client libvirt-devel make qemu-img qemu-kvm ruby-devel virt-install
curl -Os https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_x86_64.rpm
yum localinstall vagrant_2.2.9_x86_64.rpm
rm -rf vagrant_2.2.9_*
curl -Os https://releases.hashicorp.com/vagrant/2.2.10/vagrant_2.2.10_x86_64.rpm
yum localinstall vagrant_2.2.10_x86_64.rpm
rm -rf vagrant_2.2.10_*
fi

# Prepare Zypper dependencies
if [ -x "$(command -v zypper)" ]; then
zypper -n --gpg-auto-import-keys refresh
zypper -n install -y binutils-gold bridge-utils dnsmasq ebtables libvirt libvirt-client libvirt-devel make qemu-kvm qemu-tools ruby-devel virt-install
curl -Os https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_x86_64.rpm
zypper install vagrant_2.2.9_x86_64.rpm
rm -rf vagrant_2.2.9_*
curl -Os https://releases.hashicorp.com/vagrant/2.2.10/vagrant_2.2.10_x86_64.rpm
zypper install vagrant_2.2.10_x86_64.rpm
rm -rf vagrant_2.2.10_*
fi

# Install vagrant-libvirt
Expand Down

0 comments on commit d48ad93

Please sign in to comment.