Skip to content

Commit

Permalink
updated alpine/ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Denninger committed May 30, 2020
1 parent c63a64c commit 412a5de
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@ ARG ALPINE_VERSION=latest
FROM alpine:${ALPINE_VERSION}

LABEL maintainer="Johannes Denninger"
ARG ANSIBLE_VERSION="2.8.0"
ARG ANSIBLE_VERSION="2.9.6"

COPY ./entrypoint.sh /usr/local/bin

RUN set -euxo pipefail ;\
sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories ;\
apk add --no-cache --update --virtual .build-deps g++ python3-dev build-base libffi-dev openssl-dev ;\
apk add --no-cache --update python3 ca-certificates openssh-client sshpass dumb-init su-exec ;\
apk add --no-cache --update --virtual .build-deps python3-dev build-base libffi-dev openssl-dev ;\
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi ;\
echo "**** install pip ****" ;\
python3 -m ensurepip ;\
rm -r /usr/lib/python*/ensurepip ;\
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi ;\
pip3 install --no-cache --upgrade pip ;\
pip3 install --no-cache --upgrade setuptools ansible==${ANSIBLE_VERSION} ;\
pip3 install --no-cache --upgrade setuptools wheel ansible==${ANSIBLE_VERSION} ;\
apk del --no-cache --purge .build-deps ;\
rm -rf /var/cache/apk/* ;\
rm -rf /root/.cache ;\
ln -s /usr/bin/python3 /usr/bin/python ;\
mkdir -p /etc/ansible/ ;\
/bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts ;\
ssh-keygen -q -t ed25519 -N '' -f /root/.ssh/id_ed25519 ;\
Expand Down
7 changes: 6 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased


## [v0.4] - 202-05-30
### Added
- New release to update alpine/ansible for registry
- Added target `make build-ver` to Makefile
- Added checks for pip3 [stolen here](https://github.com/Docker-Hub-frolvlad/docker-alpine-python3/blob/master/Dockerfile)

## [v0.3] - 2019-03-25
### Added
Expand Down

0 comments on commit 412a5de

Please sign in to comment.