** publishing
| publishing |
|---|
| place the cursor inside the source block |
| C-u C-c C-v t |
** tag
| tag | git commands | |--------+----------------------------------| | add | | | | git tag -a | | | | | | git tag -m | | | | | | git tag -a -m | | | | | | M-x magit-tag | |--------+----------------------------------| | push | | | | git push origin tag_name | | | | | | magit push a tag | |--------+----------------------------------| | remove | | | | git push origin :tagname | | | | | | git push --delete origin tagname | | | | | | git tag --delete tagname |
** gentoo/stage3-amd64-hardened Dockerfile
https://hub.docker.com/r/gentoo/stage3-amd64-hardened/~/dockerfile/
FROM busybox
MAINTAINER Gentoo Docker Team
ADD build.sh /
RUN /build.sh amd64 x86_64 -hardened
RUN sed -e 's/#rc_sys=""/rc_sys="docker"/g' -i /etc/rc.conf
RUN echo 'UTC' > /etc/timezone
** v.10
adjust build.sh
download and unable to build without privileged operations
docker build should support privileged operations #1916
https://github.com/moby/moby/issues/1916
** v.9
mkdir -p /root/catalyst/tmp/hardened
2017-08-10 02:02:50 (52.4 MB/s) - '/root/catalyst/builds/default/stage3.spec' saved [240/240]
[0m Catalyst, version 2.0.18 Copyright 2003-2008 Gentoo Foundation Copyright 2008-2012 various authors Distributed under the GNU General Public License version 2.1
Using command line specified Catalyst configuration file, /root/catalyst.conf Setting sharedir to config file value "/usr/lib64/catalyst" Setting snapshot_cache to config file value "/var/tmp/catalyst/snapshot_cache" Setting hash_function to config file value "crc32" Setting storedir to config file value "/root/catalyst" Setting portdir to config file value "/usr/portage" Setting distdir to config file value "/usr/portage/distfiles" Setting options to config file value "autoresume bindist kerncache pkgcache seedcache snapcache" Autoresuming support enabled. Binary redistribution enabled Kernel cache support enabled. Package cache support enabled. Seed cache support enabled. Snapshot cache support enabled. Envscript support enabled. Using target: stage1 Building natively for amd64 stage1 root path is /tmp/stage1root Source path set to /root/catalyst/builds/hardened/stage3-amd64-hardened-latest.tar.bz2 Caching snapshot to /var/tmp/catalyst/snapshot_cache/latest/ The autoresume path is /root/catalyst/tmp/hardened/.autoresume-stage1-amd64-hardened-latest/ stage1 stage path is /root/catalyst/tmp/hardened/stage1-amd64-hardened-latest/tmp/stage1root Location of the package cache is /root/catalyst/packages/hardened/stage1-amd64-hardened-latest/ Location of the kerncache is /root/catalyst/kerncache/hardened/stage1-amd64-hardened-latest/ Checking for processes running in chroot and killing them.
--- Running action sequence: unpack
Referenced SEEDCACHE does not appear to be a directory, trying to untar... No Valid Resume point detected, cleaning up... Removing AutoResume Points: ... Emptying directory /root/catalyst/tmp/hardened/.autoresume-stage1-amd64-hardened-latest/ Emptying directory /root/catalyst/tmp/hardened/stage1-amd64-hardened-latest/
Starting tar extract from /root/catalyst/builds/hardened/stage3-amd64-hardened-latest.tar.bz2 to /root/catalyst/tmp/hardened/stage1-amd64-hardened-latest/ (This may take some time) ...
[91mtar: SELinux support is not available [0m --- Running action sequence: unpack_snapshot
Cleaning up invalid snapshot cache at /var/tmp/catalyst/snapshot_cache/latest/ (This can take a long time)...
Unpacking portage tree (This can take a long time) ...
[91mtar: SELinux support is not available [0m lockfile does not exist '/var/tmp/catalyst/snapshot_cache/latest/.catalyst_lock' --- Running action sequence: setup_confdir --- Running action sequence: portage_overlay --- Running action sequence: base_dirs --- Running action sequence: bind
[91mmount: permission denied [0m
!!! catalyst: Couldn't bind mount /proc
** v.8
#+HEADER: :tangle Dockerfile #+BEGIN_SRC sh FROM c5766/gentoo-catalyst:v.2
ADD build.sh /
RUN /build.sh #+END_SRC
| publishing the above block | | C-u C-c C-v t | | | | M-x magit-tag | | | | git push master | | | | git push a tag | | | | observing autmoated build |
Catalyst, version 2.0.18 Copyright 2003-2008 Gentoo Foundation Copyright 2008-2012 various authors Distributed under the GNU General Public License version 2.1
Using command line specified Catalyst configuration file, /root/catalyst.conf Setting sharedir to config file value "/usr/lib64/catalyst" Setting snapshot_cache to config file value "/var/tmp/catalyst/snapshot_cache" Setting hash_function to config file value "crc32" Setting storedir to config file value "/root/catalyst" Setting portdir to config file value "/usr/portage" Setting distdir to config file value "/usr/portage/distfiles" Setting options to config file value "autoresume bindist kerncache pkgcache seedcache snapcache" Autoresuming support enabled. Binary redistribution enabled Kernel cache support enabled. Package cache support enabled. Seed cache support enabled. Snapshot cache support enabled. Envscript support enabled. Using target: stage1 Building natively for amd64 stage1 root path is /tmp/stage1root Source path set to /root/catalyst/builds/hardened/stage3-amd64-hardened-latest.tar.bz2 Caching snapshot to /var/tmp/catalyst/snapshot_cache/latest/ The autoresume path is /root/catalyst/tmp/hardened/.autoresume-stage1-amd64-hardened-latest/ stage1 stage path is /root/catalyst/tmp/hardened/stage1-amd64-hardened-latest/tmp/stage1root Location of the package cache is /root/catalyst/packages/hardened/stage1-amd64-hardened-latest/ Location of the kerncache is /root/catalyst/kerncache/hardened/stage1-amd64-hardened-latest/ Checking for processes running in chroot and killing them.
--- Running action sequence: unpack
Referenced SEEDCACHE does not appear to be a directory, trying to untar... No Valid Resume point detected, cleaning up... Removing AutoResume Points: ... Emptying directory /root/catalyst/tmp/hardened/.autoresume-stage1-amd64-hardened-latest/ Emptying directory /root/catalyst/tmp/hardened/stage1-amd64-hardened-latest/
Starting tar extract from /root/catalyst/builds/hardened/stage3-amd64-hardened-latest.tar.bz2 to /root/catalyst/tmp/hardened/stage1-amd64-hardened-latest/ (This may take some time) ...
[91mtar: SELinux support is not available [0m [91mtar: ./bin: Directory renamed before its status could be extracted tar: Exiting with failure status due to previous errors [0m
!!! catalyst: Tarball extraction of /root/catalyst/builds/hardened/stage3-amd64-hardened-latest.tar.bz2 to /root/catalyst/tmp/hardened/stage1-amd64-hardened-latest/ failed.
** v.7 adjust snapshot_cache
/root/catalyst/snapshots
Catalyst, version 2.0.18 Copyright 2003-2008 Gentoo Foundation Copyright 2008-2012 various authors Distributed under the GNU General Public License version 2.1
Using command line specified Catalyst configuration file, /root/catalyst.conf Setting sharedir to config file value "/usr/lib64/catalyst" Setting snapshot_cache to config file value "/var/tmp/catalyst/snapshot_cache" Setting hash_function to config file value "crc32" Setting storedir to config file value "/root/catalyst" Setting portdir to config file value "/usr/portage" Setting distdir to config file value "/usr/portage/distfiles" Setting options to config file value "autoresume bindist kerncache pkgcache seedcache snapcache" Autoresuming support enabled. Binary redistribution enabled Kernel cache support enabled. Package cache support enabled. Seed cache support enabled. Snapshot cache support enabled. Envscript support enabled. Using target: stage1 Building natively for amd64 stage1 root path is /tmp/stage1root Source path set to /root/catalyst/builds/hardened/stage3-amd64-hardened-latest.tar.bz2 Caching snapshot to /var/tmp/catalyst/snapshot_cache/latest/ The autoresume path is /root/catalyst/tmp/hardened/.autoresume-stage1-amd64-hardened-latest/ stage1 stage path is /root/catalyst/tmp/hardened/stage1-amd64-hardened-latest/tmp/stage1root
!!! catalyst: Cannot locate specified distdir: /usr/portage/distfiles
** v.6 adjust snapshot_cache
/var/tmp/catalyst/snapshot_cache
Catalyst, version 2.0.18 Copyright 2003-2008 Gentoo Foundation Copyright 2008-2012 various authors Distributed under the GNU General Public License version 2.1
Using command line specified Catalyst configuration file, /root/catalyst.conf Setting sharedir to config file value "/usr/lib64/catalyst" Setting snapshot_cache to config file value "/var/tmp/catalyst/snapshot_cache" Setting hash_function to config file value "crc32" Setting storedir to config file value "/root/catalyst" Setting portdir to config file value "/usr/portage" Setting distdir to config file value "/usr/portage/distfiles" Setting options to config file value "autoresume bindist kerncache pkgcache seedcache snapcache" Autoresuming support enabled. Binary redistribution enabled Kernel cache support enabled. Package cache support enabled. Seed cache support enabled. Snapshot cache support enabled. Envscript support enabled. Using target: stage1 Building natively for amd64 stage1 root path is /tmp/stage1root Source path set to /root/catalyst/builds/hardened/stage3-amd64-hardened-latest.tar.bz2 Caching snapshot to /var/tmp/catalyst/snapshot_cache/latest/ The autoresume path is /root/catalyst/tmp/hardened/.autoresume-stage1-amd64-hardened-latest/ stage1 stage path is /root/catalyst/tmp/hardened/stage1-amd64-hardened-latest/tmp/stage1root
!!! catalyst: Cannot locate specified snapshot_path: /root/catalyst/snapshots/portage-latest.tar.bz2
** v.5 adjust the directory to store snapshot
| | the directory to store snaopshot | |-----+----------------------------------| | v.4 | /root/catalyst/snapshots | | | | | v.5 | /var/tmp/catalyst/snapshots/ |
** v.4
#+HEADER: :tangle Dockerfile #+BEGIN_SRC sh FROM c5766/gentoo-catalyst
ADD build.sh /
RUN /build.sh #+END_SRC
| publishing the above block | | C-u C-c C-v t | | | | M-x magit-tag | | | | git push master | | | | git push a tag | | | | observing autmoated build |
d="/tmp/test"
mkdir $d
cd $d
f1="https://raw.githubusercontent.com/cmchaol/ms4/master/Dockerfile"
f2="https://github.com/cmchaol/ms4/blob/master/build.sh"
wget $f1
wget $f2
chmod +x build.sh
https://docs.docker.com/engine/reference/commandline/build/#git-repositories
cd $d
u="https://github.com/cmchaol/ms4.git"
docker build $u
** v.3
#+HEADER: :tangle Dockerfile #+BEGIN_SRC sh FROM c5766/gentoo-catalyst:v.2
RUN cd /usr/portage;
rm -rf ls -1A | grep -vP '^profiles'
#+END_SRC
| publishing the above block | | C-u C-c C-v t | | | | M-x magit-tag | | | | git push master | | | | git push a tag | | | | observing autmoated build |
** v.2
#+HEADER: :tangle Dockerfile #+BEGIN_SRC sh FROM c5766/gentoo-catalyst:v.2 #+END_SRC
| publishing the above block | | | | M-x magit-tag-popup | | | | git push | | | | observing autmoated build | | |
** v.1
#+HEADER: :tangle Dockerfile #+BEGIN_SRC sh FROM c5766/gentoo-catalyst:v2 #+END_SRC
Build failed: manifest for c5766/gentoo-catalyst:v2 not found
** c5766/gentoo-catalyst
docker run --cap-add SYS_ADMIN -it c5766/gentoo-catalyst /bin/bash
** catalyst.conf
f1="/etc/catalyst/catalyst.conf"
cat $f1
digests="md5 sha1 sha512 whirlpool"
contents="auto"
distdir="/usr/portage/distfiles"
envscript="/etc/catalyst/catalystrc"
hash_function="crc32"
options="autoresume bindist kerncache pkgcache seedcache snapcache"
portdir="/usr/portage"
sharedir="/usr/lib64/catalyst"
snapshot_cache="/var/tmp/catalyst/snapshot_cache"
storedir="/var/tmp/catalyst"
https://github.com/cmchaol/ms4
https://hub.docker.com/r/pallavagarwal07/gentoo-stabilization/~/dockerfile/
Content type
Image
Digest
Size
676.8 MB
Last updated
about 9 years ago
docker pull c5766/ms4