Skip to content

Commit d53da48

Browse files
authored
Merge pull request #2 from SourceCode-AI/stratus
2026 updates
2 parents a7a5319 + 0f830f5 commit d53da48

4 files changed

Lines changed: 8 additions & 14 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
init_mod.py
2+
venv/

install_debian.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/sh
1515
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
1616

1717
apt-get update
18-
apt-get install -y nano gcc wget jq screen python3-venv python3-pip strip-nondeterminism tree postgresql postgresql-client vault git python3-pip xxd binutils-multiarch openssl nginx
19-
18+
apt-get install -y nano gcc wget jq screen python3-venv python3-pip python3-build strip-nondeterminism tree postgresql postgresql-client vault git xxd binutils-multiarch openssl nginx
2019
apt-get install -y diffoscope-minimal --no-install-suggests --no-install-recommends
21-
pip install build==1.2.1 wheel==0.43.0 setuptools==61.0 --break-system-packages
2220

2321
git clone https://github.com/SourceCode-AI/secure_coding.git /secure_coding
2422

25-
echo "listen_addresses='*'">>/etc/postgresql/15/main/postgresql.conf
23+
echo "listen_addresses='*'">>/etc/postgresql/17/main/postgresql.conf
2624

27-
echo "host all all 0.0.0.0/0 scram-sha-256">>/etc/postgresql/15/main/pg_hba.conf
28-
echo "host all all ::/0 scram-sha-256">>/etc/postgresql/15/main/pg_hba.conf
25+
echo "host all all 0.0.0.0/0 scram-sha-256">>/etc/postgresql/17/main/pg_hba.conf
26+
echo "host all all ::/0 scram-sha-256">>/etc/postgresql/17/main/pg_hba.conf
2927

3028
#PG_PASSWD=$(openssl rand -hex 16)
3129
sudo -u postgres createdb secure_db
@@ -34,8 +32,9 @@ sudo -u postgres psql --db secure_db -c "create table users (name VARCHAR(255));
3432
sudo -u postgres psql --db secure_db -c "insert into users values ('john doe');";
3533
systemctl restart postgresql
3634

37-
#pip3 install build --break-system-packages
3835
echo "export VAULT_SKIP_VERIFY=true">>/etc/bash.bashrc
3936
echo "export VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200">>/etc/bash.bashrc
4037
echo "export VAULT_ADDR=http://127.0.0.1:8200">>/etc/bash.bashrc
4138
touch /tmp/automation_finished
39+
echo "Installation completed successfully! Rebooting..."
40+
reboot
Binary file not shown.

local_data/python_package/pyproject.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ authors = [
66
]
77
requires-python = ">=3.9"
88

9-
10-
[project.urls]
11-
"Homepage" = "https://github.com/pypa/sampleproject"
12-
"Bug Tracker" = "https://github.com/pypa/sampleproject/issues"
13-
14-
159
[build-system]
16-
requires = ["setuptools==61.0", "wheel==0.43.0"]
10+
requires = ["setuptools==82.0.1", "wheel==0.46.3"]
1711
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)