-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-install.sh
executable file
·44 lines (35 loc) · 1.09 KB
/
docker-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# neopo: A lightweight solution for local Particle development.
# Copyright (c) 2021 Nathan Robinson.
# Install dependencies
apt update
#apt upgrade -y --no-install-recommends
apt -y --no-install-recommends install libarchive-zip-perl libc6-i386 python3 vim-tiny jq \
git python3-wheel python3-setuptools python3-pip curl # Build only
# Download particle completion
curl -sLo ".completions/particle" "https://raw.githubusercontent.com/nrobinson2000/particle-cli-completion/master/particle"
# Install neopo with pip
python3 -m pip install .
# Use custom path
export NEOPO_PATH="$HOME/.neopo"
mkdir -p $NEOPO_PATH
# Preinstall neopo and particle
neopo install -s
# Modify dotfiles
cat >> .bashrc << EOF
# neopo settings
export NEOPO_PATH="$NEOPO_PATH"
source ~/.completions/particle
source ~/.completions/neopo
alias vim='vim.tiny'
alias ls='ls --color=auto'
alias ll='ls -la'
alias la='ls -A'
EOF
# Clean up
rm -rf neopo .git scripts setup.py
apt -y purge git python3-wheel python3-setuptools python3-pip curl
apt -y autoremove
apt -y clean
rm -rf /tmp/* /var/tmp/*
rm -rf /var/lib/apt/lists/*