Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
init_mod.py
venv/
13 changes: 6 additions & 7 deletions install_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/sh
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

apt-get update
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

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
apt-get install -y diffoscope-minimal --no-install-suggests --no-install-recommends
pip install build==1.2.1 wheel==0.43.0 setuptools==61.0 --break-system-packages

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

echo "listen_addresses='*'">>/etc/postgresql/15/main/postgresql.conf
echo "listen_addresses='*'">>/etc/postgresql/17/main/postgresql.conf

echo "host all all 0.0.0.0/0 scram-sha-256">>/etc/postgresql/15/main/pg_hba.conf
echo "host all all ::/0 scram-sha-256">>/etc/postgresql/15/main/pg_hba.conf
echo "host all all 0.0.0.0/0 scram-sha-256">>/etc/postgresql/17/main/pg_hba.conf
echo "host all all ::/0 scram-sha-256">>/etc/postgresql/17/main/pg_hba.conf

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

#pip3 install build --break-system-packages
echo "export VAULT_SKIP_VERIFY=true">>/etc/bash.bashrc
echo "export VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200">>/etc/bash.bashrc
echo "export VAULT_ADDR=http://127.0.0.1:8200">>/etc/bash.bashrc
touch /tmp/automation_finished
echo "Installation completed successfully! Rebooting..."
reboot
Binary file not shown.
8 changes: 1 addition & 7 deletions local_data/python_package/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ authors = [
]
requires-python = ">=3.9"


[project.urls]
"Homepage" = "https://github.com/pypa/sampleproject"
"Bug Tracker" = "https://github.com/pypa/sampleproject/issues"


[build-system]
requires = ["setuptools==61.0", "wheel==0.43.0"]
requires = ["setuptools==82.0.1", "wheel==0.46.3"]
build-backend = "setuptools.build_meta"