Skip to content

Instantly share code, notes, and snippets.

@ytnobody
Created July 8, 2014 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ytnobody/cd2d2657f8e87155e88a to your computer and use it in GitHub Desktop.
Save ytnobody/cd2d2657f8e87155e88a to your computer and use it in GitHub Desktop.
ytnobody@ytnobody-virtual-machine:~/vznope-bash$ cat centos-mysql
create centos@6
set --nameserver 8.8.8.8
start
exec yum -y update
exec yum -y install mysql-server
ytnobody@ytnobody-virtual-machine:~/vznope-bash$ vzn build 102 < centos-mysql
---
RUN: create centos@6
Name mel_arcade assigned
Creating container private area (centos-6-x86_64)
Performing postcreate actions
CT configuration saved to /etc/vz/conf/102.conf
Container private area was created
Initialized empty Git repository in /var/share/vzn/meta/102/.git/
[master (root-commit) c481ab8] create
1 file changed, 1 insertion(+)
create mode 100644 vznfile
---
RUN: set --nameserver 8.8.8.8
CT configuration saved to /etc/vz/conf/102.conf
[master d412acc] set --nameserver 8.8.8.8
1 file changed, 1 insertion(+)
---
RUN: start
Starting container...
Container is mounted
Adding IP address(es): 169.254.32.102
Setting CPU units: 1000
Container start in progress...
ping check to 169.254.32.102
network ok
[master b6764d6] start
1 file changed, 1 insertion(+)
---
RUN: exec yum -y update
Loaded plugins: fastestmirror
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package audit-libs.x86_64 0:2.2-2.el6 will be updated
---> Package audit-libs.x86_64 0:2.2-4.el6_5 will be an update
---> Package avahi-libs.x86_64 0:0.6.25-12.el6 will be updated
---> Package avahi-libs.x86_64 0:0.6.25-12.el6_5.1 will be an update
---> Package coreutils.x86_64 0:8.4-31.el6_5.1 will be updated
---> Package coreutils.x86_64 0:8.4-31.el6_5.2 will be an update
---> Package coreutils-libs.x86_64 0:8.4-31.el6_5.1 will be updated
---> Package coreutils-libs.x86_64 0:8.4-31.el6_5.2 will be an update
---> Package curl.x86_64 0:7.19.7-37.el6_4 will be updated
---> Package curl.x86_64 0:7.19.7-37.el6_5.3 will be an update
---> Package glibc.i686 0:2.12-1.132.el6_5.1 will be updated
---> Package glibc.x86_64 0:2.12-1.132.el6_5.1 will be updated
---> Package glibc.i686 0:2.12-1.132.el6_5.2 will be an update
---> Package glibc.x86_64 0:2.12-1.132.el6_5.2 will be an update
---> Package glibc-common.x86_64 0:2.12-1.132.el6_5.1 will be updated
---> Package glibc-common.x86_64 0:2.12-1.132.el6_5.2 will be an update
---> Package gnutls.x86_64 0:2.8.5-13.el6_5 will be updated
---> Package gnutls.x86_64 0:2.8.5-14.el6_5 will be an update
---> Package iproute.x86_64 0:2.6.32-31.el6.1 will be updated
---> Package iproute.x86_64 0:2.6.32-32.1.el6 will be an update
---> Package libcurl.x86_64 0:7.19.7-37.el6_4 will be updated
---> Package libcurl.x86_64 0:7.19.7-37.el6_5.3 will be an update
---> Package libtasn1.x86_64 0:2.3-3.el6_2.1 will be updated
---> Package libtasn1.x86_64 0:2.3-6.el6_5 will be an update
---> Package libtirpc.x86_64 0:0.2.1-6.el6_5.1 will be updated
---> Package libtirpc.x86_64 0:0.2.1-6.el6_5.2 will be an update
---> Package libxml2.i686 0:2.7.6-14.el6 will be updated
---> Package libxml2.x86_64 0:2.7.6-14.el6 will be updated
---> Package libxml2.i686 0:2.7.6-14.el6_5.2 will be an update
---> Package libxml2.x86_64 0:2.7.6-14.el6_5.2 will be an update
---> Package nscd.x86_64 0:2.12-1.132.el6_5.1 will be updated
---> Package nscd.x86_64 0:2.12-1.132.el6_5.2 will be an update
---> Package openssl.x86_64 0:1.0.1e-16.el6_5.7 will be updated
---> Package openssl.x86_64 0:1.0.1e-16.el6_5.14 will be an update
---> Package tzdata.noarch 0:2014b-1.el6 will be updated
---> Package tzdata.noarch 0:2014e-1.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
audit-libs x86_64 2.2-4.el6_5 updates 60 k
avahi-libs x86_64 0.6.25-12.el6_5.1 updates 54 k
coreutils x86_64 8.4-31.el6_5.2 updates 3.0 M
coreutils-libs x86_64 8.4-31.el6_5.2 updates 50 k
curl x86_64 7.19.7-37.el6_5.3 updates 194 k
glibc i686 2.12-1.132.el6_5.2 updates 4.3 M
glibc x86_64 2.12-1.132.el6_5.2 updates 3.8 M
glibc-common x86_64 2.12-1.132.el6_5.2 updates 14 M
gnutls x86_64 2.8.5-14.el6_5 updates 346 k
iproute x86_64 2.6.32-32.1.el6 vz-updates 364 k
libcurl x86_64 7.19.7-37.el6_5.3 updates 166 k
libtasn1 x86_64 2.3-6.el6_5 updates 238 k
libtirpc x86_64 0.2.1-6.el6_5.2 updates 79 k
libxml2 i686 2.7.6-14.el6_5.2 updates 800 k
libxml2 x86_64 2.7.6-14.el6_5.2 updates 800 k
nscd x86_64 2.12-1.132.el6_5.2 updates 219 k
openssl x86_64 1.0.1e-16.el6_5.14 updates 1.5 M
tzdata noarch 2014e-1.el6 updates 453 k
Transaction Summary
================================================================================
Upgrade 18 Package(s)
Total download size: 31 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 780 kB/s | 31 MB 00:40
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
Package: centos-release-6-5.el6.centos.11.2.x86_64 (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : tzdata-2014e-1.el6.noarch 1/36
Updating : glibc-2.12-1.132.el6_5.2.x86_64 2/36
Updating : glibc-common-2.12-1.132.el6_5.2.x86_64 3/36
Updating : coreutils-8.4-31.el6_5.2.x86_64 4/36
Updating : coreutils-libs-8.4-31.el6_5.2.x86_64 5/36
Updating : libtasn1-2.3-6.el6_5.x86_64 6/36
Updating : libcurl-7.19.7-37.el6_5.3.x86_64 7/36
Updating : audit-libs-2.2-4.el6_5.x86_64 8/36
Updating : nscd-2.12-1.132.el6_5.2.x86_64 9/36
Updating : curl-7.19.7-37.el6_5.3.x86_64 10/36
Updating : gnutls-2.8.5-14.el6_5.x86_64 11/36
Updating : openssl-1.0.1e-16.el6_5.14.x86_64 12/36
Updating : iproute-2.6.32-32.1.el6.x86_64 13/36
Updating : libxml2-2.7.6-14.el6_5.2.x86_64 14/36
Updating : libtirpc-0.2.1-6.el6_5.2.x86_64 15/36
Updating : avahi-libs-0.6.25-12.el6_5.1.x86_64 16/36
Updating : glibc-2.12-1.132.el6_5.2.i686 17/36
Updating : libxml2-2.7.6-14.el6_5.2.i686 18/36
Cleanup : nscd-2.12-1.132.el6_5.1.x86_64 19/36
Cleanup : openssl-1.0.1e-16.el6_5.7.x86_64 20/36
Cleanup : gnutls-2.8.5-13.el6_5.x86_64 21/36
Cleanup : curl-7.19.7-37.el6_4.x86_64 22/36
Cleanup : libxml2-2.7.6-14.el6 23/36
Cleanup : glibc-2.12-1.132.el6_5.1 24/36
Cleanup : coreutils-libs-8.4-31.el6_5.1.x86_64 25/36
Cleanup : coreutils-8.4-31.el6_5.1.x86_64 26/36
Cleanup : libcurl-7.19.7-37.el6_4.x86_64 27/36
Cleanup : libtasn1-2.3-3.el6_2.1.x86_64 28/36
Cleanup : audit-libs-2.2-2.el6.x86_64 29/36
Cleanup : avahi-libs-0.6.25-12.el6.x86_64 30/36
Cleanup : libtirpc-0.2.1-6.el6_5.1.x86_64 31/36
Cleanup : libxml2-2.7.6-14.el6 32/36
Cleanup : iproute-2.6.32-31.el6.1.x86_64 33/36
Cleanup : glibc-common-2.12-1.132.el6_5.1.x86_64 34/36
Cleanup : glibc-2.12-1.132.el6_5.1 35/36
Cleanup : tzdata-2014b-1.el6.noarch 36/36
Verifying : curl-7.19.7-37.el6_5.3.x86_64 1/36
Verifying : iproute-2.6.32-32.1.el6.x86_64 2/36
Verifying : libtasn1-2.3-6.el6_5.x86_64 3/36
Verifying : glibc-2.12-1.132.el6_5.2.i686 4/36
Verifying : tzdata-2014e-1.el6.noarch 5/36
Verifying : libxml2-2.7.6-14.el6_5.2.x86_64 6/36
Verifying : glibc-2.12-1.132.el6_5.2.x86_64 7/36
Verifying : libtirpc-0.2.1-6.el6_5.2.x86_64 8/36
Verifying : libxml2-2.7.6-14.el6_5.2.i686 9/36
Verifying : nscd-2.12-1.132.el6_5.2.x86_64 10/36
Verifying : coreutils-8.4-31.el6_5.2.x86_64 11/36
Verifying : gnutls-2.8.5-14.el6_5.x86_64 12/36
Verifying : openssl-1.0.1e-16.el6_5.14.x86_64 13/36
Verifying : avahi-libs-0.6.25-12.el6_5.1.x86_64 14/36
Verifying : coreutils-libs-8.4-31.el6_5.2.x86_64 15/36
Verifying : libcurl-7.19.7-37.el6_5.3.x86_64 16/36
Verifying : glibc-common-2.12-1.132.el6_5.2.x86_64 17/36
Verifying : audit-libs-2.2-4.el6_5.x86_64 18/36
Verifying : gnutls-2.8.5-13.el6_5.x86_64 19/36
Verifying : libtirpc-0.2.1-6.el6_5.1.x86_64 20/36
Verifying : coreutils-8.4-31.el6_5.1.x86_64 21/36
Verifying : iproute-2.6.32-31.el6.1.x86_64 22/36
Verifying : openssl-1.0.1e-16.el6_5.7.x86_64 23/36
Verifying : libtasn1-2.3-3.el6_2.1.x86_64 24/36
Verifying : glibc-common-2.12-1.132.el6_5.1.x86_64 25/36
Verifying : libxml2-2.7.6-14.el6.x86_64 26/36
Verifying : nscd-2.12-1.132.el6_5.1.x86_64 27/36
Verifying : coreutils-libs-8.4-31.el6_5.1.x86_64 28/36
Verifying : tzdata-2014b-1.el6.noarch 29/36
Verifying : glibc-2.12-1.132.el6_5.1.x86_64 30/36
Verifying : audit-libs-2.2-2.el6.x86_64 31/36
Verifying : glibc-2.12-1.132.el6_5.1.i686 32/36
Verifying : curl-7.19.7-37.el6_4.x86_64 33/36
Verifying : libxml2-2.7.6-14.el6.i686 34/36
Verifying : libcurl-7.19.7-37.el6_4.x86_64 35/36
Verifying : avahi-libs-0.6.25-12.el6.x86_64 36/36
Updated:
audit-libs.x86_64 0:2.2-4.el6_5 avahi-libs.x86_64 0:0.6.25-12.el6_5.1
coreutils.x86_64 0:8.4-31.el6_5.2 coreutils-libs.x86_64 0:8.4-31.el6_5.2
curl.x86_64 0:7.19.7-37.el6_5.3 glibc.i686 0:2.12-1.132.el6_5.2
glibc.x86_64 0:2.12-1.132.el6_5.2 glibc-common.x86_64 0:2.12-1.132.el6_5.2
gnutls.x86_64 0:2.8.5-14.el6_5 iproute.x86_64 0:2.6.32-32.1.el6
libcurl.x86_64 0:7.19.7-37.el6_5.3 libtasn1.x86_64 0:2.3-6.el6_5
libtirpc.x86_64 0:0.2.1-6.el6_5.2 libxml2.i686 0:2.7.6-14.el6_5.2
libxml2.x86_64 0:2.7.6-14.el6_5.2 nscd.x86_64 0:2.12-1.132.el6_5.2
openssl.x86_64 0:1.0.1e-16.el6_5.14 tzdata.noarch 0:2014e-1.el6
Complete!
[master c099c6d] exec yum -y update
1 file changed, 1 insertion(+)
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment