Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soctools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gn4-3-wp8-t3.1 SOC
soctools
Commits
c618605d
Commit
c618605d
authored
4 years ago
by
Arne Øslebø
Browse files
Options
Downloads
Patches
Plain Diff
use gn43-dsl/centos as basic image
parent
67e0c4a8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
group_vars/all/main.yml
+1
-1
1 addition, 1 deletion
group_vars/all/main.yml
roles/build/templates/haproxy/Dockerfile.j2
+73
-3
73 additions, 3 deletions
roles/build/templates/haproxy/Dockerfile.j2
roles/haproxy/tasks/main.yml
+2
-1
2 additions, 1 deletion
roles/haproxy/tasks/main.yml
with
76 additions
and
5 deletions
group_vars/all/main.yml
+
1
−
1
View file @
c618605d
---
---
dslproxy
:
"
<CHANGE_ME:hostname>
"
dslproxy
:
"
arne-centos2.cert-labs.uninett.no
"
# TheHive Button plugin
# TheHive Button plugin
THEHIVE_URL
:
"
https://hive.gn4-3-wp8-soc.sunet.se/"
THEHIVE_URL
:
"
https://hive.gn4-3-wp8-soc.sunet.se/"
...
...
This diff is collapsed.
Click to expand it.
roles/build/templates/haproxy/Dockerfile.j2
+
73
−
3
View file @
c618605d
FROM
haproxy:{{haproxy_version}}
FROM
gn43-dsl/centos:7a20200612
RUN apt-get update && apt-get install -y python
ENV HAPROXY_VERSION 2.2.3
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
ENV HAPROXY_URL https://www.haproxy.org/download/2.2/src/haproxy-2.2.3.tar.gz
ENV HAPROXY_SHA256 7209db363d4dbecb21133f37b01048df666aebc14ff543525dbea79be202064e
ENV OPENSSL_VERSION=1.0.2u
# see https://sources.debian.net/src/haproxy/jessie/debian/rules/ for some helpful navigation of the possible "make" arguments
RUN \
yum install -y epel-release && \
yum update -y && \
`# Install build tools. Note: perl needed to compile openssl...` \
yum install -y \
inotify-tools \
wget \
tar \
gzip \
make \
gcc \
perl \
pcre-devel \
zlib-devel \
iptables \
pcre2-devel \
pth-devel && \
`# Install newest openssl...` \
wget -O /tmp/openssl.tgz https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz && \
tar -zxf /tmp/openssl.tgz -C /tmp && \
cd /tmp/openssl-* && \
./config --prefix=/usr \
--openssldir=/etc/ssl \
--libdir=lib \
no-shared zlib-dynamic && \
make -j$(getconf _NPROCESSORS_ONLN) V= && make install_sw && \
cd && rm -rf /tmp/openssl* && \
`# Install HAProxy...` \
&& wget -O haproxy.tar.gz "$HAPROXY_URL" \
&& echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c \
&& mkdir -p /usr/src/haproxy \
&& tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1 \
&& rm haproxy.tar.gz \
\
&& makeOpts=' \
TARGET=linux-glibc \
USE_GETADDRINFO=1 \
USE_OPENSSL=1 \
USE_PCRE2=1 USE_PCRE2_JIT=1 \
USE_ZLIB=1 \
\
EXTRA_OBJS=" \
# see https://github.com/docker-library/haproxy/issues/94#issuecomment-505673353 for more details about prometheus support
contrib/prometheus-exporter/service-prometheus.o \
" \
' \
&& nproc="$(nproc)" \
&& eval "make -C /usr/src/haproxy -j '$nproc' all $makeOpts" \
&& eval "make -C /usr/src/haproxy install-bin $makeOpts" \
\
&& mkdir -p /usr/local/etc/haproxy \
&& cp -R /usr/src/haproxy/examples/errorfiles /usr/local/etc/haproxy/errors \
&& rm -rf /usr/src/haproxy
ENTRYPOINT ["/bin/bash"]
# https://www.haproxy.org/download/1.8/doc/management.txt
# "4. Stopping and restarting HAProxy"
# "when the SIGTERM signal is sent to the haproxy process, it immediately quits and all established connections are closed"
# "graceful stop is triggered when the SIGUSR1 signal is sent to the haproxy process"
STOPSIGNAL SIGUSR1
COPY haproxy-entrypoint.sh /
ENTRYPOINT ["/haproxy-entrypoint.sh"]
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
This diff is collapsed.
Click to expand it.
roles/haproxy/tasks/main.yml
+
2
−
1
View file @
c618605d
...
@@ -9,8 +9,9 @@
...
@@ -9,8 +9,9 @@
-
start
-
start
-
reconf
-
reconf
-
name
:
Re
load
haproxy
service
-
name
:
Re
start
haproxy
shell
:
kill -USR2
1
shell
:
kill -USR2
1
tags
:
tags
:
-
start
-
start
-
reconf
-
reconf
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