Skip to content

Instantly share code, notes, and snippets.

@mamelara
Created June 3, 2020 18:04
Show Gist options
  • Save mamelara/644288f52a1f1dec403f1e66aa4dd715 to your computer and use it in GitHub Desktop.
Save mamelara/644288f52a1f1dec403f1e66aa4dd715 to your computer and use it in GitHub Desktop.
essdive-appstack on  issue_123_metacat_logrotate via 🅒 base
➜ ./build.sh metacat 2.12.3-p52
********************************
* Docker Image 'metacat' Build *
********************************
****************************
BUILDING image_version
****************************
commit_count: 53
commit_hash: f82d333
subject: Refactor build scripts to allow building local and registry images
committer: Val Hendrix <vchendrix@lbl.gov>
commiter_date: 2020-03-09 09:04:03 -0700
author: Val Hendrix <vchendrix@lbl.gov>
author_date: 2020-03-06 17:41:02 -0800
ref_names: HEAD -> master, origin/master, origin/HEAD
docker build --no-cache -t registry.spin.nersc.gov/m2690/metacat:2.12.3-p52-p53 --build-arg METACAT_UID=76553 --build-arg METACAT_GID=72528 --build-arg METACAT_VERSION=2.12.3-p52 /Users/mamelara/Work_Projects/essdive-workspace/essdive-appstack/docker-metacat
7.0-jre8: Pulling from library/tomcat
Digest: sha256:3d6475354578a0b083f2e91700dcb8a1275dc5f574435276ce0ec69be588d6a3
Status: Image is up to date for tomcat:7.0-jre8
docker.io/library/tomcat:7.0-jre8
Sending build context to Docker daemon 446.3MB
Step 1/24 : FROM tomcat:7.0-jre8
---> 3037eb7cda68
Step 2/24 : ARG METACAT_UID=108
---> Using cache
---> 2c0c9d6ab5b9
Step 3/24 : ARG METACAT_GID=121
---> Using cache
---> 5f82c9ebe999
Step 4/24 : ENV METACAT_APP_CONTEXT=metacat
---> Using cache
---> d9ce3dea5532
Step 5/24 : ARG METACAT_VERSION=2.8.7
---> Using cache
---> f6d9a9de12bb
Step 6/24 : ADD /metacat-bin-${METACAT_VERSION}.tar.gz /tmp/
---> Using cache
---> 5d9517c05242
Step 7/24 : ADD catalina.properties /tmp/
---> Using cache
---> 168a1a2896dd
Step 8/24 : ADD server.xml.patch /tmp/
---> Using cache
---> ce9df19d7905
Step 9/24 : ADD image_version.yml image_version.yml
---> Using cache
---> d563139574a9
Step 10/24 : RUN apt-get update && apt-get install -y --no-install-recommends patch python-bcrypt vim netcat libxml2-utils net-tools telnetd procps logrotate && rm -rf /var/lib/apt/lists/* && cp /tmp/metacat.war /tmp/metacat-index.war /usr/local/tomcat/webapps && cat /tmp/catalina.properties >> /usr/local/tomcat/conf/catalina.properties
---> Running in 1f23f7d4418e
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [527 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2410 B]
Get:7 http://deb.debian.org/debian stretch-updates/main amd64 Packages [27.9 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7083 kB]
Fetched 7944 kB in 3s (2393 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
cron libevent-2.0-5 libfile-copy-recursive-perl libgdbm3 libgpm2 libncurses5
libperl5.24 libpopt0 libprocps6 libpython-stdlib libpython2.7-minimal
libpython2.7-stdlib mime-support netcat-traditional openbsd-inetd perl
perl-base perl-modules-5.24 python python-cffi-backend python-minimal
python-six python2.7 python2.7-minimal tcpd update-inetd vim-common
vim-runtime xxd
Suggested packages:
anacron checksecurity gpm ed diffutils-doc perl-doc
libterm-readline-gnu-perl | libterm-readline-perl-perl make python-doc
python-tk python2.7-doc binutils binfmt-support ctags vim-doc vim-scripts
Recommended packages:
exim4 | postfix | mail-transport-agent bsd-mailx | mailx file rename psmisc
The following NEW packages will be installed:
cron libevent-2.0-5 libfile-copy-recursive-perl libgdbm3 libgpm2 libncurses5
libperl5.24 libpopt0 libprocps6 libpython-stdlib libpython2.7-minimal
libpython2.7-stdlib libxml2-utils logrotate mime-support net-tools netcat
netcat-traditional openbsd-inetd patch perl perl-modules-5.24 procps python
python-bcrypt python-cffi-backend python-minimal python-six python2.7
python2.7-minimal tcpd telnetd update-inetd vim vim-common vim-runtime xxd
The following packages will be upgraded:
perl-base
1 upgraded, 37 newly installed, 0 to remove and 32 not upgraded.
Need to get 20.4 MB of archives.
After this operation, 92.7 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 perl-base amd64 5.24.1-3+deb9u6 [1345 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 cron amd64 3.0pl1-128+deb9u1 [95.4 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 perl-modules-5.24 all 5.24.1-3+deb9u6 [2725 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 libgdbm3 amd64 1.8.3-14 [30.0 kB]
Get:5 http://deb.debian.org/debian stretch/main amd64 libperl5.24 amd64 5.24.1-3+deb9u6 [3525 kB]
Get:6 http://deb.debian.org/debian stretch/main amd64 perl amd64 5.24.1-3+deb9u6 [218 kB]
Get:7 http://deb.debian.org/debian stretch/main amd64 libpython2.7-minimal amd64 2.7.13-2+deb9u3 [389 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 python2.7-minimal amd64 2.7.13-2+deb9u3 [1382 kB]
Get:9 http://deb.debian.org/debian stretch/main amd64 python-minimal amd64 2.7.13-2 [40.5 kB]
Get:10 http://deb.debian.org/debian stretch/main amd64 mime-support all 3.60 [36.7 kB]
Get:11 http://deb.debian.org/debian stretch/main amd64 libpython2.7-stdlib amd64 2.7.13-2+deb9u3 [1897 kB]
Get:12 http://deb.debian.org/debian stretch/main amd64 python2.7 amd64 2.7.13-2+deb9u3 [285 kB]
Get:13 http://deb.debian.org/debian stretch/main amd64 libpython-stdlib amd64 2.7.13-2 [20.0 kB]
Get:14 http://deb.debian.org/debian stretch/main amd64 python amd64 2.7.13-2 [154 kB]
Get:15 http://deb.debian.org/debian stretch/main amd64 libpopt0 amd64 1.16-10+b2 [49.4 kB]
Get:16 http://deb.debian.org/debian stretch/main amd64 libprocps6 amd64 2:3.3.12-3+deb9u1 [58.5 kB]
Get:17 http://deb.debian.org/debian stretch/main amd64 logrotate amd64 3.11.0-0.1 [58.7 kB]
Get:18 http://deb.debian.org/debian stretch/main amd64 libncurses5 amd64 6.0+20161126-1+deb9u2 [93.4 kB]
Get:19 http://deb.debian.org/debian stretch/main amd64 procps amd64 2:3.3.12-3+deb9u1 [250 kB]
Get:20 http://deb.debian.org/debian stretch/main amd64 xxd amd64 2:8.0.0197-4+deb9u3 [132 kB]
Get:21 http://deb.debian.org/debian stretch/main amd64 vim-common all 2:8.0.0197-4+deb9u3 [159 kB]
Get:22 http://deb.debian.org/debian stretch/main amd64 libevent-2.0-5 amd64 2.0.21-stable-3 [152 kB]
Get:23 http://deb.debian.org/debian stretch/main amd64 libgpm2 amd64 1.20.4-6.2+b1 [34.2 kB]
Get:24 http://deb.debian.org/debian stretch/main amd64 netcat-traditional amd64 1.10-41+b1 [67.0 kB]
Get:25 http://deb.debian.org/debian stretch/main amd64 libfile-copy-recursive-perl all 0.38-1 [20.6 kB]
Get:26 http://deb.debian.org/debian stretch/main amd64 libxml2-utils amd64 2.9.4+dfsg1-2.2+deb9u2 [103 kB]
Get:27 http://deb.debian.org/debian stretch/main amd64 net-tools amd64 1.60+git20161116.90da8a0-1 [248 kB]
Get:28 http://deb.debian.org/debian stretch/main amd64 update-inetd all 4.44 [20.8 kB]
Get:29 http://deb.debian.org/debian stretch/main amd64 tcpd amd64 7.6.q-26 [23.3 kB]
Get:30 http://deb.debian.org/debian stretch/main amd64 openbsd-inetd amd64 0.20160825-2 [35.9 kB]
Get:31 http://deb.debian.org/debian stretch/main amd64 patch amd64 2.7.5-1+deb9u2 [112 kB]
Get:32 http://deb.debian.org/debian stretch/main amd64 python-cffi-backend amd64 1.9.1-2 [69.0 kB]
Get:33 http://deb.debian.org/debian stretch/main amd64 python-six all 1.10.0-3 [14.4 kB]
Get:34 http://deb.debian.org/debian stretch/main amd64 python-bcrypt amd64 3.1.2-1 [30.1 kB]
Get:35 http://deb.debian.org/debian stretch/main amd64 telnetd amd64 0.17-41 [44.6 kB]
Get:36 http://deb.debian.org/debian stretch/main amd64 vim-runtime all 2:8.0.0197-4+deb9u3 [5409 kB]
Get:37 http://deb.debian.org/debian stretch/main amd64 vim amd64 2:8.0.0197-4+deb9u3 [1034 kB]
Get:38 http://deb.debian.org/debian stretch/main amd64 netcat all 1.10-41 [8962 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 20.4 MB in 5s (3463 kB/s)
(Reading database ... 16627 files and directories currently installed.)
Preparing to unpack .../perl-base_5.24.1-3+deb9u6_amd64.deb ...
Unpacking perl-base (5.24.1-3+deb9u6) over (5.24.1-3+deb9u5) ...
Setting up perl-base (5.24.1-3+deb9u6) ...
Selecting previously unselected package cron.
(Reading database ... 16627 files and directories currently installed.)
Preparing to unpack .../00-cron_3.0pl1-128+deb9u1_amd64.deb ...
Unpacking cron (3.0pl1-128+deb9u1) ...
Selecting previously unselected package perl-modules-5.24.
Preparing to unpack .../01-perl-modules-5.24_5.24.1-3+deb9u6_all.deb ...
Unpacking perl-modules-5.24 (5.24.1-3+deb9u6) ...
Selecting previously unselected package libgdbm3:amd64.
Preparing to unpack .../02-libgdbm3_1.8.3-14_amd64.deb ...
Unpacking libgdbm3:amd64 (1.8.3-14) ...
Selecting previously unselected package libperl5.24:amd64.
Preparing to unpack .../03-libperl5.24_5.24.1-3+deb9u6_amd64.deb ...
Unpacking libperl5.24:amd64 (5.24.1-3+deb9u6) ...
Selecting previously unselected package perl.
Preparing to unpack .../04-perl_5.24.1-3+deb9u6_amd64.deb ...
Unpacking perl (5.24.1-3+deb9u6) ...
Selecting previously unselected package libpython2.7-minimal:amd64.
Preparing to unpack .../05-libpython2.7-minimal_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.13-2+deb9u3) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../06-python2.7-minimal_2.7.13-2+deb9u3_amd64.deb ...
Unpacking python2.7-minimal (2.7.13-2+deb9u3) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../07-python-minimal_2.7.13-2_amd64.deb ...
Unpacking python-minimal (2.7.13-2) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../08-mime-support_3.60_all.deb ...
Unpacking mime-support (3.60) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../09-libpython2.7-stdlib_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.13-2+deb9u3) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../10-python2.7_2.7.13-2+deb9u3_amd64.deb ...
Unpacking python2.7 (2.7.13-2+deb9u3) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../11-libpython-stdlib_2.7.13-2_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.13-2) ...
Setting up libpython2.7-minimal:amd64 (2.7.13-2+deb9u3) ...
Setting up python2.7-minimal (2.7.13-2+deb9u3) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python-minimal (2.7.13-2) ...
Selecting previously unselected package python.
(Reading database ... 19260 files and directories currently installed.)
Preparing to unpack .../00-python_2.7.13-2_amd64.deb ...
Unpacking python (2.7.13-2) ...
Selecting previously unselected package libpopt0:amd64.
Preparing to unpack .../01-libpopt0_1.16-10+b2_amd64.deb ...
Unpacking libpopt0:amd64 (1.16-10+b2) ...
Selecting previously unselected package libprocps6:amd64.
Preparing to unpack .../02-libprocps6_2%3a3.3.12-3+deb9u1_amd64.deb ...
Unpacking libprocps6:amd64 (2:3.3.12-3+deb9u1) ...
Selecting previously unselected package logrotate.
Preparing to unpack .../03-logrotate_3.11.0-0.1_amd64.deb ...
Unpacking logrotate (3.11.0-0.1) ...
Selecting previously unselected package libncurses5:amd64.
Preparing to unpack .../04-libncurses5_6.0+20161126-1+deb9u2_amd64.deb ...
Unpacking libncurses5:amd64 (6.0+20161126-1+deb9u2) ...
Selecting previously unselected package procps.
Preparing to unpack .../05-procps_2%3a3.3.12-3+deb9u1_amd64.deb ...
Unpacking procps (2:3.3.12-3+deb9u1) ...
Selecting previously unselected package xxd.
Preparing to unpack .../06-xxd_2%3a8.0.0197-4+deb9u3_amd64.deb ...
Unpacking xxd (2:8.0.0197-4+deb9u3) ...
Selecting previously unselected package vim-common.
Preparing to unpack .../07-vim-common_2%3a8.0.0197-4+deb9u3_all.deb ...
Unpacking vim-common (2:8.0.0197-4+deb9u3) ...
Selecting previously unselected package libevent-2.0-5:amd64.
Preparing to unpack .../08-libevent-2.0-5_2.0.21-stable-3_amd64.deb ...
Unpacking libevent-2.0-5:amd64 (2.0.21-stable-3) ...
Selecting previously unselected package libgpm2:amd64.
Preparing to unpack .../09-libgpm2_1.20.4-6.2+b1_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.4-6.2+b1) ...
Selecting previously unselected package netcat-traditional.
Preparing to unpack .../10-netcat-traditional_1.10-41+b1_amd64.deb ...
Unpacking netcat-traditional (1.10-41+b1) ...
Selecting previously unselected package libfile-copy-recursive-perl.
Preparing to unpack .../11-libfile-copy-recursive-perl_0.38-1_all.deb ...
Unpacking libfile-copy-recursive-perl (0.38-1) ...
Selecting previously unselected package libxml2-utils.
Preparing to unpack .../12-libxml2-utils_2.9.4+dfsg1-2.2+deb9u2_amd64.deb ...
Unpacking libxml2-utils (2.9.4+dfsg1-2.2+deb9u2) ...
Selecting previously unselected package net-tools.
Preparing to unpack .../13-net-tools_1.60+git20161116.90da8a0-1_amd64.deb ...
Unpacking net-tools (1.60+git20161116.90da8a0-1) ...
Selecting previously unselected package update-inetd.
Preparing to unpack .../14-update-inetd_4.44_all.deb ...
Unpacking update-inetd (4.44) ...
Selecting previously unselected package tcpd.
Preparing to unpack .../15-tcpd_7.6.q-26_amd64.deb ...
Unpacking tcpd (7.6.q-26) ...
Selecting previously unselected package openbsd-inetd.
Preparing to unpack .../16-openbsd-inetd_0.20160825-2_amd64.deb ...
Unpacking openbsd-inetd (0.20160825-2) ...
Selecting previously unselected package patch.
Preparing to unpack .../17-patch_2.7.5-1+deb9u2_amd64.deb ...
Unpacking patch (2.7.5-1+deb9u2) ...
Selecting previously unselected package python-cffi-backend.
Preparing to unpack .../18-python-cffi-backend_1.9.1-2_amd64.deb ...
Unpacking python-cffi-backend (1.9.1-2) ...
Selecting previously unselected package python-six.
Preparing to unpack .../19-python-six_1.10.0-3_all.deb ...
Unpacking python-six (1.10.0-3) ...
Selecting previously unselected package python-bcrypt.
Preparing to unpack .../20-python-bcrypt_3.1.2-1_amd64.deb ...
Unpacking python-bcrypt (3.1.2-1) ...
Selecting previously unselected package telnetd.
Preparing to unpack .../21-telnetd_0.17-41_amd64.deb ...
Unpacking telnetd (0.17-41) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../22-vim-runtime_2%3a8.0.0197-4+deb9u3_all.deb ...
Adding 'diversion of /usr/share/vim/vim80/doc/help.txt to /usr/share/vim/vim80/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim80/doc/tags to /usr/share/vim/vim80/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:8.0.0197-4+deb9u3) ...
Selecting previously unselected package vim.
Preparing to unpack .../23-vim_2%3a8.0.0197-4+deb9u3_amd64.deb ...
Unpacking vim (2:8.0.0197-4+deb9u3) ...
Selecting previously unselected package netcat.
Preparing to unpack .../24-netcat_1.10-41_all.deb ...
Unpacking netcat (1.10-41) ...
Setting up libncurses5:amd64 (6.0+20161126-1+deb9u2) ...
Setting up perl-modules-5.24 (5.24.1-3+deb9u6) ...
Setting up libgdbm3:amd64 (1.8.3-14) ...
Setting up libperl5.24:amd64 (5.24.1-3+deb9u6) ...
Setting up libpopt0:amd64 (1.16-10+b2) ...
Setting up mime-support (3.60) ...
Setting up xxd (2:8.0.0197-4+deb9u3) ...
Setting up libgpm2:amd64 (1.20.4-6.2+b1) ...
Setting up libxml2-utils (2.9.4+dfsg1-2.2+deb9u2) ...
Setting up netcat-traditional (1.10-41+b1) ...
update-alternatives: using /bin/nc.traditional to provide /bin/nc (nc) in auto mode
Setting up tcpd (7.6.q-26) ...
Setting up libprocps6:amd64 (2:3.3.12-3+deb9u1) ...
Setting up procps (2:3.3.12-3+deb9u1) ...
update-alternatives: using /usr/bin/w.procps to provide /usr/bin/w (w) in auto mode
Setting up perl (5.24.1-3+deb9u6) ...
update-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode
Setting up patch (2.7.5-1+deb9u2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up netcat (1.10-41) ...
Setting up vim-common (2:8.0.0197-4+deb9u3) ...
Setting up vim-runtime (2:8.0.0197-4+deb9u3) ...
Setting up libevent-2.0-5:amd64 (2.0.21-stable-3) ...
Setting up net-tools (1.60+git20161116.90da8a0-1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up cron (3.0pl1-128+deb9u1) ...
Adding group `crontab' (GID 101) ...
Done.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up logrotate (3.11.0-0.1) ...
Setting up libpython2.7-stdlib:amd64 (2.7.13-2+deb9u3) ...
Setting up libfile-copy-recursive-perl (0.38-1) ...
Setting up update-inetd (4.44) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up vim (2:8.0.0197-4+deb9u3) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
Setting up python2.7 (2.7.13-2+deb9u3) ...
Setting up libpython-stdlib:amd64 (2.7.13-2) ...
Setting up openbsd-inetd (0.20160825-2) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up python (2.7.13-2) ...
Setting up telnetd (0.17-41) ...
Adding user telnetd to group utmp
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up python-cffi-backend (1.9.1-2) ...
Setting up python-six (1.10.0-3) ...
Setting up python-bcrypt (3.1.2-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
cp: cannot stat '/tmp/metacat.war': No such file or directory
cp: cannot stat '/tmp/metacat-index.war': No such file or directory
The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends patch python-bcrypt vim netcat libxml2-utils net-tools telnetd procps logrotate && rm -rf /var/lib/apt/lists/* && cp /tmp/metacat.war /tmp/metacat-index.war /usr/local/tomcat/webapps && cat /tmp/catalina.properties >> /usr/local/tomcat/conf/catalina.properties' returned a non-zero code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment