-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from AikidoSec/dev-containers
devcontainer support
- Loading branch information
Showing
12 changed files
with
84 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Docker container used for building Zen for PHP from source on Centos | ||
|
||
FROM --platform=linux/amd64 centos:latest | ||
|
||
ARG PHP_VERSION=8.1 | ||
|
||
WORKDIR /etc/yum.repos.d/ | ||
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | ||
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | ||
RUN yum update -y | ||
RUN yum install -y yum-utils | ||
RUN yum install -y https://rpms.remirepo.net/enterprise/remi-release-8.4.rpm | ||
RUN yum install -y httpd | ||
RUN dnf --assumeyes module reset php | ||
RUN dnf --assumeyes --nogpgcheck module install php:remi-${PHP_VERSION} | ||
RUN dnf --assumeyes install php-pdo | ||
RUN dnf --assumeyes install php-devel | ||
RUN yum install -y mod_php | ||
RUN yum install -y cpio | ||
RUN yum install -y unzip | ||
RUN yum install -y nano | ||
RUN yum install -y lsof | ||
RUN yum install -y jq | ||
RUN yum install -y libcurl-devel | ||
RUN curl -O https://dl.google.com/go/go1.23.3.linux-amd64.tar.gz | ||
RUN tar -C /usr/local -xzf go1.23.3.linux-amd64.tar.gz | ||
ENV PATH="/usr/local/go/bin:${PATH}" | ||
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | ||
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | ||
ENV PROTOC_ZIP=protoc-28.3-linux-x86_64.zip | ||
RUN curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v28.3/$PROTOC_ZIP | ||
RUN unzip -o $PROTOC_ZIP -d /usr/local bin/protoc | ||
RUN unzip -o $PROTOC_ZIP -d /usr/local include/* | ||
RUN rm -f $PROTOC_ZIP | ||
ENV PATH="$HOME/go/bin:${PATH}" | ||
RUN yum install -y rpmdevtools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "Centos Dev Container", | ||
"runArgs": ["--platform=linux/amd64"], | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
"PHP_VERSION": "8.1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
module main | ||
|
||
go 1.21 | ||
go 1.22.7 | ||
|
||
toolchain go1.22.4 | ||
toolchain go1.23.3 | ||
|
||
require ( | ||
github.com/stretchr/testify v1.9.0 | ||
google.golang.org/grpc v1.67.1 | ||
google.golang.org/grpc v1.68.0 | ||
google.golang.org/protobuf v1.34.2 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
golang.org/x/net v0.28.0 // indirect | ||
golang.org/x/sys v0.24.0 // indirect | ||
golang.org/x/text v0.17.0 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect | ||
golang.org/x/net v0.29.0 // indirect | ||
golang.org/x/sys v0.25.0 // indirect | ||
golang.org/x/text v0.18.0 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
module main | ||
|
||
go 1.21 | ||
go 1.22.7 | ||
|
||
toolchain go1.22.4 | ||
toolchain go1.23.3 | ||
|
||
require ( | ||
github.com/stretchr/testify v1.9.0 | ||
google.golang.org/grpc v1.67.1 | ||
google.golang.org/grpc v1.68.0 | ||
google.golang.org/protobuf v1.34.2 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
golang.org/x/net v0.28.0 // indirect | ||
golang.org/x/sys v0.24.0 // indirect | ||
golang.org/x/text v0.17.0 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect | ||
golang.org/x/net v0.29.0 // indirect | ||
golang.org/x/sys v0.25.0 // indirect | ||
golang.org/x/text v0.18.0 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
lib/request-processor/vulnerabilities/sql-injection/checkContextForSqlInjection_test.go
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
sudo rpm -e aikido-php-firewall | ||
rpm -e aikido-php-firewall | ||
./tools/build.sh && ./tools/rpm_build.sh && ./tools/rpm_install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
VERSION=$(grep '#define PHP_AIKIDO_VERSION' lib/php-extension/include/php_aikido.h | awk -F'"' '{print $2}') | ||
|
||
sudo rpm -Uvh --oldpackage ~/rpmbuild/RPMS/aarch64/aikido-php-firewall-$VERSION-1.aarch64.rpm | ||
rpm -Uvh --oldpackage ~/rpmbuild/RPMS/x86_64/aikido-php-firewall-$VERSION-1.x86_64.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sudo rpm -e aikido-php-firewall | ||
rpm -e aikido-php-firewall |