-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-setup.sh
More file actions
66 lines (54 loc) · 1.79 KB
/
docker-setup.sh
File metadata and controls
66 lines (54 loc) · 1.79 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
# install prereqs
apt-get update
apt-get install -y apt-utils
apt-get install -y software-properties-common
apt-get install -y gnupg
apt-get install -y openssh-client
# install llvm
apt-get -y upgrade
apt-get install -y wget
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal main"
# install text editors and terminals
add-apt-repository ppa:jonathonf/vim
apt-get update
apt-get -y upgrade
apt-get install -y emacs
# vim -c PlugInstall -c qa
apt-get install -y vim
apt-get install -y tmux
# debug tools
apt-get install -y gdb valgrind
# install C stuff
apt-get install -y gcc clang-10 clang-format-10 make
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-10 100
update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-10 100
# install miscellaneous things I can't categorise
apt-get install -y lldb-3.8
apt-get install -y curl
apt-get install -y sudo
apt-get install -y net-tools
apt-get install -y traceroute
apt-get install -y dnsutils
apt-get install -y zip
# needed for git-from-source
apt-get install -y autoconf libz-dev gettext asciidoc
# prevent errors about no dialog installed when attempting to use apt inside container
apt-get install -y dialog
# install manpages
apt-get install -y man man-db manpages-posix manpages-dev manpages-posix-dev
apt-get install -y neofetch
# install git from source
curl https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.49.0.tar.gz > git-2.49.0.tar.gz
tar -xvf git-2.49.0.tar.gz
cd git-2.49.0
make configure
./configure --prefix=/usr
make all
sudo make install
cd ..
rm -f -r git-2.49.0
# all of this is to make the default branch "main"
git config --global init.defaultBranch main