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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tools
Docker
Ansible
Commits
3e946500
Commit
3e946500
authored
3 years ago
by
Dmitriy Safronov
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile
parent
1173f90e
Branches
Branches containing commit
No related tags found
3 merge requests
!25
Fix
,
!24
Fix
,
!23
Fix
Pipeline
#2608
canceled
3 years ago
Stage: lint
Stage: pack
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+8
-3
8 additions, 3 deletions
Dockerfile
with
8 additions
and
3 deletions
Dockerfile
+
8
−
3
View file @
3e946500
...
...
@@ -15,14 +15,17 @@ RUN apk --no-cache add python3 && \
setuptools
\
wheel
\
&&
\
(
test
-z
$ANSIBLE_VERSION
&&
\
pip
install
--ignore-installed
--user
--no-cache-dir
ansible
||
\
pip
install
--ignore-installed
--user
--no-cache-dir
ansible
\<
=
$ANSIBLE_VERSION
\
)
&&
\
pip3
install
--ignore-installed
--no-cache-dir
\
ansible
\
ansible-lint
\
mitogen
\
jmespath
\
pywinrm
\
&&
\
apk del build-dependencies
&&
\
#
apk del build-dependencies &&
\
rm
-rf
/var/cache/apk/
*
FROM
registry.cyberbrain.pw/docker/alpine:latest
AS
runtime
...
...
@@ -35,6 +38,8 @@ RUN apk --no-cache add \
sshpass
\
openssh-client
\
rsync
\
git
git
\
&&
\
rm
-rf
/var/cache/apk/
*
COPY
--from=builder /opt/ansible /opt/ansible
CMD
[ "ansible", "--version" ]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment