Skip to content

Commit f1e0947

Browse files
author
Your Name
committed
Version 2
0 parents  commit f1e0947

File tree

7,022 files changed

+2742248
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,022 files changed

+2742248
-0
lines changed

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[source.crates-io]
2+
replace-with = "vendored-sources"
3+
4+
[source.vendored-sources]
5+
directory = "vendor"

.devcontainer/Dockerfile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
################################################################################
2+
# DEVCONTAINER #
3+
################################################################################
4+
FROM ubuntu:20.04 AS devcontainer
5+
ARG http_proxy
6+
ARG https_proxy
7+
8+
ENV http_proxy=$http_proxy
9+
ENV https_proxy=$https_proxy
10+
11+
ENV DEBIAN_FRONTEND="noninteractive"
12+
RUN apt-get update && \
13+
apt-get install -y \
14+
curl \
15+
git \
16+
git-lfs
17+
18+
# Install latest version of Visual Studio Code server
19+
ENV COMMIT_ID=f1e16e1e6214d7c44d078b1f0607b2388f29d729
20+
WORKDIR /root/.vscode-server/bin
21+
RUN curl -sL https://update.code.visualstudio.com/commit:${COMMIT_ID}/server-linux-x64/stable -o stable
22+
RUN tar xf stable
23+
RUN mv vscode-server-linux-x64 ${COMMIT_ID}
24+
25+
################################################################################
26+
# RGADGET #
27+
################################################################################
28+
FROM devcontainer AS rgadget
29+
RUN apt-get update && \
30+
apt-get install -y \
31+
build-essential \
32+
gdb
33+
34+
# Install rust v1.79
35+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.79
36+
ENV PATH="${PATH}:/root/.cargo/bin"
37+
38+
# Install samply
39+
RUN cargo install samply
40+
41+
# Install Node.js and NPM
42+
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
43+
RUN apt-get install -y nodejs
44+
RUN npm install -g yarn
45+
46+
# Install Firefox Profiler
47+
WORKDIR /root/
48+
RUN git clone https://github.com/firefox-devtools/profiler.git
49+
WORKDIR /root/profiler
50+
RUN yarn install
51+
ENV FX_PROFILER_HOST=127.0.0.1
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "Local",
3+
"image": "rgadget",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"ms-vscode.cpptools",
8+
"ms-azuretools.vscode-docker",
9+
"ms-vscode.makefile-tools",
10+
"ms-vscode.cpptools-extension-pack",
11+
]
12+
}
13+
},
14+
"runArgs": [
15+
"--cap-add=SYS_PTRACE",
16+
"--security-opt",
17+
"seccomp=unconfined"
18+
],
19+
"mounts": [
20+
"source=${localWorkspaceFolder},target=/home/ws,type=bind",
21+
"source=${localEnv:HOME},target=/home/share,type=bind"
22+
],
23+
"forwardPorts": [4242, 3000],
24+
"postStartCommand": "nohup bash -c 'cd /root/profiler; yarn start&' >/dev/null 2>&1"
25+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"build": {
3+
"target": "rgadget",
4+
"args": {
5+
"DOCKER_BUILDKIT": "1",
6+
"http_proxy": "${localEnv:http_proxy}",
7+
"https_proxy": "${localEnv:https_proxy}"
8+
}
9+
},
10+
"name": "rGadget",
11+
"context": "${localWorkspaceFolder}",
12+
"dockerFile": "${localWorkspaceFolder}/.devcontainer/Dockerfile",
13+
"customizations": {
14+
"vscode": {
15+
"extensions": [
16+
"ms-vscode.cpptools",
17+
"ms-azuretools.vscode-docker",
18+
"ms-vscode.makefile-tools",
19+
"ms-vscode.cpptools-extension-pack",
20+
"Codeium.codeium"
21+
]
22+
}
23+
},
24+
"runArgs": [
25+
"--cap-add=SYS_PTRACE",
26+
"--security-opt",
27+
"seccomp=unconfined"
28+
],
29+
"mounts": [
30+
"source=${localWorkspaceFolder},target=/home/ws,type=bind",
31+
"source=${localEnv:HOME},target=/home/share,type=bind"
32+
],
33+
"forwardPorts": [4242, 3000],
34+
"postStartCommand": "nohup bash -c 'cd /root/profiler; yarn start&' >/dev/null 2>&1"
35+
}

0 commit comments

Comments
 (0)