Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #347 from LibreCat/docker
Move minimal docker image to base directory and build from source
- Loading branch information
Showing
6 changed files
with
90 additions
and
119 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,4 @@ | ||
.git/* | ||
local/* | ||
blib/* | ||
cover_db/* |
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,30 @@ | ||
# Minimal Dockerfile of a base image with Catmandu core on Debian stretch | ||
FROM debian:stretch-slim | ||
|
||
MAINTAINER LibreCat community <librecat-dev@lists.uni-bielefeld.de> | ||
|
||
ADD docker/apt.txt . | ||
# Perl packages used by Catmandu (if available as Debian package) and cpanm | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
$(grep -vE "^\s*#" apt.txt | tr "\n" " ") cpanminus \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ADD . /tmp/catmandu | ||
|
||
WORKDIR /tmp/catmandu | ||
|
||
# install from source | ||
RUN cpanm -n -q --installdeps --skip-satisfied . | ||
RUN perl Build.PL && ./Build && ./Build install | ||
|
||
# cleanup sources | ||
WORKDIR / | ||
RUN rm -rf /tmp/catmandu | ||
|
||
# make user feel home | ||
RUN adduser --home /home/catmandu --uid 1000 --disabled-password --gecos "" catmandu | ||
WORKDIR /home/catmandu | ||
USER catmandu | ||
|
||
# Default command | ||
CMD ["bash"] |
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
# Catmandu dependencies as Debian packages | ||
|
||
# This list is used to build Docker images. See also | ||
# https://salsa.debian.org/perl-team/modules/packages/libcatmandu-perl | ||
|
||
libany-uri-escape-perl | ||
libasa-perl | ||
libcgi-expand-perl | ||
libclone-perl | ||
libconfig-onion-perl | ||
libcpanel-json-xs-perl | ||
libdata-compare-perl | ||
libdata-util-perl | ||
libdata-uuid-perl | ||
libhash-merge-simple-perl | ||
libio-handle-util-perl | ||
liblist-moreutils-perl | ||
liblog-any-perl | ||
libmime-types-perl | ||
libmodule-info-perl | ||
libmoo-perl | ||
libmoox-aliases-perl | ||
libnamespace-clean-perl | ||
libparser-mgc-perl | ||
libpath-iterator-rule-perl | ||
libpath-tiny-perl | ||
libsub-exporter-perl | ||
libtext-csv-perl | ||
libtext-hogan-perl | ||
libthrowable-perl | ||
libtry-tiny-byclass-perl | ||
liburi-perl | ||
liburi-template-perl | ||
libwww-perl | ||
libyaml-libyaml-perl | ||
build-essential |
This file was deleted.
Oops, something went wrong.
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