Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
caa02902ba | ||
|
|
0afd5e92de | ||
|
|
0df20ec20a | ||
|
|
ec7adf17ec | ||
|
|
abf81fc240 | ||
|
|
a7a054a5d8 |
No files matched your search
+39
-28
@@ -1,12 +1,22 @@
|
||||
FROM ubuntu:bionic
|
||||
FROM ubuntu:focal
|
||||
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
RUN \
|
||||
apt-get update && apt-get install -y software-properties-common
|
||||
|
||||
RUN add-apt-repository universe && \
|
||||
apt-get update && apt install -y python2 curl && \
|
||||
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \
|
||||
python2 get-pip.py
|
||||
|
||||
RUN \
|
||||
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
clang \
|
||||
clang-tools \
|
||||
libclang-dev \
|
||||
clangd clang-format \
|
||||
autoconf \
|
||||
automake \
|
||||
bsdmainutils \
|
||||
ccache \
|
||||
clang-format \
|
||||
clang \
|
||||
cmake \
|
||||
curl \
|
||||
libunwind8 \
|
||||
@@ -22,13 +32,11 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
htop \
|
||||
iputils-ping \
|
||||
libc6-dbg \
|
||||
libclang-dev \
|
||||
liblttng-ust-dev \
|
||||
libncurses5-dev \
|
||||
libreadline-dev \
|
||||
libtool \
|
||||
libz-dev \
|
||||
llvm \
|
||||
locales \
|
||||
lttng-modules-dkms \
|
||||
lttng-tools \
|
||||
@@ -38,7 +46,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
ninja-build \
|
||||
openssh-server \
|
||||
pkg-config \
|
||||
python-pip \
|
||||
screen \
|
||||
silversearcher-ag \
|
||||
sudo \
|
||||
@@ -65,15 +72,19 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
mono-runtime \
|
||||
libfsharp-core4.3-cil \
|
||||
libmono-system-net-http4.0-cil \
|
||||
mono-reference-assemblies-4.0 \
|
||||
mono-devel \
|
||||
bash-completion \
|
||||
libpq-dev \
|
||||
libpqxx-dev \
|
||||
zip \
|
||||
parallel \
|
||||
# aws tools
|
||||
awscli \
|
||||
ccache \
|
||||
&& rm -rf /var/lig/apt/lists/*
|
||||
|
||||
|
||||
run pip install pybars3 paramiko mkdocs
|
||||
run pip2 install pybars3 paramiko mkdocs
|
||||
run npm install -g npx
|
||||
|
||||
# fix locale so we can run tmux
|
||||
@@ -81,7 +92,7 @@ run sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
|
||||
ENV LANG='en_US.utf8' LANGUAGE='en_US:en' LC_ALL='en_US.utf8' TZ='America/Chicago'
|
||||
run locale-gen
|
||||
|
||||
# expand libc sources
|
||||
# expand libc sources for ease fo debugging
|
||||
run cd /usr/src/glibc ; tar xvf glibc-*.tar.xz
|
||||
|
||||
# build cgdb (the version shipped with ubuntu is too old)
|
||||
@@ -113,13 +124,13 @@ imap jj <Esc> \n\
|
||||
# for netcore3 reference https://github.com/dotnet/dotnet-docker/blob/master/3.0/sdk/bionic/amd64/Dockerfile
|
||||
# taken from https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
|
||||
|
||||
RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
|
||||
RUN wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
|
||||
&& sudo dpkg -i packages-microsoft-prod.deb \
|
||||
&& sudo apt-get update \
|
||||
&& sudo apt-get install apt-transport-https -y \
|
||||
&& sudo apt-get update \
|
||||
&& sudo apt-get install dotnet-sdk-2.1 -y \
|
||||
&& sudo apt-get install dotnet-sdk-3.0 -y
|
||||
&& sudo apt-get install dotnet-sdk-3.1 -y
|
||||
|
||||
# Enable detection of running in a container
|
||||
ENV DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
@@ -131,19 +142,19 @@ ENV DOTNET_RUNNING_IN_CONTAINER=true \
|
||||
# Trigger first run experience by running arbitrary cmd
|
||||
RUN dotnet help
|
||||
|
||||
# Install PowerShell global tool
|
||||
ENV POWERSHELL_VERSION=7.0.0-preview.4 \
|
||||
POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetCoreSDK-Ubuntu-18.04
|
||||
# Install PowerShell global too# l
|
||||
# ENV POWERSHELL_VERSION=7.0.0-preview.4 \
|
||||
# POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetCoreSDK-Ubuntu-18.04
|
||||
|
||||
RUN curl -SL --output PowerShell.Linux.x64.$POWERSHELL_VERSION.nupkg https://pwshtool.blob.core.windows.net/tool/$POWERSHELL_VERSION/PowerShell.Linux.x64.$POWERSHELL_VERSION.nupkg \
|
||||
&& powershell_sha512='0fb0167e13560371bffec38a4a87bf39377fa1a5cc39b3a078ddec8803212bede73e5821861036ba5c345bd55c74703134c9b55c49385f87dae9e2de9239f5d9' \
|
||||
&& echo "$powershell_sha512 PowerShell.Linux.x64.$POWERSHELL_VERSION.nupkg" | sha512sum -c - \
|
||||
&& mkdir -p /usr/share/powershell \
|
||||
&& dotnet tool install --add-source / --tool-path /usr/share/powershell --version $POWERSHELL_VERSION PowerShell.Linux.x64 \
|
||||
&& rm PowerShell.Linux.x64.$POWERSHELL_VERSION.nupkg \
|
||||
&& ln -s /usr/share/powershell/pwsh /usr/bin/pwsh \
|
||||
# To reduce image size, remove the copy nupkg that nuget keeps.
|
||||
&& find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm
|
||||
# RUN curl -SL --output PowerShell.Linux.x64.$POWERSHELL_VERSION.nupkg https://pwshtool.blob.core.windows.net/tool/$POWERSHELL_VERSION/PowerShell.Linux.x64.$POWERSHELL_VERSION.nupkg \
|
||||
# && powershell_sha512='0fb0167e13560371bffec38a4a87bf39377fa1a5cc39b3a078ddec8803212bede73e5821861036ba5c345bd55c74703134c9b55c49385f87dae9e2de9239f5d9' \
|
||||
# && echo "$powershell_sha512 PowerShell.Linux.x64.$POWERSHELL_VERSION.nupkg" | sha512sum -c - \
|
||||
# && mkdir -p /usr/share/powershell \
|
||||
# && dotnet tool install --add-source / --tool-path /usr/share/powershell --version $POWERSHELL_VERSION PowerShell.Linux.x64 \
|
||||
# && rm PowerShell.Linux.x64.$POWERSHELL_VERSION.nupkg \
|
||||
# && ln -s /usr/share/powershell/pwsh /usr/bin/pwsh \
|
||||
# # To reduce image size, remove the copy nupkg that nuget keeps.
|
||||
# && find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm
|
||||
|
||||
#vsdbg for remote .net core debugging
|
||||
RUN wget https://aka.ms/getvsdbgsh -O - 2>/dev/null | /bin/sh /dev/stdin -v latest -l ~/vsdbg
|
||||
@@ -157,9 +168,9 @@ copy sqlite-version-3.26.0.zip extension-functions.c build_sqlite.sh /
|
||||
run ./build_sqlite.sh && rm -rf /sqlite-version-3.26.0/
|
||||
|
||||
|
||||
#git-lfs
|
||||
copy git-lfs /usr/bin/
|
||||
run chmod +x /usr/bin/git-lfs && git lfs install
|
||||
# #git-lfs
|
||||
# copy git-lfs /usr/bin/
|
||||
# run chmod +x /usr/bin/git-lfs && git lfs install
|
||||
|
||||
##### Onload Stuff #####
|
||||
|
||||
|
||||
Reference in new issue
Block a user