Dietrich Schroff

Subscribe to Dietrich Schroff feed
Dietrich Schroffhttps://plus.google.com/101232877473830670008noreply@blogger.comBlogger416125
Updated: 12 hours 33 min ago

Docker: How to build you own container with your own application

Tue, 2018-04-17 12:17
atThere are many tutorials out there, how to create a docker container with a apache webserver inside or a nginx.
But you can hardly find a manual how to build your own docker container without pulling everything from a foreign repository.
Why should you not pull everything from foreign repositories?

You should read this article or this:
But since each phase of the development pipeline is built at a different time, …
…you can’t be sure that the same version of each dependency in the development version also got into your production version.
That is a good point.

As considered in this article you can put some more constraints into your docker file: 
FROM ubuntu:14.04. or even
FROM ubuntu:0bf3461984f2fb18d237995e81faa657aff260a52a795367e6725f0617f7a56cAnd that is the point where i tell you: Create a process to build your own docker containers from scratch and distribute them with your own repository or copy them to all your docker nodes (s. here)

So here the steps to create your own container from a local directory (here ncweb):

# ls -l ncweb/
total 12
-rw-r--r--    1 root     root            90 Nov 26 10:06 Dockerfile
-rw-r--r--    1 root     root           255 Nov 26 11:29 index.html
-rw-r--r--    1 root     root             0 Nov 26 11:29 logfile
-rwxr--r--    1 root     root           176 Nov 26 11:29 ncweb.sh 
The Dockerfile contains the following:

# ls -l ncweb/
alpine:~# cat ncweb/Dockerfile
FROM alpine
WORKDIR /tmp
RUN mkdir ncweb
ADD .  /tmp
ENTRYPOINT [ "/tmp/ncweb.sh" ]
Into this directory you have to put everything you need, e.g. a complete JDK or your binaries or ...

And then change into this directory and build your container:

ncweb# docker build -t ncweb:0.2 .
The distribution to other docker nodes can be done like this:

# docker save ncweb:0.3 | ssh 192.168.178.47 docker load 
For more details read this posting.


Related posts:



Oracle SOA Suite 12c: Invoking a BPEL process via Enterprise Manager (EM)

Sun, 2018-04-15 09:05
After you logged in via http://yourhost:7001/em navigate to "soa-infra":
 Then choose "Deployed Composites":
 There you have to click on your composite (here: "Project1"):
 Choose "Test":
 Go to the bottom of the page and expand the payload:
 There you have  fill in your test string:
 
 And after a click on "Test Web Service"
The response is shown incl. the response time.

To list the audit trails goto "Home-> Flow instances

And choose "search" on the right side:


Oracle VM Server x86: Creation of a virtual machine

Thu, 2018-04-12 14:47
After all these steps
it is possible to create a VM:

 Click the third icon:












And here is the summary:
One thing still missing: I did not put an ISO image into the repository, so this VM has no media to start from. The Import of an ISO image i will post in a week.

Ubuntu: unmet dependencies gparted (libparted-fs-resize0 (>= 3.1))

Sat, 2018-04-07 09:34
After a new ubuntu installation i got the following error:
root@pc:/etc/apt/sources.list.d# apt install   gparted
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.   
Statusinformationen werden eingelesen.... Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 gparted : Hängt ab von: libparted-fs-resize0 (>= 3.1) soll aber nicht installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.or
The following packages have unmet dependencies:
 gparted :
Depends: libglibmm-2.4-1c2a (>= 2.42.0) but 2.39.93-0ubuntu1 is to be installed
 Depends: libparted-fs-resize0 (>= 3.1) but it is not installable
 Depends: libparted2 (>= 3.1) but it is not installable
 Depends: libstdc++6 (>= 4.9) but 4.8.2-19ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.


I tried some solutions like
apt cleanor removing many repositories out of /etc/apt/sources.list and /etc/apt/sources.d but the error still remained.

After some tries i found the solution via these commands:

The installation of libparted-fs-resize0 does not work with the following error:
root@pc:/etc/apt# apt install libparted-fs-resize0
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.     
Statusinformationen werden eingelesen.... Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 libparted-fs-resize0 : Hängt ab von: libparted2 (= 3.2-15) aber 3.2-15ubuntu0.1 soll installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.So i checked this package:

root@pc:/etc/apt# apt-cache policy libparted2
libparted2:
  Installiert:           3.2-15ubuntu0.1
  Installationskandidat: 3.2-15ubuntu0.1
  Versionstabelle:
 *** 3.2-15ubuntu0.1 100
        100 /var/lib/dpkg/status
     3.2-15 500
        500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Hmmm. 2 Versions inside my versions-table. So i removed the local status file:
root@pc:/etc/apt# cd /var/lib/dpkg/
root@pc:/var/lib/dpkg# mv status status.180227
root@pc:/var/lib/dpkg# touch statusAnd after that the problem was gone:
root@pc:/var/lib/dpkg# apt update
root@pc:/var/lib/dpkg# apt install gparted
Here we go:


Oracle VM Server: supported guest systems

Tue, 2018-04-03 04:36
After the installation of


and

the next step is to install a guest. But which operating systems are supported on Oracle VM Server?
Let's look into the official Oracle documentation:
The list of supported operating systems can be found here.


Table 5.1 HVM-Supported Linux Guest Operating Systems
Guest Operating System
HVM 32-bit
HVM 64-bit
Oracle Linux Release 7.x
N/A
Yes
Oracle Linux Release 6.x
Yes
Yes
Oracle Linux Release 5.x
Yes
Yes
Oracle Linux Release 4.x
Yes
Yes
Red Hat Enterprise Linux 7.x
N/A
Yes
Red Hat Enterprise Linux 6.x
Yes
Yes
Red Hat Enterprise Linux 5.x
Yes
Yes
Red Hat Enterprise Linux 4.x
Yes
Yes
CentOS 7.x
N/A
Yes
CentOS 6.x
Yes
Yes
CentOS 5.x
Yes
Yes
CentOS 4.x
Yes
Yes
SUSE Linux Enterprise Server 11.x
No
Yes
SUSE Linux Enterprise Server 12 SP2 or later
No
Yes

Table 5.2 PVHVM-Supported Linux Guest Operating Systems
Guest Operating System
PVHVM 32-bit
PVHVM 64-bit
Oracle Linux Release 7.x
N/A
Yes
Oracle Linux Release 6.x
Yes
Yes
Oracle Linux Release 5.x
Yes
Yes
Oracle Linux Release 4.x
Yes
Yes
Red Hat Enterprise Linux 7.x
N/A
Yes
Red Hat Enterprise Linux 6.x
Yes
Yes
Red Hat Enterprise Linux 5.x
Yes
Yes
Red Hat Enterprise Linux 4.x
Yes
Yes
CentOS 7.x
N/A
Yes
CentOS 6.x
Yes
Yes
CentOS 5.x
Yes
Yes
CentOS 4.x
Yes
Yes
SUSE Linux Enterprise Server 11.x
No
Yes
SUSE Linux Enterprise Server 12 SP2 or later
No
Yes

Table 5.4 CPU Paravirtualized Supported Guest Operating Systems
Guest Operating System
Paravirtualized 32-bit
Paravirtualized 64-bit
Oracle Linux Release 7.x
No
No
Oracle Linux Release 6.x
Yes
Yes
Oracle Linux Release 5.x
Yes
Yes
Oracle Linux Release 4.x
Yes
Yes
Red Hat Enterprise Linux 7.x
No
No
Red Hat Enterprise Linux 6.x
Yes
Yes
Red Hat Enterprise Linux 5.x
Yes
Yes
Red Hat Enterprise Linux 4.x
Yes
Yes
CentOS 7.x
No
No
CentOS 6.x
Yes
Yes
CentOS 5.x
Yes
Yes
CentOS 4.x
Yes
Yes
SUSE Linux Enterprise Server 11.x
No
Yes
SUSE Linux Enterprise Server 12 SP2 or later
No
No

Table 5.5 Microsoft Windows Supported Guest Operating Systems
Guest Operating Systems
64-bit
32-bit
HVM
HVM with Oracle VM Paravirtual Drivers for Microsoft Windows
Microsoft Windows Server 2016
Yes
N/A
Supported
Supported
Microsoft Windows Server 2012 R2
Yes
N/A
Supported
Supported
Microsoft Windows Server 2012
Yes
N/A
Supported
Supported
Microsoft Windows Server 2008 R2 SP1
Yes
N/A
Supported
Supported
Microsoft Windows Server 2008 SP2
Yes
Yes
Supported
Supported
Microsoft Windows Server 2003 R2 SP2
Yes
Yes
Supported
Supported
Microsoft Windows 10
Yes
Yes
Supported
Supported
Microsoft Windows 8.1
Yes
Yes
Supported
Supported
Microsoft Windows 8
Yes
Yes
Supported
Supported
Microsoft Windows 7 SP1
Yes
Yes
Supported
Supported
Microsoft Windows Vista SP2
Yes
Yes
Supported
Supported

These tables are valid for version 3.4 - that means you have to check the support matrix for each version seperatly.

Oracle 12c SOA Suite: Administration via Enterprise Manager

Sat, 2018-03-31 14:20
After

i want to present some screenshots of the web console of the SOA Suite:
http://localhost:7001/emBut first the servers have to be started:
cd /home/oracle/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin
nohup ./startNodeManager.sh &
nohup ./startWeblogic.sh &Now the login is available:

 But there the soa_server1 is still down:


 So let's start this one:
nohup ./startManagedWebLogic.sh soa_server1 http://192.168.178.49:7001
The icon left to "base_domain" (beneath the oracle logo at the top) is the menu:



If you navigate to "soa-infra(soa_server1) you get this frame:






    Oracle SOA Suite 12c: Tokens - To avoid substituting values: define global token variables

    Sat, 2018-03-24 09:15
    Inside the Enterprise Manager (URL: http://yourhost:7001/em) you can configure SOA Suite profiles:

    Choose "Token Configurations"

     ???

    To list the tokens click on "Modify Configuration file":

     To add a token click on the green plus:

     Do not forget to save your changes:


     
    To use the bulk append you have to create a file like this one:




        2000
        weblogic Choose your file "text.xml":
     and click on "Append":


    Java 10 released: java with some enhancements for running inside docker

    Thu, 2018-03-22 16:03
    After the release of Java 9 in october 2017 with its new features
    Oracle released Java 10:
     A short summary of the new feature can be found
    at https://blogs.oracle.com/java-platform-group/introducing-java-se-10
    or you can take a look a the release notes:
    http://www.oracle.com/technetwork/java/javase/10-relnote-issues-4108729.html#NewFeature

    My favourites are:
    • JEP 307 Parallel Full GC for G1  Improves G1 worst-case latencies by making the full GC parallel. The G1 garbage collector is designed to avoid full collections, but when the concurrent collections can't reclaim memory fast enough a fall back full GC will occur. The old implementation of the full GC for G1 used a single threaded mark-sweep-compact algorithm. With JEP 307 the full GC has been parallelized and now use the same amount of parallel worker threads as the young and mixed collections.
    and the docker enhancements:
    • JDK-8146115 Improve docker container detection and resource configuration usage
    The JVM has been modified to be aware that it is running in a Docker container and will extract container specific configuration information instead of querying the operating system. The information being extracted is the number of CPUs and total memory that have been allocated to the container. The total number of CPUs available to the Java process is calculated from any specified cpu sets, cpu shares or cpu quotas. This support is only available on Linux-based platforms. This new support is enabled by default and can be disabled in the command line with the JVM option:
    -XX:-UseContainerSupport
    In addition, this change adds a JVM option that provides the ability to specify the number of CPUs that the JVM will use:
    -XX:ActiveProcessorCount=count
    This count overrides any other automatic CPU detection logic in the JVM.
    • JDK-8186248 Allow more flexibility in selecting Heap % of available RAM
    Three new JVM options have been added to allow Docker container users to gain more fine grained control over the amount of system memory that will be used for the Java Heap:
    -XX:InitialRAMPercentage
    -XX:MaxRAMPercentage
    -XX:MinRAMPercentage
    These options replace the deprecated Fraction forms (-XX:InitialRAMFraction, -XX:MaxRAMFraction, and -XX:MinRAMFraction).
    • JDK-8179498 attach in Linux should be relative to /proc/pid/root and namespace aware
    This bug fix corrects the attach mechanism when trying to attach from a host process to a Java process that is running in a Docker container.

    Oracle VM Server x86: Discovering a server/node + setting up a repository, server pool and networking

    Thu, 2018-03-22 15:32
    Let's put the things together:
    The Oracle VM Manager has to discover the node. Inside the web GUI (https://yourhost:7002/ovm/console)  clickt on the right icon:

    Then give your password and the ip(s):

    And then you can see the node details (if the connections does not fail):

    The next step is to create a repository. To achieve this, you have to add a additional hdd on the oracle VM server/node, without mounting this on the server/node.
    Then disover the local storage:
    After "rescan phyiscal disks" it is possible to create a repository:







    Still something missing: a server pool:



     Attention: Uncheck the "Clustered Server Pool" option:





    And last but not least: networking...

    Check, that your network is available for "Virtual Machine"

     Next posting i will show the creation of a virtual machine...

    AVM: Powerline Repeater / Fritz Repeater

    Sat, 2018-03-17 15:16
    Last weekend my Powerline Adpater 546E broke. I tried some restarts but after 1-5 minutes the WLAN went down and the adapter got really hot.

    Perhaps the missing mesh functionality was due to a hardware problem which caused this total failure.

    Never mind. I ordered a Fritz Box Repeater 1160 and followed the instructions from AVM:
    Note: If your repeater is already connected to your FritzBox and you perform the firmware update >6.90, then you have to do the integration via WPS once again (enable WPS on your FritzBox, then press WPS button on the repeater).

    After that everything was like expected:

    Docker-CE on Ubuntu 17.10 (Artful Aardvark) (2)

    Sat, 2018-03-10 03:42
    Three months ago i installed docker on my ubuntu 17.10. At those days there was no straight forward howto on docher.com.

    Now the installation is listed on docker.com:


    The installation manual can be found here.

    root@zerberus:~# apt-get install apt-transport-https ca-certificates curl   software-properties-common
    root@zerberus:~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
      OK
    root@zerberus:~# apt-key fingerprint 0EBFCD88  pub   rsa4096 2017-02-22 [SCEA]
          9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
      uid        [ unbekannt ] Docker Release (CE deb)
    sub   rsa4096 2017-02-22 [S]
    root@zerberus:~# add-apt-repository \
    >    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    >    $(lsb_release -cs) \
    >    stable"
    root@zerberus:~# apt update

    root@zerberus:~# apt install docker-ceAnd then a check:
    root@zerberus:~# docker versionClient:
     Version:    17.12.0-ce
     API version:    1.35
     Go version:    go1.9.2
     Git commit:    c97c6d6
     Built:    Wed Dec 27 20:11:14 2017
     OS/Arch:    linux/amd64

    Server:
     Engine:
      Version:    17.12.0-ce
      API version:    1.35 (minimum version 1.12)
      Go version:    go1.9.2
      Git commit:    c97c6d6
      Built:    Wed Dec 27 20:09:47 2017
      OS/Arch:    linux/amd64
      Experimental:    false

    Oracle VM x86: Installing Oracle VM Manager (getting the installation media)

    Thu, 2018-03-08 15:12
    If you search for "oracle vm manager" on Oracle Edelivery you will get the following:
     Hmmm...
    Downloading "Oracle VM Manager with Oracle Linux 2.2.0.0.0" will lead to two files with *.img. These files are no cd/dvd images. But you can find a solution here:

    mount -t auto -o loop,offset=$((63*512)) System.img /mnt/System
    But this leads to some files with oc4j containers. 

    So DO NOT search for "Oracle VM Manager". Use as search string only "VM Manager" and here we go:

    Use the "Oracle VM Manager 3.4.4" at the bottom of the page...
    (The installation can be found in this posting)

    Oracle VM x86: Installing Oracle VM Manager

    Thu, 2018-03-08 13:21
    First check the hardware requirements:


    After downloading the right image (please do not laugh, this is really a problem), inside a Oracle Linux the following steps have to be done:

    mount /dev/cdrom /mnt
    mount: /dev/sr0 is write-protected, mounting read-onlyand
    # ls /mnt/
    components       oracle-validated.params  OvmSDK_3.4.4.1709.zip  sample.yml
    createOracle.sh  ovmm-installer.bsx       runInstaller.sh        TRANS.TBLFirst try:
    [root@localhost ~]# /mnt/createOracle.sh
    Missing required package, Oracle VM Manager requires 'iptables-services' to be installed, you can use 'yum install iptables-services' to install it.Ok:
    [root@localhost ~]# yum install iptables-servicesAnd here we go:
    # /mnt/createOracle.sh
    Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
    Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
    Created symlink from /etc/systemd/system/basic.target.wants/iptables.service to /usr/lib/systemd/system/iptables.service.
    Adding group 'oinstall' with gid '54321' ...
    Adding group 'dba'
    Adding user 'oracle' with user id '54321', initial login group 'dba', supplementary group 'oinstall' and  home directory '/home/oracle' ...
    Changing ownership of '/home/oracle' to oracle:dba
    Creating user 'oracle' succeeded ...
    For security reasons, no default password was set for user 'oracle'. If you wish to login as the 'oracle' user, you will need to set a password for this account.
    Verifying user 'oracle' OS prerequisites for Oracle VM Manager ...
    oracle    soft    nofile        8192
    oracle    hard    nofile        65536
    oracle    soft    nproc        2048
    oracle    hard    nproc        16384
    oracle    soft    stack        10240
    oracle    hard    stack        32768
    oracle    soft    core        unlimited
    oracle    hard    core        unlimited
    Setting  user 'oracle' OS limits for Oracle VM Manager ...
    Altered file /etc/security/limits.conf
    Original file backed up at /etc/security/limits.conf.orabackup
    Verifying & setting of user limits succeeded ...
    Creating mountpoint '/u01' ...
    Modifying iptables for OVM
    Adding rules to enable access to:
         7002  : Oracle VM Manager https
           123 : NTP
         10000 : Oracle VM Manager CLI Tool
    Redirecting to /bin/systemctl status iptables.service
    Redirecting to /bin/systemctl status iptables.service
    Redirecting to /bin/systemctl restart iptables.service
    iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
    Redirecting to /bin/systemctl restart iptables.service
    Rules added.Before starting the "runInstaller.sh" i had to install the following packages:
    yum install zip unzip net-tools perl-Data-DumperBut then:
    [root@localhost ~]# /mnt/runInstaller.sh

    Oracle VM Manager Release 3.4.4 Installer

    Oracle VM Manager Installer log file:
    /var/log/ovmm/ovm-manager-3-install-2018-02-22-163152.log

    Please select an installation type:
       1: Install
       2: Upgrade
       3: Uninstall
       4: Help

       Select Number (1-4): 1

    Verifying installation prerequisites ...





    And ready for login:


    Oracle database 18c: Installation via RPM

    Sat, 2018-03-03 13:21
    After the release of 18c i did a short dive into the "guide to new features" announced on oracle.com:

     And take a look, what can be found in "Database Overall -> Install, config, and patch":


    RPM-based Database Installation
    RPM-based Database Installation (RDI) enables an RPM-based installation of the Oracle Database software. Using the rpm-ivh command, an RPM-based database installation performs the preinstallation validations, extracts the packaged software, reassigns the ownership of the extracted software to the preconfigured user and groups, maintains the Oracle inventory, and executes all the root operations required to complete the Oracle Database software installation.
    RPM-based Database Installation enables you to leverage an RPM framework to easily deploy Oracle Database.
    A kind of rpm installation was introduced for the installation of grid infrastructure in 12.2 (oracle documentation): Image based installation
    So no worries, you have to start the runInstaller.sh after rpm -i. But let's see, how you have to specify the Oracle_Home in this rpm-process.

    Oracle VM x86: Installation walkthrough / step by step for a node/server

    Wed, 2018-02-28 13:11
    Last week i tried to setup Oracle VM. For all who are interested, here a short walkthrough.
    First the VirtualBox Setup: The VM which should contain the Oracle VM server:








    Let's boot:























    Next reboot:


     And here we go:



    Ubuntu Kernel: Adding a new menuentry as default before menuentry 'Ubuntu' (grub)

    Sun, 2018-02-25 15:27
    After the problem with s2disk/hibernate on my Ubuntu 17.10 i wanted to change the grub boot menu:
    I wanted to add my new default kernel at the beginning  - before the 'Ubuntu' menuentry.





    Adding the menuentry inside /boot/grub/grub.cfg does not work, because after the first kernel update the command update-grub will overwrite all changes.

    Easiest way:
    Go to /etc/grub.d/ and move

    mv 40_custom 09_customInside 09_custom add your new menuentry (just copy the one you want from /boot/grub/grub.cfg):
    root@zerberus:/etc/grub.d# cat 09_custom
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
            menuentry 'Ubuntu, mit Linux 4.13.0-17-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.13.0-17-generic-advanced-40d34826-4f8a-aefc' {
                    recordfail
                    load_video
                    gfxmode $linux_gfx_mode
                    insmod gzio
                    if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
                    insmod part_gpt
                    insmod ext2
                    set root='hd0,gpt5'
                    if [ x$feature_platform_search_hint = xy ]; then
                      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  40d34826-4f8a-aefc-d422f755d339
                    else
                      search --no-floppy --fs-uuid --set=root 40d34826-4f8a-aefc                fi
                    echo    'Linux 4.13.0-17-generic wird geladen …'
                    linux   /boot/vmlinuz-4.13.0-17-generic root=UUID=40d34826-4f8a-aefc ro  noplymouth resume=UUID=709f3f5a-5e73-b42d-b93915cea971
                    echo    'Initiale Ramdisk wird geladen …'
                    initrd  /boot/initrd.img-4.13.0-17-generic
            }
     And then run update-grub once again and you are done....




    Oracle Database 18c released! Image-based Installation?

    Tue, 2018-02-20 14:19
    Today i discovered on otn.oracle.com --> database:

    The downloads-page looks like the last weeks - 12c is the default...

    ... but the documentations tab lists 18c:

    blogs.oracle.com shows the following:


    So the "cloud first" strategy is still in place (by the way: is this something like "america first"?).

    The installation procedure looks strange:
    Starting with Oracle Database 18c, installation and configuration of Oracle Database software is simplified with image-based installation.
    To install Oracle Database, create the new Oracle home, extract the image file into the newly-created Oracle home, and run the setup wizard to register the Oracle Database product.
    Using image-based installation, you can install and upgrade Oracle Database for single-instance and cluster configurations.
    Oracle shows up this:
     But there is no 18c on OTN for download...



    Firefox tab crashes by loading maps.google.com on ubuntu 16.04

    Sun, 2018-02-18 10:21
    On a ubuntu 16.04 system firefox crashes by loading maps.google.com:

     The only way to fix this was going to "about:config":

    On this page search for "webgl.disabled" and change the value from false
    to true:

    After that, maps.google.com loads without any problem...

    Docker-Machine: how to create a docker vm on a remote virtualbox server

    Sun, 2018-02-11 01:37
    After doing some first steps with docker, i wanted to test docker-swarm. Because of the limited resources of my notebook, i was looking for a Linux with a minimal footprint. In the context of setting up VMs for docker-swarm i found a log of articles about doing that with the tool docker-machine.
    It sounds like this tool can create VMs just with one command. (here the documentation).

    So let's give it a try:
    (You have to install docker-machine first, but you do not need to install docker itself)
    ~$ docker-machine create --driver virtualbox test
    Creating CA: /home/schroff/.docker/machine/certs/ca.pem
    Creating client certificate: /home/schroff/.docker/machine/certs/cert.pem
    Running pre-create checks...
    (test) Image cache directory does not exist, creating it at /home/schroff/.docker/machine/cache...
    (test) No default Boot2Docker ISO found locally, downloading the latest release...
    (test) Latest release for github.com/boot2docker/boot2docker is v17.11.0-ce
    (test) Downloading /home/schroff/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v17.11.0-ce/boot2docker.iso...
    (test) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
    Creating machine...
    (test) Copying /home/schroff/.docker/machine/cache/boot2docker.iso to /home/schroff/.docker/machine/machines/test/boot2docker.iso...
    (test) Creating VirtualBox VM...
    (test) Creating SSH key...
    (test) Starting the VM...
    (test) Check network to re-create if needed...
    (test) Found a new host-only adapter: "vboxnet0"
    (test) Waiting for an IP...
    Waiting for machine to be running, this may take a few minutes...
    Detecting operating system of created instance...
    Waiting for SSH to be available...
    Detecting the provisioner...
    Provisioning with boot2docker...
    Copying certs to the local machine directory...
    Copying certs to the remote machine...
    Setting Docker configuration on the remote daemon...
    Checking connection to Docker...
    Docker is up and running!
    To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env testWow.
    After this command inside my virtualbox a new machine shows up with 1GB RAM, 20 GB HDD (dynamic allocated), 2 network adapters (1x NAT, 1x host only).




    But it is not possible to create VMs on a remote Virtualbox server. The CLI does not allow to give a remote server IP:

    But for some other environments it is possible to deploy VMs on a remote site:

    --vmwarevsphere-vcenter: IP/hostname for vCenter (or ESXi if connecting directly to a single host)If your preferred virtualization engine supports remote servers, you can check here:

    Nevertheless docker-machine is an excellent tool. If you are interested in creating a swarm, read this tutorial.
    The homepage of the OS boot2docker can be found here.

    Pages