Nov 11, 2018

AWS: Docker and AWS - creating my first EC2 compute node

My first idea after all my experiences with docker was to run my docker application with AWS.
After registration i searched for docker inside AWS and i only found this:
Hmm. Does not look like i expected. I thought, that i have just to upload my docker image and then i can select on which AWS compute nodes i want to run this image.

But let's give it a try.

First step is to install Docker on an Amazon Linux instance:

Startpoint is  https://console.aws.amazon.com/ec2/


At the left side in the top bar you have to choose the region, where you EC2 instance should be launched:

Then:

i choose the one with "the repositories include docker, PHP, MySQL, PostgreSQL, ..."








 You have to download the keypair. Otherwise you will not be able to connect to your machine!
And after a short time:


And here we go:
schroff@zerberus:~/AWS$ chmod 400 181111-first-aws-keypair.pem 

schroff@zerberus:~/AWS$ ssh -i 181111-first-aws-keypair.pem ec2-user@ec2-35-180-192-27.eu-west-3.compute.amazonaws.com



       __|  __|_  )

       _|  (     /   Amazon Linux AMI

      ___|\___|___|



https://aws.amazon.com/amazon-linux-ami/2018.03-release-notes/

14 package(s) needed for security, out of 30 available

Run "sudo yum update" to apply all updates.

[ec2-user@ip-172-31-47-127 ~]$ 

If you want to get your ssh parameters, just click on the "connect" button besides the "launch instance" button and the following popup will help you:

Nov 10, 2018

Amazon Web Services: A Start into AWS

After spending a lot of time with docker / docker swarm i decided to see, how this all works by using AWS.

First step is to do the registration (only registered users have access to the AWS documentation!):

The start is https://aws.amazon.com/










Postings related to AWS:

Docker summary

Today just a summary posting of all my docker activities:
I think most of the postings are useful to run docker in your own infrastructure, some how to build applications and run them.
After reading Kubernetes: Up & Running i will move to cloud computing service. Just to see, what part of the configuration has still to be done and if deploying a microservice is easier inside a hosted cloud...

Nov 1, 2018

Oracle Database 18c: Installation via rpm (without runInstaller.sh)

Three months after writing the post Where to find the oracle-database-ee-18c-1.0-1.x86_64.rpm package? Oracle released the rpms on their download page:


https://www.oracle.com/technetwork/database/enterprise-edition/downloads/oracle18c-linux-180000-5022980.html

So let's give it a try.


First thing is to install the prerequisites:
# yum install oracle-database-preinstall-18c


...
=================================================================================================================================================
 Package                                      Arch                 Version                                        Paketquelle              Größe
=================================================================================================================================================
Installieren:
 oracle-database-preinstall-18c               x86_64               1.0-1.el7                                      ol7_latest                18 k
Als Abhängigkeiten installiert:
 bc                                           x86_64               1.06.95-13.el7                                 ol7_latest               114 k
 bind-libs                                    x86_64               32:9.9.4-61.el7                                ol7_latest               1.0 M
 bind-utils                                   x86_64               32:9.9.4-61.el7                                ol7_latest               204 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
 glibc-devel                                  x86_64               2.17-222.el7                                   ol7_latest               1.1 M
 glibc-headers                                x86_64               2.17-222.el7                                   ol7_latest               678 k
 gssproxy                                     x86_64               0.7.0-17.el7                                   ol7_latest               108 k
 kernel-headers                               x86_64               3.10.0-862.9.1.el7                             ol7_latest               7.1 M
 keyutils                                     x86_64               1.5.8-3.el7                                    ol7_latest                53 k
 ksh                                          x86_64               20120801-137.0.1.el7                           ol7_latest               881 k
 libICE                                       x86_64               1.0.9-9.el7                                    ol7_latest                66 k
 libSM                                        x86_64               1.2.2-2.el7                                    ol7_latest                39 k
 libX11                                       x86_64               1.6.5-1.el7                                    ol7_latest               606 k
 libX11-common                                noarch               1.6.5-1.el7                                    ol7_latest               163 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.9-1.el7                                    ol7_latest                40 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.5.1-2.el7                                    ol7_latest                27 k
 libXrender                                   x86_64               0.9.10-1.el7                                   ol7_latest                25 k
 libXt                                        x86_64               1.1.5-3.el7                                    ol7_latest               172 k
 libXtst                                      x86_64               1.2.3-1.el7                                    ol7_latest                20 k
 libXv                                        x86_64               1.0.11-1.el7                                   ol7_latest                18 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.4-1.el7                                    ol7_latest                17 k
 libaio-devel                                 x86_64               0.3.109-13.el7                                 ol7_latest                12 k
 libbasicobjects                              x86_64               0.1.1-29.el7                                   ol7_latest                25 k
 libcollection                                x86_64               0.7.0-29.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
 libini_config                                x86_64               1.3.1-29.el7                                   ol7_latest                62 k
 libnfsidmap                                  x86_64               0.25-19.el7                                    ol7_latest                49 k
 libpath_utils                                x86_64               0.2.1-29.el7                                   ol7_latest                27 k
 libref_array                                 x86_64               0.1.5-29.el7                                   ol7_latest                26 k
 libstdc++-devel                              x86_64               4.8.5-28.0.1.el7_5.1                           ol7_latest               1.5 M
 libtirpc                                     x86_64               0.2.4-0.10.el7                                 ol7_latest                88 k
 libverto-libevent                            x86_64               0.2.5-4.el7                                    ol7_latest               8.2 k
 libxcb                                       x86_64               1.12-1.el7                                     ol7_latest               210 k
 lm_sensors-libs                              x86_64               3.4.0-4.20160601gitf9185e5.el7                 ol7_latest                41 k
 mailx                                        x86_64               12.5-19.el7                                    ol7_latest               244 k
 net-tools                                    x86_64               2.0-0.22.20131004git.el7                       ol7_latest               305 k
 nfs-utils                                    x86_64               1:1.3.0-0.54.0.1.el7                           ol7_latest               407 k
 psmisc                                       x86_64               22.20-15.el7                                   ol7_latest               140 k
 quota                                        x86_64               1:4.01-17.el7                                  ol7_latest               178 k
 quota-nls                                    noarch               1:4.01-17.el7                                  ol7_latest                90 k
 rpcbind                                      x86_64               0.2.0-44.el7                                   ol7_latest                59 k
 smartmontools                                x86_64               1:6.5-1.el7                                    ol7_latest               460 k
 sysstat                                      x86_64               10.1.5-13.el7                                  ol7_latest               310 k
 tcp_wrappers                                 x86_64               7.6-77.el7                                     ol7_latest                78 k
 unzip                                        x86_64               6.0-19.el7                                     ol7_latest               169 k
 xorg-x11-utils                               x86_64               7.5-22.el7                                     ol7_latest               113 k
 xorg-x11-xauth                               x86_64               1:1.0.9-1.el7                                  ol7_latest                29 k
Aktualisiert für Abhängigkeiten:
 libstdc++                                    x86_64               4.8.5-28.0.1.el7_5.1                           ol7_latest               303 k

Transaktionsübersicht
=================================================================================================================================================
Installieren   1 Paket  (+55 Abhängige Pakete)
Aktualisieren           (  1 Abhängiges Paket)
...
These packages are installed on a minimal Oracle Linux system.

After that i started the installation of the rpm database package:
 [root@localhost oracle]# yum install -y oracle-database-ee-18c-1.0-1.x86_64.rpm 
Geladene Plugins: ulninfo
oracle-database-ee-18c-1.0-1.x86_64.rpm wird untersucht: oracle-database-ee-18c-1.0-1.x86_64
oracle-database-ee-18c-1.0-1.x86_64.rpm wird zum Installieren markiert
Abhängigkeiten werden aufgelöst
--> Transaktionsprüfung wird ausgeführt
---> Paket oracle-database-ee-18c.x86_64 0:1.0-1 markiert, um installiert zu werden
--> Abhängigkeitsauflösung beendet

Abhängigkeiten aufgelöst

=============================================================================================================
 Package                       Arch          Version       Paketquelle                                 Größe
=============================================================================================================
Installieren:
 oracle-database-ee-18c        x86_64        1.0-1         /oracle-database-ee-18c-1.0-1.x86_64        7.8 G

Transaktionsübersicht
=============================================================================================================
Installieren  1 Paket

Gesamtgröße: 7.8 G
Installationsgröße: 7.8 G
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installieren     : oracle-database-ee-18c-1.0-1.x86_64                                                 1/1 
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-18c configure
  Überprüfung läuft: oracle-database-ee-18c-1.0-1.x86_64                                                 1/1 

Installiert:
  oracle-database-ee-18c.x86_64 0:1.0-1                                                                      

Komplett!

The documentation says about the configurtion:


and

 [root@localhost oracle]# /etc/init.d/oracledb_ORCLCDB-18c configure
Configuring Oracle Database ORCLCDB.
DB-Vorgang vorbereiten
8 % abgeschlossen
Datenbankdateien werden kopiert
31 % abgeschlossen
Oracle-Instanz wird erstellt und gestartet
32 % abgeschlossen
36 % abgeschlossen
40 % abgeschlossen
43 % abgeschlossen
46 % abgeschlossen
Erstellen von Datenbank wird abgeschlossen
51 % abgeschlossen
54 % abgeschlossen
Integrierbare Datenbanken werden erstellt
58 % abgeschlossen
77 % abgeschlossen
Aktionen nach Abschluss der Konfiguration werden ausgeführt
100 % abgeschlossen
Erstellen der Datenbank abgeschlossen. Einzelheiten finden Sie in den Logdateien in:
 /opt/oracle/cfgtoollogs/dbca/ORCLCDB.
Datenbankinformationen:
Globaler Datenbankname:ORCLCDB
System-ID (SID):ORCLCDB
Weitere Einzelheiten finden Sie in der Logdatei "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log".

Database configuration completed successfully. The passwords were auto generated, you must change them by connecting to the database using 'sqlplus / as sysdba' as the oracle user.
and a last check with sqlplus:
[oracle@localhost ~]$ sqlplus / as sysdba

SQL*Plus: Release 18.0.0.0.0 - Production on Thu Nov 1 11:21:50 2018
Version 18.3.0.0.0

Copyright (c) 1982, 2018, Oracle.  All rights reserved.


Verbunden mit: 
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.3.0.0.0

SQL> set lines 200
SQL> set pages 200
SQL> select * from v$instance;

INSTANCE_NUMBER INSTANCE_NAME     HOST_NAME                              VERSION        VERSION_LEGACY    VERSION_FULL    STARTUP_ STATUS       PAR    THREAD# ARCHIVE
--------------- ---------------- ---------------------------------------------------------------- ----------------- ----------------- ----------------- -------- ------------ --- ---------- -------
LOG_SWITCH_WAIT LOGINS       SHU DATABASE_STATUS     INSTANCE_ROLE        ACTIVE_ST BLO     CON_ID INSTANCE_MO EDITION FAMILY
--------------- ---------- --- ----------------- ------------------ --------- --- ---------- ----------- ------- --------------------------------------------------------------------------------
DATABASE_TYPE
---------------
          1 ORCLCDB      localhost.localdomain                          18.0.0.0.0    18.0.0.0.0          18.3.0.0.0    01.11.18 OPEN          NO       1 STOPPED
        ALLOWED    NO  ACTIVE         PRIMARY_INSTANCE   NORMAL    NO       0 REGULAR     EE
SINGLE

If you do not want to set a database with other options, you have to skip the
/etc/init.d/oracledb_ORCLCDB-18c configure
Just run the dbca and set up the options as you want.