add github codespace cfg files
This commit is contained in:
parent
a960fb2e8f
commit
a855f7f5ba
9
.devcontainer/Dockerfile
Normal file
9
.devcontainer/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM ubuntu:18.04
|
||||||
|
|
||||||
|
WORKDIR /home/
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN bash ./setup.sh
|
||||||
|
|
||||||
|
ENV PATH="/root/.cargo/bin:$PATH"
|
12
.devcontainer/devcontainer.json
Normal file
12
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "RustWallet",
|
||||||
|
"dockerFile": "Dockerfile",
|
||||||
|
"settings": {
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"terminal.integrated.shell.linux": "/usr/bin/zsh",
|
||||||
|
"files.exclude": {
|
||||||
|
"**/CODE_OF_CONDUCT.md": true,
|
||||||
|
"**/LICENSE": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
37
.devcontainer/setup.sh
Normal file
37
.devcontainer/setup.sh
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
## update and install some things we should probably have
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y \
|
||||||
|
curl \
|
||||||
|
git \
|
||||||
|
gnupg2 \
|
||||||
|
jq \
|
||||||
|
sudo \
|
||||||
|
zsh \
|
||||||
|
vim \
|
||||||
|
build-essential \
|
||||||
|
openssl
|
||||||
|
|
||||||
|
## Install rustup and common components
|
||||||
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
|
rustup install nightly
|
||||||
|
rustup component add rustfmt
|
||||||
|
rustup component add rustfmt --toolchain nightly
|
||||||
|
rustup component add clippy
|
||||||
|
rustup component add clippy --toolchain nightly
|
||||||
|
|
||||||
|
cargo install cargo-expand
|
||||||
|
cargo install cargo-edit
|
||||||
|
cargo install cargo-ndk
|
||||||
|
cargo install cargo-lipo
|
||||||
|
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
|
||||||
|
rustup target add aarch64-apple-ios x86_64-apple-ios
|
||||||
|
|
||||||
|
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||||
|
|
||||||
|
|
||||||
|
## setup and install oh-my-zsh
|
||||||
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
|
cp -R /root/.oh-my-zsh /home/$USERNAME
|
||||||
|
cp /root/.zshrc /home/$USERNAME
|
||||||
|
sed -i -e "s/\/root\/.oh-my-zsh/\/home\/$USERNAME\/.oh-my-zsh/g" /home/$USERNAME/.zshrc
|
||||||
|
chown -R $USER_UID:$USER_GID /home/$USERNAME/.oh-my-zsh /home/$USERNAME/.zshrc
|
Loading…
x
Reference in New Issue
Block a user