Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vulnerable Mail Srv
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
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
play
Vulnerable Mail Srv
Commits
c49a054e
Commit
c49a054e
authored
1 year ago
by
a.croix
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile to build vulnarable mail srv
parent
9576dc05
No related branches found
No related tags found
No related merge requests found
Pipeline
#10845
failed
1 year ago
Stage: build
Stage: release
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+66
-0
66 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+8
-0
8 additions, 0 deletions
Dockerfile
run.sh
+26
-0
26 additions, 0 deletions
run.sh
with
100 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
66
−
0
View file @
c49a054e
stages
:
-
build
-
release
build
:
image
:
docker:20.10.16
# run on a gitlab-runner that is configured with docker-in-docker
tags
:
-
dind
stage
:
build
except
:
-
tags
services
:
-
docker:20.10.16-dind
variables
:
# use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled
# mounts /certs directory for the service and build container
# needed for the Docker client to use the certificates
DOCKER_TLS_CERTDIR
:
"
/certs"
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
# use previous image as a cache to speedup build process
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA .
build:tagged
:
image
:
docker:20.10.16
# run on a gitlab-runner that is configured with docker-in-docker
tags
:
-
dind
stage
:
build
# only for git tags
only
:
-
tags
services
:
-
docker:20.10.16-dind
variables
:
# use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled
# mounts /certs directory for the service and build container
# needed for the Docker client to use the certificates
DOCKER_TLS_CERTDIR
:
"
/certs"
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
# use previous image as a cache to speedup build process
-
docker pull $CI_REGISTRY_IMAGE:latest ||
true
-
echo $CI_COMMIT_TAG > public/VERSION
-
docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG --tag $CI_REGISTRY_IMAGE:latest .
-
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
-
docker push $CI_REGISTRY_IMAGE:latest
release
:
stage
:
release
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
rules
:
-
if
:
$CI_COMMIT_TAG
# Run this job when a tag is created
script
:
-
echo "running release_job"
release
:
# See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name
:
'
$CI_COMMIT_TAG'
description
:
'
$CI_COMMIT_TAG'
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
8
−
0
View file @
c49a054e
FROM
bkendinibilir/poste.io
#RUN echo "Europe/Brussels" > /etc/localtime:ro
RUN
echo
"disable_plaintext_auth=no"
>>
/etc/dovecot/dovecot.conf
RUN
echo
"ssl=yes"
>>
/etc/dovecot/dovecot.conf
# RUN echo "hello again" > /data/hello2.txt
# RUN service dovecot restart
This diff is collapsed.
Click to expand it.
run.sh
0 → 100644
+
26
−
0
View file @
c49a054e
#!/bin/bash
#src="/mailsrv/data/"
#src="/d/data.docker/volumes/cylab.server.mail/data"
#dst="/data"
docker run
\
--name
mailsrv
\
-p
25:25
\
-p
80:80
\
-p
443:443
\
-p
110:110
\
-p
143:143
\
-p
465:465
\
-p
587:587
\
-p
993:993
\
-p
995:995
\
-v
/etc/localtime:/etc/localtime:ro
\
-v
cylab.server.mail:/data
\
-t
cylab/cylab.server.mail:latest
# --mount source="cylab.server.mail",target="/data" \
# --mount source=$src,target=$dst \
# -v $data \
# -v /etc/localtime:/etc/localtime:ro \
# http://www.iredmail.org/docs/allow.insecure.pop3.imap.smtp.connections.html
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