-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker Ready & Latest Inkscape For Ubuntu
* Removed code that prevented the program from running when running as root user. The default user in Docker containers is root. * Added a Dockerfile with which images can be built. Updated the README file with instructions on how to use the Docker image. * Updated the README file to include instructions for installing the latest version of Inkscape from the repos. This ensure PNG file creation does not fail as the CLI options are different in the latest version of Inkscape. * Updated the README file to include missing dependency tshark. * Also updated the README with the link to the releases page to download built versions.
- Loading branch information
1 parent
ef326db
commit 5569e4d
Showing
3 changed files
with
88 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM ubuntu:20.04 AS builder | ||
LABEL maintainer="karthicr@gmail.com" | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG TZ=Etc/UTC | ||
ENV CALLFLOWVERSION=20200523 | ||
RUN apt-get update \ | ||
&& apt-get -y install --no-install-recommends \ | ||
ca-certificates \ | ||
cmake \ | ||
make \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN wget -O callflow-${CALLFLOWVERSION}.tar.bz2 https://github.com/karthicraghupathi/callflow/releases/download/v${CALLFLOWVERSION}/callflow-${CALLFLOWVERSION}.tar.bz2 \ | ||
&& tar xf callflow-${CALLFLOWVERSION}.tar.bz2 \ | ||
&& cd callflow-${CALLFLOWVERSION} \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& make install \ | ||
&& rm -rf callflow-${CALLFLOWVERSION} | ||
|
||
FROM ubuntu:20.04 | ||
LABEL maintainer="karthicr@gmail.com" | ||
RUN apt-get update \ | ||
&& apt-get -y install --no-install-recommends software-properties-common \ | ||
&& add-apt-repository -u -y ppa:inkscape.dev/stable \ | ||
&& apt-get -y install --no-install-recommends gawk inkscape tshark \ | ||
&& apt-get -y purge --auto-remove software-properties-common \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
COPY --from=builder /usr/local/bin/callflow /usr/local/bin/ | ||
COPY --from=builder /usr/local/share/doc/callflow /usr/local/share/doc/callflow | ||
COPY --from=builder /usr/local/callflow/ /usr/local/callflow/ | ||
COPY --from=builder /usr/local/share/man/man1/callflow.1 /usr/local/share/man/man1/ | ||
COPY --from=builder /usr/local/etc/callflow/callflow.conf /usr/local/etc/callflow/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters