Created
May 25, 2020 13:49
-
-
Save WizBangCrash/ce38f7845f0dd5755309554647dff72a to your computer and use it in GitHub Desktop.
Visual Studio Code Remote Container Setup for RavenSystem HAA
This file contains hidden or 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
Show hidden characters
//Refer to https://code.visualstudio.com/remote-tutorials/containers/how-it-works | |
{ | |
"name": "RavenSystem HAA Build Environment", | |
"dockerFile": "Dockerfile", | |
//"appPort": 3000, | |
"extensions": ["ms-vscode.cpptools"], | |
"settings": { | |
"terminal.integrated.shell.linux": "/bin/bash" | |
}, | |
//"postCreateCommand": "yarn install", | |
// Comment out the next line to run as root instead. Linux users, update | |
// Dockerfile with your user's UID/GID if not 1000. | |
"runArgs": [] | |
} |
This file contains hidden or 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
#------------------------------------------------------------------------------------------------------------- | |
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | |
#------------------------------------------------------------------------------------------------------------- | |
# To fully customize the contents of this image, use the following Dockerfile instead: | |
# https://github.com/microsoft/vscode-dev-containers/tree/v0.112.0/containers/javascript-node-12/.devcontainer/Dockerfile | |
FROM malachib/esp-open-rtos | |
# The image referenced above includes a non-root user with sudo access. Add | |
# the "remoteUser" property to devcontainer.json to use it. On Linux, the container | |
# user's GID/UIDs will be updated to match your local UID/GID when using the image | |
# or dockerFile property. Update USER_UID/USER_GID below if you are using the | |
# dockerComposeFile property or want the image itself to start with different ID | |
# values. See https://aka.ms/vscode-remote/containers/non-root-user for details. | |
ARG USER_UID=1000 | |
ARG USER_GID=$USER_UID | |
ARG USERNAME=vscode | |
# [Optional] Update UID/GID if needed | |
RUN if [ "$USER_GID" != "1000" ] || [ "$USER_UID" != "1000" ]; then \ | |
groupmod --gid $USER_GID $USERNAME \ | |
&& usermod --uid $USER_UID --gid $USER_GID $USERNAME \ | |
&& chown -R $USER_UID:$USER_GID /home/$USERNAME; \ | |
fi | |
# ** [Optional] Uncomment this section to install additional packages. ** | |
# | |
ENV DEBIAN_FRONTEND=noninteractive | |
# RUN apt-get update \ | |
# && apt-get -y install --no-install-recommends <your-package-list-here> \ | |
# # | |
# # Clean up | |
# && apt-get autoremove -y \ | |
# && apt-get clean -y \ | |
# && rm -rf /var/lib/apt/lists/* | |
# ENV DEBIAN_FRONTEND=dialog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment