Skip to content

Instantly share code, notes, and snippets.

@jugeeya
Created October 12, 2020 21:14
Show Gist options
  • Save jugeeya/ebdf699e3dc442dc1706e4ee6587b86f to your computer and use it in GitHub Desktop.
Save jugeeya/ebdf699e3dc442dc1706e4ee6587b86f to your computer and use it in GitHub Desktop.
skyline-rs plugin VS Code Container setup files
// 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.140.1/containers/docker-from-docker
{
"name": "Cargo Skyline",
"dockerFile": "Dockerfile",
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"
],
// Use this environment variable if you need to bind mount your local source code into a new container.
"remoteEnv": {
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
},
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-azuretools.vscode-docker",
"matklad.rust-analyzer",
"bungcip.better-toml",
"serayuzgur.crates",
"statiolake.vscode-rustfmt"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "docker --version",
// Uncomment the next two lines to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
// "overrideCommand": false,
// "remoteUser": "vscode"
}
FROM clux/muslrust:stable
RUN cargo install --git https://github.com/jam1garner/cargo-skyline
RUN git clone https://github.com/jam1garner/rust-std-skyline-squashed
RUN cargo install xargo
RUN cd /volume/rust-std-skyline-squashed && cargo update
ENV XARGO_RUST_SRC /volume/rust-std-skyline-squashed/src
ENV PATH="/root/.rustup/toolchains/nightly-2020-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:${PATH}"
RUN mkdir /workspaces/
RUN ln -s /volume/rust-std-skyline-squashed /workspaces/rust-std-skyline-squashed
@MKarimi21
Copy link

testing skyline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment