Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade base image so that this builds with some improvements #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 25 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,38 @@
FROM debian:wheezy
#FROM debian:stretch-slim
FROM debian:buster-slim

# some steps below following https://www.mono-project.com/download/stable/#download-lin-debian
# also alternative Docker image implementation at https://www.github.com/danielguerra69/alpine-fiddler
# e.g. docker pull danielguerra/alpine-fiddler

RUN apt-get update \
&& apt-get install -y curl unzip \
&& apt-get install --no-install-recommends -y curl unzip apt-transport-https dirmngr gnupg ca-certificates \
&& rm -rf /var/lib/apt/lists/*

RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

RUN echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.12.0 main" > /etc/apt/sources.list.d/mono-xamarin.list \
#RUN echo "deb https://download.mono-project.com/repo/debian stable-stretch main" | tee /etc/apt/sources.list.d/mono-official-stable.list \
RUN echo "deb https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list \
&& apt-get update \
&& apt-get install -y mono-devel ca-certificates-mono fsharp mono-vbnc nuget \
&& apt-get install --no-install-recommends -y mono-devel ca-certificates-mono fsharp mono-vbnc nuget \
&& rm -rf /var/lib/apt/lists/*

RUN cd /tmp && curl -O http://ericlawrence.com/dl/MonoFiddler-v4484.zip
# ^^ in case that site goes down & Fiddler EXE missing, may want to keep a copy to build locally with instead
# or use internet archive wayback machine:
#RUN cd /tmp && curl -O https://web.archive.org/web/20161019061922/http://ericlawrence.com/dl/MonoFiddler-v4484.zip
# alternative installer download URLs?
# https://telerik-fiddler.s3.amazonaws.com/fiddler/FiddlerSetup.exe
# https://www.telerik.com/download/fiddler/fiddler4
# ^^ this one redirects to the actual EXE download I think
# how might you run the official EXE installer (v5.0.20204.45441 for .NET 4.6.1, dated 11/3/2020) in CLI mode on docker/mono?
# perhaps simply install manually on Windows machine, then zip up the contents for this docker build & extract
# organizing it in same folder structure C:\Users\<USERNAME>\AppData\Local\Programs\Fiddler --> /app
# Also maybe consider packaging in Fiddler Everywhere as well the same way (run installer manually, zip content), 2 tools in one image
# https://downloads.getfiddler.com/win/Fiddler%20Everywhere%201.5.1.exe

RUN unzip /tmp/MonoFiddler-v4484.zip

EXPOSE 8888

ENTRYPOINT ["mono", "/app/Fiddler.exe"]