Skip to content

Commit

Permalink
Bump packer to v1.9.4 and ansible to v8.4.0 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdpauw committed Nov 6, 2023
1 parent 123ecd9 commit d3098d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ansible/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.8.5-ansible-7.2.0
v1.9.4-ansible-8.4.0
12 changes: 8 additions & 4 deletions ansible/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM alpine:edge

ARG PLATFORM=linux_amd64
ARG PACKER_VERSION=1.8.5
ARG PACKER_VERSION=1.9.4
ARG PACKER_DIST_FILENAME=packer_${PACKER_VERSION}_${PLATFORM}.zip
ARG PACKER_DIST_CHECKSUM_FILENAME=packer_${PACKER_VERSION}_SHA256SUMS
ARG ANSIBLE_VERSION=7.2.0-r0
ARG ANSIBLE_LINT_VERSION=6.11.0-r0
ARG PACKER_PLUGIN_AMAZON_VERSION=1.2.6
ARG PACKER_PLUGIN_ANSIBLE_VERSION=1.1.0
ARG ANSIBLE_VERSION=8.4.0-r0
ARG ANSIBLE_LINT_VERSION=6.21.1-r0

LABEL org.opencontainers.image.description="Hashicorp Packer with Ansible" \
org.opencontainers.image.authors="ThinkingLabs (hello@thinkinglabs.io)" \
Expand All @@ -18,4 +20,6 @@ RUN wget https://releases.hashicorp.com/packer/${PACKER_VERSION}/${PACKER_DIST_F
&& set -o pipefail && grep ${PLATFORM} ${PACKER_DIST_CHECKSUM_FILENAME} | sha256sum -c - \
&& unzip ${PACKER_DIST_FILENAME} -d /usr/local/bin \
&& rm ${PACKER_DIST_FILENAME} ${PACKER_DIST_CHECKSUM_FILENAME} \
&& apk add --no-cache ansible=${ANSIBLE_VERSION} ansible-lint=${ANSIBLE_LINT_VERSION} py3-filelock jq make
&& apk add --no-cache ansible=${ANSIBLE_VERSION} ansible-lint=${ANSIBLE_LINT_VERSION} py3-filelock jq make \
&& packer plugins install github.com/hashicorp/amazon ${PACKER_PLUGIN_AMAZON_VERSION} \
&& packer plugins install github.com/hashicorp/ansible ${PACKER_PLUGIN_ANSIBLE_VERSION}

0 comments on commit d3098d8

Please sign in to comment.