弁財天
ゴフマン「専門家を信じるのではなく、自分自身で考えて判断せよ」
ゴフマン「専門家を信じるのではなく、自分自身で考えて判断せよ」
おいおい、NVIDIAのドライバが動かなくなったぞw。waylandか?wUpgrading Fedora 25 to Fedora 26 https://t.co/7r4oGTI4F8
— Fedora Project (@fedora) 2017年7月11日
# modprobe nvidia modprobe: ERROR: could not insert 'nvidia': Required key not availableBIOS設定のリセットでM/BがWindowsのSecure Boot設定になったのが原因。 つまり、セキュアブートではNVIDIAのドライバは使えない。 うーむ。NVIDIAのカーネルドライバって裏口があるのかすらー?
Redhat公式→I'm concerned about the OutlawCountry exploit
ついにRedhatに RT.comとウィキリークスと Vault7 関連のニュースを読んでLinuxサーバを攻略されてないか心配する質問がくる。
CIAのVault7から流出したOutlawCountryサイバー兵器はカーネルモジュールで、ロードすると F/Wであるiptablesに細工して穴を開けるw。OutlawCountry: ‘CIA hacking tool’ targets Linux operating system https://t.co/HKTOp9XDNm #WikiLeaks pic.twitter.com/QdIDyN340Y
— RT (@RT_com) 2017年6月29日
# dnf upgrade --refresh
# dnf install dnf-plugin-system-upgrade
# rpm -e chromium chromium-libs chromium-libs-media-freeworld
# dnf system-upgrade download --releasever=26
# dnf system-upgrade reboot
いつもトラブるPostgreSQLのアップグレードw。
[root@hoge1 pgsql]# systemctl status postgresql.service ● postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2017-07-13 19:31:55 JST; 20min ago 7月 13 19:31:55 hoge1.localdomain systemd[1]: Starting PostgreSQL database server... 7月 13 19:31:55 hoge1.localdomain postgresql-check-db-dir[1130]: An old version of the database format was found. 7月 13 19:31:55 hoge1.localdomain postgresql-check-db-dir[1130]: Use 'postgresql-setup --upgrade' to upgrade to version '9.6' 7月 13 19:31:55 hoge1.localdomain postgresql-check-db-dir[1130]: See /usr/share/doc/postgresql/README.rpm-dist for more information. 7月 13 19:31:55 hoge1.localdomain systemd[1]: postgresql.service: Control process exited, code=exited status=1 7月 13 19:31:55 hoge1.localdomain systemd[1]: Failed to start PostgreSQL database server. 7月 13 19:31:55 hoge1.localdomain systemd[1]: postgresql.service: Unit entered failed state. 7月 13 19:31:55 hoge1.localdomain systemd[1]: postgresql.service: Failed with result 'exit-code'. [root@hoge1 pgsql]# postgresql-setup --upgrade ERROR: Please install the postgresql-upgrade package. [root@hoge1 pgsql]# dnf install postgresql-upgrade メタデータの期限切れの確認は、0:17:48 時間前の 2017年07月13日 19時35分08秒 に実施しました。 依存性が解決されました。 =================================================================================================================================================================================== パッケージ アーキテクチャ バージョン リポジトリ サイズ =================================================================================================================================================================================== インストール: postgresql-upgrade x86_64 9.6.3-1.fc26 fedora 3.1 M トランザクションの要約 =================================================================================================================================================================================== インストール 1 パッケージ 総ダウンロードサイズ: 3.1 M パッケージ展開後のサイズ: 9.9 M これでいいですか? [y/N]: y パッケージをダウンロードしています: postgresql-upgrade-9.6.3-1.fc26.x86_64.rpm 443 kB/s | 3.1 MB 00:07 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 合計 398 kB/s | 3.1 MB 00:07 トランザクションの確認を実行中... トランザクションの確認に成功しました。 トランザクションのテストを実行中... トランザクションのテストに成功しました。 トランザクションを実行中... Preparing : 1/1 インストール : postgresql-upgrade-9.6.3-1.fc26.x86_64 1/1 検証中 : postgresql-upgrade-9.6.3-1.fc26.x86_64 1/1 インストール済み: postgresql-upgrade.x86_64 9.6.3-1.fc26 完了しました! [root@hoge1 pgsql]# postgresql-setup --upgrade * Upgrading database. * Upgraded OK. WARNING: The configuration files were replaced by default configuration. WARNING: The previous configuration and data are stored in folder WARNING: /var/lib/pgsql/data-old. * See /var/lib/pgsql/upgrade_postgresql.log for details. [root@hoge1 pgsql]#
[root@hoge2 ~]# cat /var/lib/pgsql/upgrade_postgresql.log Performing Consistency Checks ----------------------------- Checking cluster versions ok Checking database user is the install user ok Checking database connection settings ok Checking for prepared transactions ok Checking for reg* system OID user data types ok Checking for contrib/isn with bigint-passing mismatch ok Checking for roles starting with 'pg_' ok Creating dump of global objects ok Creating dump of database schemas dbip icijdb ip2location postgres rollerdb roundcubemail snort template1 ok lc_collate values for database "postgres" do not match: old "ja_JP.UTF-8", new "en_US.UTF-8" Failure, exiting [root@hoge2 ~]#夏なのにヒヤッとする瞬間w
[root@hoge2 roller]# export PGSETUP_INITDB_OPTIONS="--locale=ja_JP.UTF-8" [root@hoge2 roller]# /usr/bin/postgresql-setup --initdb * Initializing database in '/var/lib/pgsql/data' ERROR: Data directory /var/lib/pgsql/data is not empty! ERROR: Initializing database failed, possibly see /var/lib/pgsql/initdb_postgresql.log [root@hoge2 roller]# postgresql-setup --upgrade * Upgrading database. * Upgraded OK. WARNING: The configuration files were replaced by default configuration. WARNING: The previous configuration and data are stored in folder WARNING: /var/lib/pgsql/data-old. * See /var/lib/pgsql/upgrade_postgresql.log for details. [root@hoge2 roller]#
Fedora26でOracle12cが動かないw
$ sqlplus /nolog SQL*Plus: Release 12.2.0.1.0 Production on Fri Jul 14 09:31:14 2017 Copyright (c) 1982, 2016, Oracle. All rights reserved. SQL> connect / as sysdba ERROR: ORA-12547: TNS:lost contact
github.com/oracle/docker-images
# git clone https://github.com/oracle/docker-images.git
空き領域15G以上をチェックする docker-images/OracleDatabase/dockerfiles/12.2.0.1/checkSpace.sh が間違ってるw。
ホスト側/etc/resolv.confを127.0.0.1にしないとdockerのyumでホスト名を解決できなくてこける。
installDBBinaries.shの
# Check whether Perl is working
#chmod ug+x $INSTALL_DIR/installPerl.sh && \
#$ORACLE_HOME/perl/bin/perl -v || \
#$INSTALL_DIR/installPerl.sh
もヘンテコなのでコメントアウトw。
失敗した残骸の削除は
docker images
で探して
docket rmi -f [イメージのID]
で削除。
出来損ないだけどこれはおもろい。
# docker images REPOSITORY TAG IMAGE ID CREATED SIZE導入に失敗した残骸に見えるけどOL7と2a37b2a104d5 29 minutes ago 7.24 GB docker.io/oraclelinux 7-slim 08a01cc7be97 3 weeks ago 114 MB #
# docker run -it 2a37b2a104d5 /bin/bash ←残骸のIMAGE ID(=2a37b2a104d5)に接続。 [oracle@4660befec13d /]$ cd /opt/oracle/install/ [oracle@4660befec13d install]$ ls -l total 3372776 -rwxr-xr-x 1 oracle dba 847 Jul 14 01:32 checkSpace.sh -rw-r--r-- 1 oracle dba 6878 Jul 14 01:18 db_inst.rsp -rwxr-xr-x 1 oracle dba 2058 Jul 14 02:51 installDBBinaries.sh -rwxr-xr-x 1 oracle dba 1065 Jul 14 01:18 installPerl.sh -rw-r--r-- 1 oracle dba 3453696911 Jul 14 01:25 linuxx64_12201_database.zip -rwxr-xr-x 1 oracle dba 888 Jul 14 01:57 setupLinuxEnv.sh [oracle@4660befec13d install]$ [oracle@4660befec13d install]$どうやらこれがdockerの威力らすい。
# docker run -it 08a01cc7be97 /bin/bash ←残骸のIMAGE ID(=08a01cc7be97)に接続。 bash-4.2#これはoracleの各種設定をする前のOL7の状態にrootユーザーでつながる。
# xhost + # docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -it 2a37b2a104d5 /bin/bashなどとやるとX11のGUIアプリが使えるようになる。つまりOracleのGUIインストーラをdocker環境で実行できるw。
forums.docker.com→Increase container volume(disk) size
/etc/sysconfig/docker-storage
--storage-driver=devicemapper --storage-opt dm.basesize=120G
とか編集するのではなくw、
/etc/sysconfig/docker-storage-setup
# Edit this file to override any configuration options specified in # /usr/lib/docker-storage-setup/docker-storage-setup. # # For more details refer to "man docker-storage-setup" ROOT_SIZE=120G
と書くのだとかw。はぁ?/etc/hostsに146Gの/dev/sda4がマウントしてあるように見えるのはバグか?w。[oracle@96b29dead737 /]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/docker-8:4-4458760-087df80304c36560d45dbc8102597ef348af3bc16981e6edcb446347c9168727 10G 3.6G 6.5G 36% / tmpfs 7.9G 0 7.9G 0% /dev tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup /dev/sda4 204G 48G 146G 25% /etc/hosts shm 64M 0 64M 0% /dev/shm tmpfs 7.9G 0 7.9G 0% /sys/firmware [oracle@96b29dead737 /]$
# Pull base image # --------------- #FROM oraclelinux:7-slim FROM oraclelinux:7.3
As a root user, execute the following script(s): 1. /opt/oracle/oraInventory/orainstRoot.sh 2. /opt/oracle/product/12.2.0.1/dbhome_1/root.sh Successfully Setup Software. /opt/oracle/install/installDBBinaries.sh: line 62: syntax error: unexpected end of file Removing intermediate container 752b96b31793 The command '/bin/sh -c $INSTALL_DIR/$INSTALL_DB_BINARIES_FILE SE2' returned a non-zero code: 2 There was an error building the image.おぉぉ。ここまで動くのかぁ。
# docker run -it a9427087870d /bin/bash [oracle@55d938b2f2e1 /]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/docker-8:4-4458760-b8565d45bd378fb7d10f62fa89788e7a2839bfc65baef817316b8664b1a07429 120G 3.8G 117G 4% / tmpfs 7.9G 0 7.9G 0% /dev tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup /dev/sda4 204G 55G 139G 29% /etc/hosts shm 64M 0 64M 0% /dev/shm tmpfs 7.9G 0 7.9G 0% /sys/firmware [oracle@55d938b2f2e1 /]$
# docker run -u root -it a9427087870d /bin/bash [root@3edbdbe9d013 /]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/docker-8:4-4458760-88566be20cb77dfe3f7566684563845d99ef3d0c7496ae2b45f0b2ffca4e3d66 125818880 3907020 121911860 4% / tmpfs 8182400 0 8182400 0% /dev tmpfs 8182400 0 8182400 0% /sys/fs/cgroup /dev/sda4 212871700 56702388 145332988 29% /etc/hosts shm 65536 0 65536 0% /dev/shm tmpfs 8182400 0 8182400 0% /sys/firmware [root@3edbdbe9d013 /]# id uid=0(root) gid=0(root) groups=0(root)コンテナにrootで接続。/etc/hostsにマウントするのは意図的?w
[root@hoge1 dockerfiles]# sh buildDockerImage.sh -s Checking if required packages are present and valid... linuxx64_12201_database.zip: 完了 ========================== DOCKER info: Containers: 33 Running: 0 Paused: 0 Stopped: 33 Images: 0 Server Version: 1.13.1 Storage Driver: devicemapper Pool Name: docker-8:4-4458760-pool Pool Blocksize: 65.54 kB Base Device Size: 128.8 GB Backing Filesystem: xfs Data file: /dev/loop0 Metadata file: /dev/loop1 Data Space Used: 38.79 GB Data Space Total: 107.4 GB Data Space Available: 68.59 GB Metadata Space Used: 24.06 MB Metadata Space Total: 2.147 GB Metadata Space Available: 2.123 GB Thin Pool Minimum Free Space: 10.74 GB Udev Sync Supported: true Deferred Removal Enabled: false Deferred Deletion Enabled: false Deferred Deleted Device Count: 0 Data loop file: /var/lib/docker/devicemapper/devicemapper/data WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device. Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata Library Version: 1.02.137 (2016-11-30) Logging Driver: journald Cgroup Driver: systemd Plugins: Volume: local Network: bridge host macvlan null overlay Authorization: rhel-push-plugin Swarm: inactive Runtimes: oci runc Default Runtime: oci Init Binary: /usr/libexec/docker/docker-init-current containerd version: (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1) runc version: N/A (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f) init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574) Security Options: seccomp WARNING: You're not using the default seccomp profile Profile: /etc/docker/seccomp.json Kernel Version: 4.11.9-300.fc26.x86_64 Operating System: Fedora 26 (Workstation Edition) OSType: linux Architecture: x86_64 Number of Docker Hooks: 3 CPUs: 4 Total Memory: 15.61 GiB Name: b1.localdomain ID: TB7T:5YLQ:TWRU:MZGJ:JTYW:JJU6:3M7X:AU7P:O32X:AEVG:43C3:YVFT Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://registry.fedoraproject.org/v1/ Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false Registries: registry.fedoraproject.org (secure), registry.access.redhat.com (secure), docker.io (secure) ========================== Building image 'oracle/database:12.2.0.1-se2' ... Sending build context to Docker daemon 3.454 GB Step 1/16 : FROM oraclelinux:7 Trying to pull repository registry.fedoraproject.org/oraclelinux ... Trying to pull repository registry.access.redhat.com/oraclelinux ... Trying to pull repository docker.io/library/oraclelinux ... sha256:6fb09585895475b3509034646292d48e8db72ff4610ef7a6757325427b7e9f24: Pulling from docker.io/library/oraclelinux a3909f821b43: Already exists Digest: sha256:6fb09585895475b3509034646292d48e8db72ff4610ef7a6757325427b7e9f24 Status: Downloaded newer image for docker.io/oraclelinux:7 ---> 1046eb4afff7 Step 2/16 : MAINTAINER Gerald Venzlうわー、完了したわ。---> Running in 1e180af785e5 ---> 29c8d266c39c Removing intermediate container 1e180af785e5 Step 3/16 : ENV ORACLE_BASE /opt/oracle ORACLE_HOME /opt/oracle/product/12.2.0.1/dbhome_1 INSTALL_FILE_1 "linuxx64_12201_database.zip" INSTALL_RSP "db_inst.rsp" CONFIG_RSP "dbca.rsp.tmpl" PWD_FILE "setPassword.sh" PERL_INSTALL_FILE "installPerl.sh" RUN_FILE "runOracle.sh" START_FILE "startDB.sh" CREATE_DB_FILE "createDB.sh" SETUP_LINUX_FILE "setupLinuxEnv.sh" CHECK_SPACE_FILE "checkSpace.sh" CHECK_DB_FILE "checkDBStatus.sh" USER_SCRIPTS_FILE "runUserScripts.sh" INSTALL_DB_BINARIES_FILE "installDBBinaries.sh" ---> Running in ab3f7af2518f ---> 02bb9036b6ed Removing intermediate container ab3f7af2518f Step 4/16 : ENV INSTALL_DIR $ORACLE_BASE/install PATH $ORACLE_HOME/bin:$ORACLE_HOME/OPatch/:/usr/sbin:$PATH LD_LIBRARY_PATH $ORACLE_HOME/lib:/usr/lib CLASSPATH $ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib ---> Running in 0b53a138092a ---> f460a21ad79f Removing intermediate container 0b53a138092a Step 5/16 : COPY $INSTALL_FILE_1 $INSTALL_RSP $PERL_INSTALL_FILE $SETUP_LINUX_FILE $CHECK_SPACE_FILE $INSTALL_DB_BINARIES_FILE $INSTALL_DIR/ ---> bec0560dffaf Removing intermediate container ba46772355cc Step 6/16 : COPY $RUN_FILE $START_FILE $CREATE_DB_FILE $CONFIG_RSP $PWD_FILE $CHECK_DB_FILE $USER_SCRIPTS_FILE $ORACLE_BASE/ ---> c10fc0c7a9ed Removing intermediate container 1f8ce942f14a Step 7/16 : RUN chmod ug+x $INSTALL_DIR/*.sh && sync && $INSTALL_DIR/$CHECK_SPACE_FILE && $INSTALL_DIR/$SETUP_LINUX_FILE ---> Running in b8636c881a23 Loaded plugins: ovl, ulninfo Package 2:tar-1.26-31.el7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package gcc.x86_64 0:4.8.5-11.el7 will be installed --> Processing Dependency: cpp = 4.8.5-11.el7 for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: libgomp = 4.8.5-11.el7 for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.8.5-11.el7.x86_64 略 --> Running transaction check ---> Package bind-libs-lite.x86_64 32:9.9.4-38.el7_3.3 will be updated ---> Package bind-libs-lite.x86_64 32:9.9.4-50.el7_3.1 will be an update ---> Package crontabs.noarch 0:1.11-6.20121102git.el7 will be installed ---> Package libICE.x86_64 0:1.0.9-2.el7 will be installed ---> Package libSM.x86_64 0:1.2.2-2.el7 will be installed ---> Package libpath_utils.x86_64 0:0.2.1-27.el7 will be installed ---> Package libtalloc.x86_64 0:2.1.6-1.el7 will be installed ---> Package libtevent.x86_64 0:0.9.28-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: gcc x86_64 4.8.5-11.el7 ol7_latest 16 M openssl x86_64 1:1.0.1e-60.0.1.el7_3.1 ol7_latest 713 k oracle-database-server-12cR2-preinstall x86_64 1.0-2.el7 ol7_latest 18 k unzip x86_64 6.0-16.el7 ol7_latest 169 k wget x86_64 1.14-13.el7 ol7_latest 544 k Installing for dependencies: bind-libs x86_64 32:9.9.4-50.el7_3.1 ol7_latest 1.0 M bind-utils x86_64 32:9.9.4-50.el7_3.1 ol7_latest 202 k compat-libcap1 x86_64 1.10-7.el7 ol7_latest 17 k compat-libstdc++-33 x86_64 3.2.3-72.el7 ol7_latest 190 k cpp x86_64 4.8.5-11.el7 ol7_latest 5.9 M cronie x86_64 1.4.11-14.el7_2.1 ol7_latest 90 k cronie-anacron x86_64 1.4.11-14.el7_2.1 ol7_latest 34 k crontabs noarch 1.11-6.20121102git.el7 ol7_latest 12 k e2fsprogs-libs x86_64 1.42.9-9.el7 ol7_latest 165 k ethtool x86_64 2:4.5-3.el7 ol7_latest 121 k glibc-devel x86_64 2.17-157.el7_3.4 ol7_latest 1.1 M glibc-headers x86_64 2.17-157.el7_3.4 ol7_latest 668 k gssproxy x86_64 0.4.1-13.el7 ol7_latest 87 k kernel-headers x86_64 3.10.0-514.26.2.el7 ol7_latest 4.8 M keyutils x86_64 1.5.8-3.el7 ol7_latest 53 k ksh x86_64 20120801-26.el7 ol7_latest 882 k libICE x86_64 1.0.9-2.el7 ol7_latest 64 k libSM x86_64 1.2.2-2.el7 ol7_latest 39 k libX11 x86_64 1.6.3-3.el7 ol7_latest 605 k libX11-common noarch 1.6.3-3.el7 ol7_latest 161 k libXau x86_64 1.0.8-2.1.el7 ol7_latest 28 k libXext x86_64 1.3.3-3.el7 ol7_latest 38 k libXi x86_64 1.7.4-2.el7 ol7_latest 39 k libXinerama x86_64 1.1.3-2.1.el7 ol7_latest 13 k libXmu x86_64 1.1.2-2.el7 ol7_latest 70 k libXrandr x86_64 1.4.2-2.el7 ol7_latest 25 k libXrender x86_64 0.9.8-2.1.el7 ol7_latest 24 k libXt x86_64 1.1.4-6.1.el7 ol7_latest 167 k libXtst x86_64 1.2.2-2.1.el7 ol7_latest 19 k libXv x86_64 1.0.10-2.el7 ol7_latest 17 k libXxf86dga x86_64 1.1.4-2.1.el7 ol7_latest 18 k libXxf86misc x86_64 1.0.3-7.1.el7 ol7_latest 19 k libXxf86vm x86_64 1.1.3-2.1.el7 ol7_latest 17 k libaio x86_64 0.3.109-13.el7 ol7_latest 24 k libaio-devel x86_64 0.3.109-13.el7 ol7_latest 12 k libbasicobjects x86_64 0.1.1-27.el7 ol7_latest 24 k libcollection x86_64 0.6.2-27.el7 ol7_latest 40 k libdmx x86_64 1.1.3-3.el7 ol7_latest 15 k libevent x86_64 2.0.21-4.el7 ol7_latest 208 k libgomp x86_64 4.8.5-11.el7 ol7_latest 152 k libini_config x86_64 1.3.0-27.el7 ol7_latest 62 k libmpc x86_64 1.0.1-3.el7 ol7_latest 49 k libnfsidmap x86_64 0.25-15.el7 ol7_latest 46 k libpath_utils x86_64 0.2.1-27.el7 ol7_latest 27 k libref_array x86_64 0.1.5-27.el7 ol7_latest 26 k libstdc++-devel x86_64 4.8.5-11.el7 ol7_latest 1.5 M libtalloc x86_64 2.1.6-1.el7 ol7_latest 33 k libtevent x86_64 0.9.28-1.el7 ol7_latest 33 k libtirpc x86_64 0.2.4-0.8.el7_3 ol7_latest 88 k libverto-tevent x86_64 0.2.5-4.el7 ol7_latest 8.4 k libxcb x86_64 1.11-4.el7 ol7_latest 189 k lm_sensors-libs x86_64 3.4.0-4.20160601gitf9185e5.el7 ol7_latest 41 k mailx x86_64 12.5-12.el7_0 ol7_latest 243 k make x86_64 1:3.82-23.el7 ol7_latest 420 k mpfr x86_64 3.1.1-4.el7 ol7_latest 198 k net-tools x86_64 2.0-0.17.20131004git.el7 ol7_latest 303 k nfs-utils x86_64 1:1.3.0-0.33.0.1.el7_3 ol7_latest 377 k psmisc x86_64 22.20-11.el7 ol7_latest 140 k quota x86_64 1:4.01-14.el7 ol7_latest 178 k quota-nls noarch 1:4.01-14.el7 ol7_latest 89 k rpcbind x86_64 0.2.0-38.el7_3.1 ol7_latest 58 k smartmontools x86_64 1:6.2-7.el7 ol7_latest 404 k sysstat x86_64 10.1.5-11.el7 ol7_latest 309 k systemd-sysv x86_64 219-30.0.3.el7_3.9 ol7_latest 64 k tcp_wrappers x86_64 7.6-77.el7 ol7_latest 78 k xorg-x11-utils x86_64 7.5-14.el7 ol7_latest 110 k xorg-x11-xauth x86_64 1:1.0.9-1.el7 ol7_latest 29 k Updating for dependencies: bind-libs-lite x86_64 32:9.9.4-50.el7_3.1 ol7_latest 730 k bind-license noarch 32:9.9.4-50.el7_3.1 ol7_latest 83 k openssl-libs x86_64 1:1.0.1e-60.0.1.el7_3.1 ol7_latest 958 k Transaction Summary ================================================================================ Install 5 Packages (+67 Dependent packages) Upgrade ( 3 Dependent packages) Total download size: 41 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. -------------------------------------------------------------------------------- Total 3.1 MB/s | 41 MB 00:13 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : 1:openssl-libs-1.0.1e-60.0.1.el7_3.1.x86_64 1/78 Installing : mpfr-3.1.1-4.el7.x86_64 2/78 Installing : libmpc-1.0.1-3.el7.x86_64 3/78 Installing : 1:make-3.82-23.el7.x86_64 4/78 Installing : libtirpc-0.2.4-0.8.el7_3.x86_64 5/78 Installing : libXau-1.0.8-2.1.el7.x86_64 6/78 Installing : libxcb-1.11-4.el7.x86_64 7/78 Installing : libcollection-0.6.2-27.el7.x86_64 8/78 Installing : libICE-1.0.9-2.el7.x86_64 9/78 Installing : libref_array-0.1.5-27.el7.x86_64 10/78 Installing : libaio-0.3.109-13.el7.x86_64 11/78 Installing : systemd-sysv-219-30.0.3.el7_3.9.x86_64 12/78 Installing : rpcbind-0.2.0-38.el7_3.1.x86_64 13/78 Installing : libbasicobjects-0.1.1-27.el7.x86_64 14/78 Installing : libtalloc-2.1.6-1.el7.x86_64 15/78 Updating : 32:bind-license-9.9.4-50.el7_3.1.noarch 16/78 Installing : 32:bind-libs-9.9.4-50.el7_3.1.x86_64 17/78 Installing : 32:bind-utils-9.9.4-50.el7_3.1.x86_64 18/78 Installing : libtevent-0.9.28-1.el7.x86_64 19/78 Installing : libverto-tevent-0.2.5-4.el7.x86_64 20/78 Installing : libaio-devel-0.3.109-13.el7.x86_64 21/78 Installing : libSM-1.2.2-2.el7.x86_64 22/78 Installing : cpp-4.8.5-11.el7.x86_64 23/78 Installing : libevent-2.0.21-4.el7.x86_64 24/78 Installing : cronie-1.4.11-14.el7_2.1.x86_64 25/78 Installing : crontabs-1.11-6.20121102git.el7.noarch 26/78 Installing : cronie-anacron-1.4.11-14.el7_2.1.x86_64 27/78 Installing : libstdc++-devel-4.8.5-11.el7.x86_64 28/78 Installing : mailx-12.5-12.el7_0.x86_64 29/78 Installing : 1:smartmontools-6.2-7.el7.x86_64 30/78 Installing : 1:quota-nls-4.01-14.el7.noarch 31/78 Installing : libgomp-4.8.5-11.el7.x86_64 32/78 Installing : ksh-20120801-26.el7.x86_64 33/78 failed to link /usr/share/man/man1/ksh.1.gz -> /etc/alternatives/ksh-man: No such file or directory Installing : libpath_utils-0.2.1-27.el7.x86_64 34/78 Installing : libini_config-1.3.0-27.el7.x86_64 35/78 Installing : gssproxy-0.4.1-13.el7.x86_64 36/78 Installing : tcp_wrappers-7.6-77.el7.x86_64 37/78 Installing : compat-libstdc++-33-3.2.3-72.el7.x86_64 38/78 Installing : keyutils-1.5.8-3.el7.x86_64 39/78 Installing : e2fsprogs-libs-1.42.9-9.el7.x86_64 40/78 Installing : 1:quota-4.01-14.el7.x86_64 41/78 Installing : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64 42/78 Installing : sysstat-10.1.5-11.el7.x86_64 43/78 Installing : compat-libcap1-1.10-7.el7.x86_64 44/78 Installing : libX11-common-1.6.3-3.el7.noarch 45/78 Installing : libX11-1.6.3-3.el7.x86_64 46/78 Installing : libXext-1.3.3-3.el7.x86_64 47/78 Installing : libXi-1.7.4-2.el7.x86_64 48/78 Installing : libXrender-0.9.8-2.1.el7.x86_64 49/78 Installing : libXrandr-1.4.2-2.el7.x86_64 50/78 Installing : libXtst-1.2.2-2.1.el7.x86_64 51/78 Installing : libXxf86misc-1.0.3-7.1.el7.x86_64 52/78 Installing : libXinerama-1.1.3-2.1.el7.x86_64 53/78 Installing : libXv-1.0.10-2.el7.x86_64 54/78 Installing : libXxf86vm-1.1.3-2.1.el7.x86_64 55/78 Installing : libdmx-1.1.3-3.el7.x86_64 56/78 Installing : libXxf86dga-1.1.4-2.1.el7.x86_64 57/78 Installing : xorg-x11-utils-7.5-14.el7.x86_64 58/78 Installing : libXt-1.1.4-6.1.el7.x86_64 59/78 Installing : libXmu-1.1.2-2.el7.x86_64 60/78 Installing : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64 61/78 Installing : 2:ethtool-4.5-3.el7.x86_64 62/78 Installing : unzip-6.0-16.el7.x86_64 63/78 Installing : net-tools-2.0-0.17.20131004git.el7.x86_64 64/78 Installing : kernel-headers-3.10.0-514.26.2.el7.x86_64 65/78 Installing : glibc-headers-2.17-157.el7_3.4.x86_64 66/78 Installing : glibc-devel-2.17-157.el7_3.4.x86_64 67/78 Installing : libnfsidmap-0.25-15.el7.x86_64 68/78 Installing : 1:nfs-utils-1.3.0-0.33.0.1.el7_3.x86_64 69/78 Installing : psmisc-22.20-11.el7.x86_64 70/78 Installing : oracle-database-server-12cR2-preinstall-1.0-2.el7.x86_64 71/78 Installing : gcc-4.8.5-11.el7.x86_64 72/78 Updating : 32:bind-libs-lite-9.9.4-50.el7_3.1.x86_64 73/78 Installing : 1:openssl-1.0.1e-60.0.1.el7_3.1.x86_64 74/78 Installing : wget-1.14-13.el7.x86_64 75/78 install-info: /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory) Cleanup : 32:bind-libs-lite-9.9.4-38.el7_3.3.x86_64 76/78 Cleanup : 32:bind-license-9.9.4-38.el7_3.3.noarch 77/78 Cleanup : 1:openssl-libs-1.0.1e-60.el7_3.1.x86_64 78/78 Verifying : libXext-1.3.3-3.el7.x86_64 1/78 Verifying : libXxf86misc-1.0.3-7.1.el7.x86_64 2/78 Verifying : psmisc-22.20-11.el7.x86_64 3/78 Verifying : libnfsidmap-0.25-15.el7.x86_64 4/78 Verifying : kernel-headers-3.10.0-514.26.2.el7.x86_64 5/78 Verifying : 32:bind-license-9.9.4-50.el7_3.1.noarch 6/78 Verifying : libXinerama-1.1.3-2.1.el7.x86_64 7/78 Verifying : libini_config-1.3.0-27.el7.x86_64 8/78 Verifying : 32:bind-libs-9.9.4-50.el7_3.1.x86_64 9/78 Verifying : libXtst-1.2.2-2.1.el7.x86_64 10/78 Verifying : libtalloc-2.1.6-1.el7.x86_64 11/78 Verifying : net-tools-2.0-0.17.20131004git.el7.x86_64 12/78 Verifying : libtevent-0.9.28-1.el7.x86_64 13/78 Verifying : 32:bind-libs-lite-9.9.4-50.el7_3.1.x86_64 14/78 Verifying : 1:quota-4.01-14.el7.x86_64 15/78 Verifying : cpp-4.8.5-11.el7.x86_64 16/78 Verifying : libXv-1.0.10-2.el7.x86_64 17/78 Verifying : libXxf86vm-1.1.3-2.1.el7.x86_64 18/78 Verifying : 1:nfs-utils-1.3.0-0.33.0.1.el7_3.x86_64 19/78 Verifying : glibc-devel-2.17-157.el7_3.4.x86_64 20/78 Verifying : unzip-6.0-16.el7.x86_64 21/78 Verifying : libverto-tevent-0.2.5-4.el7.x86_64 22/78 Verifying : libX11-1.6.3-3.el7.x86_64 23/78 Verifying : libXrandr-1.4.2-2.el7.x86_64 24/78 Verifying : 32:bind-utils-9.9.4-50.el7_3.1.x86_64 25/78 Verifying : 1:openssl-libs-1.0.1e-60.0.1.el7_3.1.x86_64 26/78 Verifying : libbasicobjects-0.1.1-27.el7.x86_64 27/78 Verifying : 2:ethtool-4.5-3.el7.x86_64 28/78 Verifying : wget-1.14-13.el7.x86_64 29/78 Verifying : systemd-sysv-219-30.0.3.el7_3.9.x86_64 30/78 Verifying : glibc-headers-2.17-157.el7_3.4.x86_64 31/78 Verifying : libX11-common-1.6.3-3.el7.noarch 32/78 Verifying : libXrender-0.9.8-2.1.el7.x86_64 33/78 Verifying : libaio-0.3.109-13.el7.x86_64 34/78 Verifying : libref_array-0.1.5-27.el7.x86_64 35/78 Verifying : rpcbind-0.2.0-38.el7_3.1.x86_64 36/78 Verifying : oracle-database-server-12cR2-preinstall-1.0-2.el7.x86_64 37/78 Verifying : libdmx-1.1.3-3.el7.x86_64 38/78 Verifying : 1:smartmontools-6.2-7.el7.x86_64 39/78 Verifying : gssproxy-0.4.1-13.el7.x86_64 40/78 Verifying : crontabs-1.11-6.20121102git.el7.noarch 41/78 Verifying : libevent-2.0.21-4.el7.x86_64 42/78 Verifying : xorg-x11-utils-7.5-14.el7.x86_64 43/78 Verifying : compat-libcap1-1.10-7.el7.x86_64 44/78 Verifying : libICE-1.0.9-2.el7.x86_64 45/78 Verifying : libaio-devel-0.3.109-13.el7.x86_64 46/78 Verifying : libmpc-1.0.1-3.el7.x86_64 47/78 Verifying : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64 48/78 Verifying : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64 49/78 Verifying : libXt-1.1.4-6.1.el7.x86_64 50/78 Verifying : cronie-1.4.11-14.el7_2.1.x86_64 51/78 Verifying : e2fsprogs-libs-1.42.9-9.el7.x86_64 52/78 Verifying : libcollection-0.6.2-27.el7.x86_64 53/78 Verifying : libXi-1.7.4-2.el7.x86_64 54/78 Verifying : 1:openssl-1.0.1e-60.0.1.el7_3.1.x86_64 55/78 Verifying : libXau-1.0.8-2.1.el7.x86_64 56/78 Verifying : libSM-1.2.2-2.el7.x86_64 57/78 Verifying : cronie-anacron-1.4.11-14.el7_2.1.x86_64 58/78 Verifying : libXxf86dga-1.1.4-2.1.el7.x86_64 59/78 Verifying : mpfr-3.1.1-4.el7.x86_64 60/78 Verifying : keyutils-1.5.8-3.el7.x86_64 61/78 Verifying : compat-libstdc++-33-3.2.3-72.el7.x86_64 62/78 Verifying : tcp_wrappers-7.6-77.el7.x86_64 63/78 Verifying : libtirpc-0.2.4-0.8.el7_3.x86_64 64/78 Verifying : libpath_utils-0.2.1-27.el7.x86_64 65/78 Verifying : ksh-20120801-26.el7.x86_64 66/78 Verifying : libgomp-4.8.5-11.el7.x86_64 67/78 Verifying : 1:quota-nls-4.01-14.el7.noarch 68/78 Verifying : 1:make-3.82-23.el7.x86_64 69/78 Verifying : sysstat-10.1.5-11.el7.x86_64 70/78 Verifying : gcc-4.8.5-11.el7.x86_64 71/78 Verifying : libXmu-1.1.2-2.el7.x86_64 72/78 Verifying : mailx-12.5-12.el7_0.x86_64 73/78 Verifying : libstdc++-devel-4.8.5-11.el7.x86_64 74/78 Verifying : libxcb-1.11-4.el7.x86_64 75/78 Verifying : 1:openssl-libs-1.0.1e-60.el7_3.1.x86_64 76/78 Verifying : 32:bind-license-9.9.4-38.el7_3.3.noarch 77/78 Verifying : 32:bind-libs-lite-9.9.4-38.el7_3.3.x86_64 78/78 Installed: gcc.x86_64 0:4.8.5-11.el7 openssl.x86_64 1:1.0.1e-60.0.1.el7_3.1 oracle-database-server-12cR2-preinstall.x86_64 0:1.0-2.el7 unzip.x86_64 0:6.0-16.el7 wget.x86_64 0:1.14-13.el7 Dependency Installed: bind-libs.x86_64 32:9.9.4-50.el7_3.1 bind-utils.x86_64 32:9.9.4-50.el7_3.1 compat-libcap1.x86_64 0:1.10-7.el7 compat-libstdc++-33.x86_64 0:3.2.3-72.el7 cpp.x86_64 0:4.8.5-11.el7 cronie.x86_64 0:1.4.11-14.el7_2.1 cronie-anacron.x86_64 0:1.4.11-14.el7_2.1 crontabs.noarch 0:1.11-6.20121102git.el7 e2fsprogs-libs.x86_64 0:1.42.9-9.el7 ethtool.x86_64 2:4.5-3.el7 glibc-devel.x86_64 0:2.17-157.el7_3.4 glibc-headers.x86_64 0:2.17-157.el7_3.4 gssproxy.x86_64 0:0.4.1-13.el7 kernel-headers.x86_64 0:3.10.0-514.26.2.el7 keyutils.x86_64 0:1.5.8-3.el7 ksh.x86_64 0:20120801-26.el7 libICE.x86_64 0:1.0.9-2.el7 libSM.x86_64 0:1.2.2-2.el7 libX11.x86_64 0:1.6.3-3.el7 libX11-common.noarch 0:1.6.3-3.el7 libXau.x86_64 0:1.0.8-2.1.el7 libXext.x86_64 0:1.3.3-3.el7 libXi.x86_64 0:1.7.4-2.el7 libXinerama.x86_64 0:1.1.3-2.1.el7 libXmu.x86_64 0:1.1.2-2.el7 libXrandr.x86_64 0:1.4.2-2.el7 libXrender.x86_64 0:0.9.8-2.1.el7 libXt.x86_64 0:1.1.4-6.1.el7 libXtst.x86_64 0:1.2.2-2.1.el7 libXv.x86_64 0:1.0.10-2.el7 libXxf86dga.x86_64 0:1.1.4-2.1.el7 libXxf86misc.x86_64 0:1.0.3-7.1.el7 libXxf86vm.x86_64 0:1.1.3-2.1.el7 libaio.x86_64 0:0.3.109-13.el7 libaio-devel.x86_64 0:0.3.109-13.el7 libbasicobjects.x86_64 0:0.1.1-27.el7 libcollection.x86_64 0:0.6.2-27.el7 libdmx.x86_64 0:1.1.3-3.el7 libevent.x86_64 0:2.0.21-4.el7 libgomp.x86_64 0:4.8.5-11.el7 libini_config.x86_64 0:1.3.0-27.el7 libmpc.x86_64 0:1.0.1-3.el7 libnfsidmap.x86_64 0:0.25-15.el7 libpath_utils.x86_64 0:0.2.1-27.el7 libref_array.x86_64 0:0.1.5-27.el7 libstdc++-devel.x86_64 0:4.8.5-11.el7 libtalloc.x86_64 0:2.1.6-1.el7 libtevent.x86_64 0:0.9.28-1.el7 libtirpc.x86_64 0:0.2.4-0.8.el7_3 libverto-tevent.x86_64 0:0.2.5-4.el7 libxcb.x86_64 0:1.11-4.el7 lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 mailx.x86_64 0:12.5-12.el7_0 make.x86_64 1:3.82-23.el7 mpfr.x86_64 0:3.1.1-4.el7 net-tools.x86_64 0:2.0-0.17.20131004git.el7 nfs-utils.x86_64 1:1.3.0-0.33.0.1.el7_3 psmisc.x86_64 0:22.20-11.el7 quota.x86_64 1:4.01-14.el7 quota-nls.noarch 1:4.01-14.el7 rpcbind.x86_64 0:0.2.0-38.el7_3.1 smartmontools.x86_64 1:6.2-7.el7 sysstat.x86_64 0:10.1.5-11.el7 systemd-sysv.x86_64 0:219-30.0.3.el7_3.9 tcp_wrappers.x86_64 0:7.6-77.el7 xorg-x11-utils.x86_64 0:7.5-14.el7 xorg-x11-xauth.x86_64 1:1.0.9-1.el7 Dependency Updated: bind-libs-lite.x86_64 32:9.9.4-50.el7_3.1 bind-license.noarch 32:9.9.4-50.el7_3.1 openssl-libs.x86_64 1:1.0.1e-60.0.1.el7_3.1 Complete! Loaded plugins: ovl, ulninfo Cleaning repos: ol7_UEKR4 ol7_latest Cleaning up everything ---> 6310d0f6fe0b Removing intermediate container b8636c881a23 Step 8/16 : USER oracle ---> Running in 03777e813ab2 ---> 85b747cba62a Removing intermediate container 03777e813ab2 Step 9/16 : RUN $INSTALL_DIR/$INSTALL_DB_BINARIES_FILE SE2 ---> Running in 05487faad24c Archive: linuxx64_12201_database.zip creating: database/ creating: database/sshsetup/ inflating: database/sshsetup/sshUserSetup.sh creating: database/rpm/ 略 inflating: database/stage/Components/oracle.rdbms.dv/12.2.0.1.0/1/DataFiles/filegroup1.jar creating: database/stage/Components/oracle.blaslapack/ creating: database/stage/Components/oracle.blaslapack/12.2.0.1.0/ creating: database/stage/Components/oracle.blaslapack/12.2.0.1.0/1/ creating: database/stage/Components/oracle.blaslapack/12.2.0.1.0/1/DataFiles/ inflating: database/stage/Components/oracle.blaslapack/12.2.0.1.0/1/DataFiles/filegroup3.jar inflating: database/stage/shiphomeinfo.properties creating: database/stage/globalvariables/ inflating: database/stage/globalvariables/variable.properties inflating: database/stage/globalvariables/globalvar.xml inflating: database/stage/install1.jar inflating: database/runInstaller Starting Oracle Universal Installer... Checking Temp space: must be greater than 500 MB. Actual 118679 MB Passed Checking swap space: must be greater than 150 MB. Actual 22249 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-07-14_07-11-10AM. Please wait ...[WARNING] [INS-32055] The Central Inventory is located in the Oracle base. ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory. You can find the log of this install session at: /opt/oracle/oraInventory/logs/installActions2017-07-14_07-11-10AM.log The installation of Oracle Database 12c was successful. Please check '/opt/oracle/oraInventory/logs/silentInstall2017-07-14_07-11-10AM.log' for more details. As a root user, execute the following script(s): 1. /opt/oracle/oraInventory/orainstRoot.sh 2. /opt/oracle/product/12.2.0.1/dbhome_1/root.sh Successfully Setup Software. ---> 04191c36d66f Removing intermediate container 05487faad24c Step 10/16 : USER root ---> Running in 67d350a642d0 ---> 6793c94ccb19 Removing intermediate container 67d350a642d0 Step 11/16 : RUN $ORACLE_BASE/oraInventory/orainstRoot.sh && $ORACLE_HOME/root.sh && rm -rf $INSTALL_DIR ---> Running in 01adbdc8b579 Changing permissions of /opt/oracle/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /opt/oracle/oraInventory to dba. The execution of the script is complete. Check /opt/oracle/product/12.2.0.1/dbhome_1/install/root_61d5e8e70e68_2017-07-14_07-16-21-923842371.log for the output of root script ---> 2de6b9a54fc6 Removing intermediate container 01adbdc8b579 Step 12/16 : USER oracle ---> Running in 8d56c7d32bce ---> 88293d398e61 Removing intermediate container 8d56c7d32bce Step 13/16 : WORKDIR /home/oracle ---> 7d83573cf3fa Removing intermediate container e6e0243aada0 Step 14/16 : VOLUME $ORACLE_BASE/oradata ---> Running in a46fb65dcb5d ---> b26a827af614 Removing intermediate container a46fb65dcb5d Step 15/16 : EXPOSE 1521 5500 ---> Running in 1dd92128f10b ---> 184eb9c2766f Removing intermediate container 1dd92128f10b Step 16/16 : CMD exec $ORACLE_BASE/$RUN_FILE ---> Running in 984ce91ca92b ---> 8f9c0f826391 Removing intermediate container 984ce91ca92b Successfully built 8f9c0f826391 Oracle Database Docker Image for 'se2' version 12.2.0.1 is ready to be extended: --> oracle/database:12.2.0.1-se2 Build completed in 694 seconds. [root@hoge1 dockerfiles]#
最新のFedora26などサーバー環境に影響されないわずか15GのOracle12cR2データベース環境w。 さすがCIA。拍手w。
# docker images REPOSITORY TAG IMAGE ID CREATED SIZE oracle/database 12.2.0.1-se2 8f9c0f826391 9 minutes ago 14.9 GB docker.io/oraclelinux 7 1046eb4afff7 3 days ago 225 MB #
Javaのビルド環境でMavenてのがあって、あちこちネットからダウンロードしてビルドするのだけど、 dockerはインフラのMavenみたいなツールw。
Bonaponta in PostgreSQL 2017年7月13日 午後 08:03 JST