This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,6 +1,6 @@
|
||||
.git/
|
||||
__pycache__/
|
||||
.venv/
|
||||
test/
|
||||
dev/
|
||||
|
||||
.devcontainer/
|
||||
|
||||
@@ -3,6 +3,9 @@ import logging
|
||||
|
||||
# Setup logging
|
||||
def setup_log():
|
||||
"""
|
||||
Setup logging
|
||||
"""
|
||||
loglevel = 10 if os.getenv("APKG_TARGET") == "debug" else 20
|
||||
|
||||
logging.basicConfig(
|
||||
|
||||
6
main.py
6
main.py
@@ -28,7 +28,9 @@ class Autopkg:
|
||||
# Logging Setup
|
||||
setup_log()
|
||||
|
||||
logging.info("Running autopkg (c) 2025 phantom <phantom@shadeouts.net> https://shadeouts.net/")
|
||||
logging.info(
|
||||
"Running autopkg (c) 2025 phantom <phantom@shadeouts.net> https://shadeouts.net/"
|
||||
)
|
||||
|
||||
# Environment Setup
|
||||
target = os.getenv("APKG_TARGET")
|
||||
@@ -40,7 +42,7 @@ class Autopkg:
|
||||
case "test" | "debug":
|
||||
logging.warning("Running autopkg in testing mode!")
|
||||
|
||||
self.datafile = os.getenv("APKG_RUNTIME_DIR") + "/test/data.ini"
|
||||
self.datafile = os.getenv("APKG_RUNTIME_DIR") + "/dev/data.ini"
|
||||
|
||||
if os.path.exists(self.datafile): os.remove(self.datafile)
|
||||
case _:
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
FROM debian:bookworm as base
|
||||
FROM debian:bookworm
|
||||
|
||||
RUN apt-get update && apt-get install git cargo build-essential libclang-dev=9.10.0-1
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# Build
|
||||
RUN git clone https://github.com/romanz/electrs .
|
||||
RUN ROCKSDB_INCLUDE_DIR=/usr/include ROCKSDB_LIB_DIR=/usr/lib cargo build --locked --release
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user