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
0d907a94
Commit
0d907a94
authored
3 years ago
by
Dmitriy Safronov
Browse files
Options
Downloads
Plain Diff
Merge branch 'new' into 'master'
New See merge request
!32
parents
40c6d40d
715950e5
No related branches found
No related tags found
1 merge request
!32
New
Pipeline
#6371
passed
3 years ago
Stage: pack
Stage: release
Changes
4
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+0
-3
0 additions, 3 deletions
.gitignore
.gitlab-ci.yml
+0
-24
0 additions, 24 deletions
.gitlab-ci.yml
.hadolint.yaml
+4
-0
4 additions, 0 deletions
.hadolint.yaml
Dockerfile
+7
-5
7 additions, 5 deletions
Dockerfile
with
11 additions
and
32 deletions
.gitignore
deleted
100644 → 0
+
0
−
3
View file @
40c6d40d
/roles/
/.idea/
*.iml
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
0
−
24
View file @
0d907a94
include
:
project
:
'
tools/continuous-integration/docker/docker-pure-trunk-latest'
file
:
'
gitlab-ci.yml'
##########################################################################################################
## PIPELINE DEFINITION
stages
:
-
lint
-
pack
-
test
-
scan
-
release
##########################################################################################################
#### TEST SECTION
test
:
extends
:
.common_docker
stage
:
test
variables
:
GIT_STRATEGY
:
"
none"
script
:
-
drr "${CI_REGISTRY_IMAGE}:${CUSTOM_IMAGEPREFIX}-${CI_COMMIT_SHORT_SHA}" ansible --version
This diff is collapsed.
Click to expand it.
.hadolint.yaml
0 → 100644
+
4
−
0
View file @
0d907a94
ignored
:
-
DL3007
-
DL3013
-
DL3018
This diff is collapsed.
Click to expand it.
Dockerfile
+
7
−
5
View file @
0d907a94
FROM
registry.cyberbrain.pw/docker/alpine:latest
AS
builder
FROM
registry.viju.ru/tools/docker/alpine:latest
AS
base
ARG
ANSIBLE_BUILD_DEPENDENCIES
ARG
ANSIBLE_PACKAGES
FROM
base
AS
builder
ARG
ANSIBLE_BUILD_DEPENDENCIES="build-base cargo libffi-dev musl-dev openssl-dev python3-dev yaml-dev"
ARG
ANSIBLE_PACKAGES="ansible-lint hvac jinja2>=2.11 jmespath mitogen netaddr pyyaml pywinrm"
ENV
PATH="/opt/ansible/bin:$PATH"
ENV
PATH="/opt/ansible/bin:$PATH"
RUN
apk
--no-cache
add python3
&&
\
RUN
apk
--no-cache
add python3
&&
\
apk
--no-cache
add
--virtual
build-dependencies
${
ANSIBLE_BUILD_DEPENDENCIES
}
&&
\
apk
--no-cache
add
--virtual
build-dependencies
${
ANSIBLE_BUILD_DEPENDENCIES
}
&&
\
...
@@ -10,8 +12,8 @@ RUN apk --no-cache add python3 && \
...
@@ -10,8 +12,8 @@ RUN apk --no-cache add python3 && \
#apk del build-dependencies &&
\
#apk del build-dependencies &&
\
rm
-rf
/var/cache/apk/
*
rm
-rf
/var/cache/apk/
*
FROM
registry.cyberbrain.pw/docker/alpine:latest
AS
runtime
FROM
base
AS
runtime
ARG
ANSIBLE_RUNTIME_DEPENDENCIES
ARG
ANSIBLE_RUNTIME_DEPENDENCIES
="ca-certificates git openssh-client openssl patch rsync sshpass yaml"
ENV
PATH="/opt/ansible/bin:$PATH"
ENV
PATH="/opt/ansible/bin:$PATH"
WORKDIR
/srv/ansible
WORKDIR
/srv/ansible
RUN
apk
--no-cache
add python3
&&
\
RUN
apk
--no-cache
add python3
&&
\
...
...
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