Skip to content

Commit

Permalink
change filesystem binding from /root/.config to /usr
Browse files Browse the repository at this point in the history
  • Loading branch information
ES-Alexander authored Jan 26, 2024
1 parent 1f097bc commit 92fad4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN python -m pip install /app --extra-index-url https://www.piwheels.org/simple

EXPOSE 8000/tcp

LABEL version="0.0.2"
LABEL version="0.0.3"

ARG IMAGE_NAME

Expand All @@ -15,7 +15,7 @@ LABEL permissions='\
"8000/tcp": {}\
},\
"HostConfig": {\
"Binds":["/root/.config/blueos/extensions/$IMAGE_NAME:/root/.config"],\
"Binds":["/usr/blueos/extensions/$IMAGE_NAME:/app"],\
"ExtraHosts": ["host.docker.internal:host-gateway"],\
"PortBindings": {\
"8000/tcp": [\
Expand Down
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def increment_persistent_count(self, state: State) -> dict[str, int]:
},
)

log_dir = Path('/root/.config/logs')
log_dir = Path('/app/logs')
log_dir.mkdir(parents=True, exist_ok=True)
fh = logging.handlers.RotatingFileHandler(log_dir / 'lumber.log', maxBytes=2**16, backupCount=1)

Expand Down
2 changes: 1 addition & 1 deletion app/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "quickstart"
version = "0.0.1"
version = "0.0.2"
description = "BlueOS QuickStart Example Extension"
classifiers = [
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit 92fad4b

Please sign in to comment.