-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (56 loc) · 2.54 KB
/
Dockerfile
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
67
68
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
ARG USERNAME=user
ARG PASSWORD=user
ARG ROOT_PASSWORD=root
RUN echo "root:${ROOT_PASSWORD}" | chpasswd && \
useradd -m --groups sudo --shell /bin/bash ${USERNAME} && \
echo "${USERNAME}:${PASSWORD}" | chpasswd
ADD default.sh ./
RUN cat default.sh >> /home/${USERNAME}/.bashrc && \
touch /etc/wsl.conf && \
echo "[user]" >> /etc/wsl.conf && \
echo "default=${USERNAME}" >> /etc/wsl.conf
RUN apt-get update && apt-get install -y \
wget \
curl \
gnupg
# http://ubuntulinux.jp/japanese
RUN wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | apt-key add - && \
wget -q https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -O- | apt-key add - && \
wget https://www.ubuntulinux.jp/sources.list.d/focal.list -O /etc/apt/sources.list.d/ubuntu-ja.list
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
sudo \
vim \
git \
xclip \
x11-apps \
dbus-x11 \
ubuntu-defaults-ja \
fcitx \
fcitx-mozc
RUN update-locale LANG=ja_JP.UTF8
# https://github.com/arkane-systems/genie
# https://docs.microsoft.com/ja-jp/dotnet/core/install/linux-ubuntu#1804-
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
RUN wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \
apt-key adv --keyserver keyserver.ubuntu.com --recv 60C317803A41BA51845E371A1E9377A2BA9EF27F && \
echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal main " > /etc/apt/sources.list.d/gcc-10.list && \
echo "deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal main " >> /etc/apt/sources.list.d/gcc-10.list && \
dpkg -i packages-microsoft-prod.deb && \
apt-get update && \
apt-get install -y apt-transport-https && \
apt-get update && \
apt-get install -y \
dotnet-sdk-3.1 \
dotnet-runtime-3.1
# https://arkane-systems.github.io/wsl-transdebian/
RUN wget -O /etc/apt/trusted.gpg.d/wsl-transdebian.gpg https://arkane-systems.github.io/wsl-transdebian/apt/wsl-transdebian.gpg && \
chmod a+r /etc/apt/trusted.gpg.d/wsl-transdebian.gpg && \
echo "deb https://arkane-systems.github.io/wsl-transdebian/apt/ bullseye main" > /etc/apt/sources.list.d/wsl-transdebian.list && \
echo "deb-src https://arkane-systems.github.io/wsl-transdebian/apt/ bullseye main" >> /etc/apt/sources.list.d/wsl-transdebian.list && \
apt-get update && \
apt-get install -y \
systemd-genie \
snapd
CMD ["/bin/bash"]