Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tools
Docker
Ansible
Merge requests
!16
New
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
New
new
into
master
Overview
0
Commits
11
Pipelines
6
Changes
1
Merged
Dmitriy Safronov
requested to merge
new
into
master
4 years ago
Overview
0
Commits
11
Pipelines
6
Changes
1
0
0
Merge request reports
Viewing commit
655284ed
Prev
Next
Show latest version
1 file
+
33
−
23
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
655284ed
new
· 655284ed
Dmitriy Safronov
authored
4 years ago
Dockerfile
+
33
−
23
View file @ 655284ed
Edit in single-file editor
Open in Web IDE
FROM
registry.cyberbrain.pw/docker/alpine:latest
RUN
apk
--no-cache
add
\
sudo
\
python3
\
py3-pip
\
openssl
\
ca-certificates
\
sshpass
\
openssh-client
\
rsync
\
git
&&
\
FROM
registry.cyberbrain.pw/docker/alpine:latest
AS
builder
ENV
PATH="/opt/ansible/bin:$PATH"
RUN
apk
--no-cache
add python3
&&
\
apk
--no-cache
add
--virtual
build-dependencies
\
py3-pip
\
musl-dev
\
python3-dev
\
libffi-dev
\
openssl-dev
\
rust
\
build-base
&&
\
pip3
install
--no-cache-dir
--upgrade
\
cargo
\
&&
\
python3
-m
venv /opt/ansible
&&
\
pip3
install
--ignore-installed
--no-cache-dir
--upgrade
\
pip
\
cffi
\
wheel
&&
\
pip3
install
--no-cache-dir
\
setuptools
\
wheel
\
&&
\
pip3
install
--ignore-installed
--no-cache-dir
\
ansible
\
cryptography
\
mitogen ansible-lint jmespath
\
pywinrm
&&
\
ansible-lint
\
mitogen
\
jmespath
\
pywinrm
\
&&
\
apk del build-dependencies
&&
\
rm
-rf
/var/cache/apk/
*
&&
\
mkdir
-p
/opt/ansible
&&
\
rm
-rf
/var/cache/apk/
*
FROM
registry.cyberbrain.pw/docker/alpine:latest
AS
runtime
ENV
PATH="/opt/ansible/bin:$PATH"
WORKDIR
/srv/ansible
RUN
apk
--no-cache
add
\
python3
\
openssl
\
ca-certificates
\
sshpass
\
openssh-client
\
rsync
\
git
\
&&
\
mkdir
-p
/etc/ansible
&&
\
echo
'localhost'
>
/etc/ansible/hosts
WORKDIR
/opt/ansible
COPY
--from=builder /opt/ansible
/opt/ansible
CMD
[ "ansible", "--version" ]
Loading