-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c927ef4
commit 005af9e
Showing
19 changed files
with
535 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM python:3.12.2-bookworm | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive \ | ||
DISPLAY=:99 \ | ||
NICEGUI_STORAGE_PATH=data | ||
|
||
# Install packages | ||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
sudo git build-essential chromium chromium-driver python3-pip\ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Create remote user | ||
ARG USERNAME=vscode | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
|
||
RUN groupadd --gid $USER_GID $USERNAME \ | ||
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ | ||
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ | ||
&& chmod 0440 /etc/sudoers.d/$USERNAME | ||
|
||
ENV PATH="/home/${USERNAME}/.local/bin:${PATH}" | ||
ENV CHROME_BINARY_LOCATION=/usr/bin/chromium | ||
|
||
USER $USERNAME | ||
|
||
CMD ["python", "wait.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. | ||
{ | ||
"name": "autopve-dev", | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"cschleiden.vscode-github-actions", | ||
"esbenp.prettier-vscode", | ||
"littlefoxteam.vscode-python-test-adapter", | ||
"ms-python.python", | ||
"samuelcolvin.jinjahtml", | ||
"Vue.volar" | ||
], | ||
"settings": { | ||
"python.testing.cwd": "/workspaces/autopve/", | ||
"python.testing.pytestArgs": ["tests"], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
"python.defaultInterpreterPath": "/usr/local/bin/python3", | ||
"terminal.integrated.defaultProfile.linux": "bash", | ||
"terminal.integrated.shell.linux": "bash", | ||
"terminal.integrated.profiles.linux": { | ||
"bash (container default)": { | ||
"path": "/usr/bin/bash", | ||
"overrideName": true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
// More info: https://aka.ms/dev-containers-non-root. | ||
"remoteUser": "vscode", | ||
"postCreateCommand": "/usr/local/bin/python3 -m pip install -r requirements-test.txt" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ __pycache__/ | |
logs/ | ||
notes/ | ||
mpl/ | ||
screenshots/ | ||
mysecret.py | ||
test.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,4 +168,5 @@ notes/ | |
mpl/ | ||
mysecret.py | ||
test.py | ||
mount/ | ||
mount/ | ||
screenshots/ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.