From 328808c15f8d785cb1443f75f0729a859e92c46e Mon Sep 17 00:00:00 2001 From: orianelou <126462046+orianelou@users.noreply.github.com> Date: Sun, 25 Feb 2024 11:40:12 +0200 Subject: [PATCH 1/5] Create docker-compose.yaml --- apisix/docker-compose.yaml | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 apisix/docker-compose.yaml diff --git a/apisix/docker-compose.yaml b/apisix/docker-compose.yaml new file mode 100644 index 0000000..aa25eba --- /dev/null +++ b/apisix/docker-compose.yaml @@ -0,0 +1,47 @@ +// Copyright (C) 2022 Check Point Software Technologies Ltd. All rights reserved. + +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +version: "3" + +services: + apisix: + container_name: apisix + image: "ghcr.io/openappsec/apisix-attachment:latest" + ipc: host + restart: always + volumes: + - ./apisix-localconfig/apisix-standalone.yaml:/usr/local/apisix/conf/apisix.yaml:ro + environment: + - APISIX_STAND_ALONE=true + ports: + - "9180:9180/tcp" + - "9080:9080/tcp" + - "9091:9091/tcp" + - "9443:9443/tcp" + + appsec-agent: + container_name: appsec-agent + image: 'ghcr.io/openappsec/agent:latest' + ipc: host + restart: unless-stopped + environment: + # adjust with your own email below + - user_email=user@email.com + - registered_server="APISIX Server" + volumes: + - ./appsec-config:/etc/cp/conf + - ./appsec-data:/etc/cp/data + - ./appsec-logs:/var/log/nano_agent + - ./appsec-localconfig:/ext/appsec + command: /cp-nano-agent --standalone + From b08047cc33745bf373d44be1636172c84ecd7fd4 Mon Sep 17 00:00:00 2001 From: orianelou <126462046+orianelou@users.noreply.github.com> Date: Sun, 25 Feb 2024 11:41:04 +0200 Subject: [PATCH 2/5] Create apisix-standalone.yaml: --- apisix/apisix-standalone.yaml: | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apisix/apisix-standalone.yaml: diff --git a/apisix/apisix-standalone.yaml: b/apisix/apisix-standalone.yaml: new file mode 100644 index 0000000..0dad067 --- /dev/null +++ b/apisix/apisix-standalone.yaml: @@ -0,0 +1,11 @@ +# example local declarative configuration file for apisix in standalone mode + +routes: + - + uri: /anything + upstream: + nodes: + "httpbin.org:80": 1 + type: roundrobin + +#END From 63b5a63ded4b7e9685fc9a4e5aaa562f6285fe03 Mon Sep 17 00:00:00 2001 From: orianelou <126462046+orianelou@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:49:23 +0200 Subject: [PATCH 3/5] Create apisix-standalone.yaml --- build_system/apisix/apisix-standalone.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 build_system/apisix/apisix-standalone.yaml diff --git a/build_system/apisix/apisix-standalone.yaml b/build_system/apisix/apisix-standalone.yaml new file mode 100644 index 0000000..0dad067 --- /dev/null +++ b/build_system/apisix/apisix-standalone.yaml @@ -0,0 +1,11 @@ +# example local declarative configuration file for apisix in standalone mode + +routes: + - + uri: /anything + upstream: + nodes: + "httpbin.org:80": 1 + type: roundrobin + +#END From 55b5973c15a8310d53d1f69e4bf405b3d7cc618a Mon Sep 17 00:00:00 2001 From: orianelou <126462046+orianelou@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:50:16 +0200 Subject: [PATCH 4/5] Create docker-compose.yaml --- build_system/apisix/docker-compose.yaml | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 build_system/apisix/docker-compose.yaml diff --git a/build_system/apisix/docker-compose.yaml b/build_system/apisix/docker-compose.yaml new file mode 100644 index 0000000..70a2033 --- /dev/null +++ b/build_system/apisix/docker-compose.yaml @@ -0,0 +1,46 @@ +// Copyright (C) 2022 Check Point Software Technologies Ltd. All rights reserved. + +// Licensed under the Apache License, Version 2.0 (the "License"); +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +version: "3" + +services: + apisix: + container_name: apisix + image: "ghcr.io/openappsec/apisix-attachment:latest" + ipc: host + restart: always + volumes: + - ./apisix-localconfig/apisix-standalone.yaml:/usr/local/apisix/conf/apisix.yaml:ro + environment: + - APISIX_STAND_ALONE=true + ports: + - "9180:9180/tcp" + - "9080:9080/tcp" + - "9091:9091/tcp" + - "9443:9443/tcp" + + appsec-agent: + container_name: appsec-agent + image: 'ghcr.io/openappsec/agent:latest' + ipc: host + restart: unless-stopped + environment: + # adjust with your own email below + - user_email=user@email.com + - registered_server="APISIX Server" + volumes: + - ./appsec-config:/etc/cp/conf + - ./appsec-data:/etc/cp/data + - ./appsec-logs:/var/log/nano_agent + - ./appsec-localconfig:/ext/appsec + command: /cp-nano-agent --standalone From 2c9ec1e48cf9e4d5e457f32880da66099862337d Mon Sep 17 00:00:00 2001 From: orianelou <126462046+orianelou@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:50:43 +0200 Subject: [PATCH 5/5] Delete apisix directory --- apisix/apisix-standalone.yaml: | 11 -------- apisix/docker-compose.yaml | 47 ---------------------------------- 2 files changed, 58 deletions(-) delete mode 100644 apisix/apisix-standalone.yaml: delete mode 100644 apisix/docker-compose.yaml diff --git a/apisix/apisix-standalone.yaml: b/apisix/apisix-standalone.yaml: deleted file mode 100644 index 0dad067..0000000 --- a/apisix/apisix-standalone.yaml: +++ /dev/null @@ -1,11 +0,0 @@ -# example local declarative configuration file for apisix in standalone mode - -routes: - - - uri: /anything - upstream: - nodes: - "httpbin.org:80": 1 - type: roundrobin - -#END diff --git a/apisix/docker-compose.yaml b/apisix/docker-compose.yaml deleted file mode 100644 index aa25eba..0000000 --- a/apisix/docker-compose.yaml +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (C) 2022 Check Point Software Technologies Ltd. All rights reserved. - -// Licensed under the Apache License, Version 2.0 (the "License"); -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -version: "3" - -services: - apisix: - container_name: apisix - image: "ghcr.io/openappsec/apisix-attachment:latest" - ipc: host - restart: always - volumes: - - ./apisix-localconfig/apisix-standalone.yaml:/usr/local/apisix/conf/apisix.yaml:ro - environment: - - APISIX_STAND_ALONE=true - ports: - - "9180:9180/tcp" - - "9080:9080/tcp" - - "9091:9091/tcp" - - "9443:9443/tcp" - - appsec-agent: - container_name: appsec-agent - image: 'ghcr.io/openappsec/agent:latest' - ipc: host - restart: unless-stopped - environment: - # adjust with your own email below - - user_email=user@email.com - - registered_server="APISIX Server" - volumes: - - ./appsec-config:/etc/cp/conf - - ./appsec-data:/etc/cp/data - - ./appsec-logs:/var/log/nano_agent - - ./appsec-localconfig:/ext/appsec - command: /cp-nano-agent --standalone -