summaryrefslogtreecommitdiff
path: root/.devcontainer
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2023-03-15 20:04:03 +0100
committerAlexandre Flament <alex@al-f.net>2023-03-21 20:58:13 +0000
commit7b711cb15d11ca9f090ca06c909eab57adf5c316 (patch)
tree0f44b925b942d442c35a29d261df1960027aa737 /.devcontainer
parent9dc36965bbb118db64c0bf2d3f54389d4d484670 (diff)
Add GitHub Codespaces configuration
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/Dockerfile4
-rw-r--r--.devcontainer/devcontainer.json31
2 files changed, 35 insertions, 0 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 00000000..9e587191
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,4 @@
+FROM mcr.microsoft.com/devcontainers/base:debian
+
+RUN apt-get update && \
+ apt-get -y install python3 python3-venv redis firefox-esr graphviz imagemagick librsvg2-bin fonts-dejavu shellcheck
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 00000000..3f8c4c81
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,31 @@
+{
+ "build": {
+ "dockerfile": "Dockerfile"
+ },
+ "features": {
+ "ghcr.io/devcontainers/features/github-cli": {}
+ },
+ "customizations": {
+ "vscode": {
+ "extensions": [
+ "ms-python.python",
+ "ms-azuretools.vscode-docker"
+ ],
+ "remote.otherPortsAttributes": {
+ "protocol": "https"
+ },
+ "settings": {
+ "files.autoSave": "off",
+ "python.defaultInterpreterPath": "/workspaces/searxng/local/py3/bin/python3",
+ "python.formatting.blackPath": "/workspaces/searxng/local/py3/bin/black",
+ "python.linting.pylintPath": "/workspaces/searxng/local/py3/bin/pylint"
+ }
+ }
+ },
+ "forwardPorts": [8000, 8888],
+ "portsAttributes": {
+ "8000": {"label": "Sphinx documentation"},
+ "8888": {"label": "SearXNG"}
+ },
+ "postCreateCommand": "git pull && make install"
+}