Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sysadmin-ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Teckids
Team Sysadmin
sysadmin-ansible
Commits
5549989c
Commit
5549989c
authored
2 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Remove haproxy test and fix shorewall test
parent
be6a7731
No related branches found
No related tags found
1 merge request
!28
CI/CD
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Earthfile
+7
-13
7 additions, 13 deletions
Earthfile
with
7 additions
and
13 deletions
Earthfile
+
7
−
13
View file @
5549989c
...
...
@@ -3,30 +3,24 @@ VERSION --use-copy-include-patterns 0.5
install-deps:
FROM debian:stable@sha256:13db79e523a13e3e55b606128a4193d7b9ae788d0c11c95d6a6de0bd30aa3a14
haproxy-deps:
FROM haproxy:2.4.18-bullseye@sha256:67ed10438e40db6df112c5e45ac64d69881d4e9e11254320bd946fe54cb4a0f6
shorewall-deps:
FROM jess/shorewall:latest@sha256:d6b7b4b01e1c0184727a49a38a9eb410ca9efe6341da84a87e7d7d96d65768f0
FROM +install-deps
RUN apt update
RUN apt install shorewall shorewall6 ipset -y
USER root
validate-haproxy:
FROM +haproxy-deps
COPY ./roles/firewall/files/haproxy.cfg /tmp/haproxy.cfg
RUN haproxy -c -V -f /tmp/haproxy.cfg
validate-shorewall:
FROM +shorewall-deps
RUN apt update
RUN apt install shorewall ipset -y
COPY ./roles/firewall/files/shorewall /tmp/shorewall
RUN shorewall check /tmp/shorewall
RUN
--privileged
shorewall check /tmp/shorewall
validate-shorewall6:
FROM +shorewall-deps
COPY ./roles/firewall/files/shorewall6 /tmp/shorewall6
RUN shorewall6 check /tmp/shorewall6
RUN --privileged shorewall6 check /tmp/shorewall6
test:
BUILD +validate-haproxy
BUILD +validate-shorewall
BUILD +validate-shorewall6
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