Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit463d5a2

Browse files
authored
Avsridha/travis ci (microsoft#39)
* Added a .gitattributes file to avoid having CRLF characters creeping into Linux specific files.* Added a Travis CI build.The Travis CI integration is being done using `appgwwaf` service account name. We have enabled Travis CI on this setup. The Travis CI containers are hosted at `appgwreg.azurecr.io`.This CI has a few limitatons: * This CI only does the Linux builds. We will need to run the windows build through another pipeline. * We don't have any tests enabled in this CI at this point. * For the Linux builds its testing only the build and has no tests that we can currently run.* Adding Linux build artifacts to .gitignore* Adding a docker build system for Linux builds.
1 parent8552e9f commit463d5a2

File tree

5 files changed

+163
-0
lines changed

5 files changed

+163
-0
lines changed

‎.gitattributes‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Build
2+
*.shtexteol=lf
3+
*.actexteol=lf
4+
*.amtexteol=lf
5+
Makefiletexteol=lf
6+
CMakelists.txttexteol=lf
7+
8+
# Code
9+
*.ctexteol=lf
10+
*.htexteol=lf
11+
*.cpptexteol=lf
12+
*.cctexteol=lf
13+
*.hhtexteol=lf

‎.gitignore‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*.Plo
2020
*.lo
2121
*.un~
22+
23+
# Windows artifacts
2224
iis/release/*
2325
iis/dependencies/build_dir/*
2426
iis/dependencies/release_files/*
@@ -29,3 +31,60 @@ apache2/libinjection/.libs/*
2931
iis/.vs/*
3032
iis/ModSecurityIIS.dll.Manifest
3133
iis/*.obj
34+
35+
# Linux build artifacts
36+
Makefile
37+
Makefile.in
38+
aclocal.m4
39+
alp2/Makefile.in
40+
apache2/.dirstamp
41+
apache2/Makefile
42+
apache2/Makefile.in
43+
apache2/ag_mdb/.deps/
44+
apache2/ag_mdb/.dirstamp
45+
apache2/libinjection/.dirstamp
46+
apache2/mod_security2.la
47+
apache2/modsecurity_config_auto.h
48+
apache2/modsecurity_config_auto.h.in
49+
apache2/stamp-h1
50+
apache2/waf_lock/.deps/
51+
apache2/waf_lock/.dirstamp
52+
apache2/waf_logging/.deps/
53+
apache2/waf_logging/.dirstamp
54+
autom4te.cache/
55+
build/apxs-wrapper
56+
build/ar-lib
57+
build/config.guess
58+
build/config.sub
59+
build/depcomp
60+
build/install-sh
61+
build/libtool.m4
62+
build/ltmain.sh
63+
build/ltoptions.m4
64+
build/ltsugar.m4
65+
build/ltversion.m4
66+
build/lt~obsolete.m4
67+
build/missing
68+
build/test-driver
69+
config.status
70+
configure
71+
doc/Makefile.in
72+
ext/Makefile.in
73+
libtool
74+
mlogc/Makefile.in
75+
standalone/.libs/
76+
standalone/Makefile
77+
standalone/Makefile.in
78+
standalone/standalone.la
79+
standalone/.deps/
80+
standalone/.dirstamp
81+
tests/Makefile
82+
tests/Makefile.in
83+
tests/csv_rx-pm.pl
84+
tests/gen_rx-pm.pl
85+
tests/regression/server_root/conf/httpd.conf
86+
tests/run-regression-tests.pl
87+
tests/run-unit-tests.pl
88+
tools/Makefile
89+
tools/Makefile.in
90+
tools/rules-updater.pl

‎.travis.yml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# We are going to run the build in a container.
2+
# The reason we run the build in a container is that we have dependency on protobuf when we are building on Linux.
3+
# Building protobuf as a build step is quite time consuming, so we want to package the protobuf as a container image with all the dependencies captured and run the build within this container.
4+
sudo:required
5+
language:c
6+
services:
7+
-docker
8+
9+
install:
10+
# Setting up docker credentials.
11+
-echo "$DOCKER_PASSWORD" | docker login appgwreg.azurecr.io -u "$DOCKER_USERNAME" --password-stdin
12+
-docker pull appgwreg.azurecr.io/modsecurity:latest
13+
14+
script:
15+
-docker-compose run --rm autoconf
16+
-docker-compose run --rm configure
17+
-docker-compose run --rm make

‎docker-compose.yaml‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version:"3"
2+
3+
services:
4+
autoconf:
5+
image:appgwreg.azurecr.io/modsecurity:latest
6+
build:
7+
dockerfile:docker/Dockerfile
8+
context:.
9+
volumes:
10+
-./:/microsoft/modsecurity
11+
working_dir:/microsoft/modsecurity
12+
entrypoint:./autogen.sh
13+
14+
configure:
15+
image:appgwreg.azurecr.io/modsecurity:latest
16+
build:
17+
dockerfile:docker/Dockerfile
18+
context:.
19+
volumes:
20+
-./:/microsoft/modsecurity
21+
working_dir:/microsoft/modsecurity
22+
entrypoint:
23+
-./configure
24+
-CXXFLAGS=-std=c++11
25+
-CFLAGS=-fPIC
26+
---enable-standalone-module
27+
---disable-mlogc
28+
29+
make:
30+
image:appgwreg.azurecr.io/modsecurity:latest
31+
build:
32+
dockerfile:docker/Dockerfile
33+
context:.
34+
volumes:
35+
-./:/microsoft/modsecurity
36+
working_dir:/microsoft/modsecurity
37+
entrypoint:make

‎docker/Dockerfile‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM ubuntu:16.04
2+
3+
RUN apt-get update
4+
RUN apt-get install -y \
5+
automake\
6+
build-essential \
7+
curl \
8+
unzip\
9+
m4 \
10+
libtool
11+
12+
# Install google protobuf 3.5.1
13+
RUN mkdir -p /tmp/protobuf/
14+
RUN curl -o /tmp/protobuf/protobuf-3.5.1.zip -OL https://github.com/google/protobuf/releases/download/v3.5.1/protobuf-cpp-3.5.1.zip
15+
RUN unzip /tmp/protobuf/protobuf-3.5.1.zip -d /tmp/protobuf/
16+
WORKDIR /tmp/protobuf/protobuf-3.5.1
17+
RUN ./autogen.sh
18+
RUN ./configure --prefix=/usr
19+
RUN make && make install
20+
21+
RUN apt-get install -y \
22+
apache2-dev \
23+
g++-4.8 \
24+
libaprutil1 \
25+
libcurl4-openssl-dev \
26+
liblua5.1-dev \
27+
libluajit-5.1-dev \
28+
libpcre3-dev \
29+
libperl-dev \
30+
libunwind8 \
31+
libyajl-dev \
32+
libxml2\
33+
libxml2-dev\
34+
unzip
35+
36+
RUN apt clean \
37+
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp