diff --git a/firmware/.devcontainer/devcontainer.json b/firmware/.devcontainer/devcontainer.json deleted file mode 100644 index c8e8974..0000000 --- a/firmware/.devcontainer/devcontainer.json +++ /dev/null @@ -1,44 +0,0 @@ -// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: -// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/docker-existing-dockerfile -{ - "name": "Moddable develop", - - // Sets the run context to one level up instead of the .devcontainer folder. - "context": "..", - - // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. - "dockerFile": "../docker/Dockerfile", - - // Set *default* container specific settings.json values on container create. - // "settings": { - // "terminal.integrated.shell.linux": null - // }, - - // Add the IDs of extensions you want installed when the container is created. - "extensions": [], - - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - - // Uncomment the next line to run commands after the container is created - for example installing curl. - // "postCreateCommand": "apt-get update && apt-get install -y curl", - "postCreateCommand": "npm install", - - // Uncomment when using a ptrace-based debugger like C++, Go, and Rust - // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], - "runArgs": ["--privileged", "--net=host"], - - "containerEnv": { - "DISPLAY": "${localEnv:DISPLAY}" - }, - - // Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker. - // "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], - "mounts": [ - "type=volume,source=stackchan_firmware_node_modules,target=/workspace/node_modules", - "type=bind,source=/dev,target=/dev,type=bind" - ], - - // Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root. - "remoteUser": "root" -} diff --git a/firmware/docker/Dockerfile b/firmware/docker/Dockerfile deleted file mode 100644 index 1d9c6da..0000000 --- a/firmware/docker/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM meganetaaan/moddable-esp32:3.9.7 -LABEL maintainer "Shinya Ishikawa" - -RUN curl -SL https://deb.nodesource.com/setup_14.x | bash \ - && apt-get update \ - && apt-get install -y --no-install-recommends \ - nodejs \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* -RUN npm install --global typescript -RUN echo ". /opt/esp/idf/export.sh" >> /root/.bashrc diff --git a/firmware/docker/build-container.sh b/firmware/docker/build-container.sh deleted file mode 100755 index b578614..0000000 --- a/firmware/docker/build-container.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -# Run from `stack-chan/firmware` -docker build ./docker -t stack-chan/dev diff --git a/firmware/docker/launch-container.sh b/firmware/docker/launch-container.sh deleted file mode 100755 index dedb5e3..0000000 --- a/firmware/docker/launch-container.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -xhost +local: -docker run \ - --rm -it \ - --privileged \ - --mount "type=volume,src=node_modules,dst=/workspace/node_modules" \ - --mount "type=bind,src=${PWD},dst=/workspace" \ - -v /dev:/dev \ - -e DISPLAY=$DISPLAY \ - --net=host \ - stack-chan/dev -xhost -local: diff --git a/firmware/docker/stack-chan.code-workspace b/firmware/docker/stack-chan.code-workspace deleted file mode 100644 index 4532bab..0000000 --- a/firmware/docker/stack-chan.code-workspace +++ /dev/null @@ -1,11 +0,0 @@ -{ - "folders": [ - { - "path": "../.." - }, - { - "path": "../../../../../../../home/sskw/.local/share/moddable" - } - ], - "settings": {} -} \ No newline at end of file