Skip to content

Commit

Permalink
ATOR-330 - Memory improve and CI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yumirkov committed Sep 12, 2024
1 parent f726fd9 commit ec234a8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: DEV - Build and Deploy

on:
push:
pull_request:
branches:
- development
- main
workflow_dispatch:

jobs:
Expand Down
4 changes: 1 addition & 3 deletions operations/deploy-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ job "sbws-dev" {

config {
image = "ghcr.io/anyone-protocol/ator-protocol-dev:latest"
force_pull = true
volumes = [
"local/anonrc:/etc/anon/anonrc"
]
Expand Down Expand Up @@ -129,7 +128,6 @@ ORPort {{ env `NOMAD_PORT_orport` }}

config {
image = "ghcr.io/anyone-protocol/sbws-scanner:DEPLOY_TAG"
force_pull = true
volumes = [
"local/.sbws.ini:/root/.sbws.ini:ro"
]
Expand Down Expand Up @@ -228,7 +226,7 @@ log_format default '[$time_iso8601] $remote_addr - $remote_user $request $status
server {
root /data;
access_log /dev/stdout default;
access_log /dev/stdout default;
error_log /dev/stderr warn;
autoindex on;
listen 0.0.0.0:{{ env `NOMAD_PORT_http_port` }};
Expand Down
6 changes: 2 additions & 4 deletions operations/deploy-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ job "sbws-live" {

config {
image = "svforte/anon:v0.4.9.0"
force_pull = true
volumes = [
"local/anonrc:/etc/anon/anonrc"
]
Expand Down Expand Up @@ -134,7 +133,6 @@ ORPort {{ env `NOMAD_PORT_orport` }}

config {
image = "ghcr.io/anyone-protocol/sbws-scanner:DEPLOY_TAG"
force_pull = true
volumes = [
"local/.sbws.ini:/root/.sbws.ini:ro"
]
Expand All @@ -147,7 +145,7 @@ ORPort {{ env `NOMAD_PORT_orport` }}

resources {
cpu = 1024
memory = 2560
memory = 3072
}

template {
Expand Down Expand Up @@ -232,7 +230,7 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
log_format default '[$time_iso8601] $remote_addr - $remote_user $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for';
server {
root /data;
access_log /dev/stdout default;
access_log /dev/stdout default;
error_log /dev/stderr warn;
autoindex on;
listen 0.0.0.0:{{ env `NOMAD_PORT_http_port` }};
Expand Down
8 changes: 1 addition & 7 deletions operations/deploy-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ job "sbws-stage" {

config {
image = "ghcr.io/anyone-protocol/ator-protocol-stage:latest"
force_pull = true
volumes = [
"local/anonrc:/etc/anon/anonrc"
]
Expand Down Expand Up @@ -123,7 +122,6 @@ ORPort {{ env `NOMAD_PORT_orport` }}

config {
image = "ghcr.io/anyone-protocol/sbws-scanner:DEPLOY_TAG"
force_pull = true
volumes = [
"local/.sbws.ini:/root/.sbws.ini:ro"
]
Expand Down Expand Up @@ -287,7 +285,6 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}

config {
image = "ghcr.io/anyone-protocol/ator-protocol-stage:latest"
force_pull = true
volumes = [
"local/anonrc:/etc/anon/anonrc"
]
Expand Down Expand Up @@ -350,7 +347,6 @@ ORPort {{ env `NOMAD_PORT_orport` }}

config {
image = "ghcr.io/anyone-protocol/sbws-scanner:DEPLOY_TAG"
force_pull = true
volumes = [
"local/.sbws.ini:/root/.sbws.ini:ro"
]
Expand Down Expand Up @@ -514,7 +510,6 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}

config {
image = "ghcr.io/anyone-protocol/ator-protocol-stage:latest"
force_pull = true
volumes = [
"local/anonrc:/etc/anon/anonrc"
]
Expand Down Expand Up @@ -577,7 +572,6 @@ ORPort {{ env `NOMAD_PORT_orport` }}

config {
image = "ghcr.io/anyone-protocol/sbws-scanner:DEPLOY_TAG"
force_pull = true
volumes = [
"local/.sbws.ini:/root/.sbws.ini:ro"
]
Expand Down Expand Up @@ -676,7 +670,7 @@ external_control_port = {{ env `NOMAD_PORT_control_port` }}
log_format default '[$time_iso8601] $remote_addr - $remote_user $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for';
server {
root /data;
access_log /dev/stdout default;
access_log /dev/stdout default;
error_log /dev/stderr warn;
autoindex on;
listen 0.0.0.0:{{ env `NOMAD_PORT_http_port` }};
Expand Down

0 comments on commit ec234a8

Please sign in to comment.