Oracle Cloud Developer Imageを使ってみた


Oracle Cloud Developer Imageという開発者向け全部入りイメージが公開されました。


* [Announcing the Oracle Cloud Developer Image for Oracle Cloud Infrastructure](https://blogs.oracle.com/linux/announcing-the-oracle-cloud-developer-image-for-oracle-cloud-infrastructure)
* [Oracle Cloud Infrastructure用のOracle Cloud Developer Imageの発表 (2019/04/02)](https://community.oracle.com/people/Kenwatan-Oracle/blog/2019/04/03/ocioracle-cloud-developer-image%E3%81%AE%E7%99%BA%E8%A1%A8-20190402)

Oracle Cloud Developer Imageはマーケットプレイスから入手できます。

![Oracle_Cloud_Developer_Image.png](https://qiita-image-store.s3.amazonaws.com/0/174/c3e80d76-98a5-869a-f887-36d33a228109.png)

この記事執筆時点(2019年4月3日)で、どんなツールのどのバージョンが入っているか確認してみました。

### [Oracle Linux 7](https://docs.cloud.oracle.com/iaas/images/oraclelinux-7x/) ###

```console
[opc@instance-20190403-1109 ~]$ cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="7.6"
ID="ol"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Oracle Linux Server 7.6"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:6:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.6
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.6
```

### [Java Platform, Standard Edition (Java SE) 8](https://docs.oracle.com/javase/8/) ###

```console
[opc@instance-20190403-1109 ~]$ java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
[opc@instance-20190403-1109 ~]$ javac -version
javac 1.8.0_202
```

### Python 3.6 ###

```console
[opc@instance-20190403-1109 ~]$ python36 -V
Python 3.6.6
```

### Node.js 10 and [node-oracledb](http://oracle.github.io/node-oracledb/doc/api.html) ###

```console
[opc@instance-20190403-1109 ~]$ node -v
v10.15.3
[opc@instance-20190403-1109 ~]$ npm ls --parseable --global --depth=0
/usr/lib
/usr/lib/node_modules/npm
/usr/lib/node_modules/oracledb
npm ERR! missing: nan@^2.12, required by oracledb@3.1.2
```

あれ？nanで怒られていますね。

## Go 1.12 ###

```console
[opc@instance-20190403-1109 ~]$ go version
go version go1.12 linux/amd64
```

### [Oracle Instant Client](https://www.oracle.com/technetwork/database/database-technologies/instant-client/overview/index.html) 18.5 ###

```console
[opc@instance-20190403-1109 ~]$ sqlplus -version

SQL*Plus: Release 18.0.0.0.0 - Production
Version 18.5.0.0.0
```

### [Oracle Cloud Infrastructure CLI](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/cliconcepts.htm) ###

```console
[opc@instance-20190403-1109 ~]$ oci -v
2.5.4
```


### Ruby and [Ruby Oracle Cloud Infrastructure SDK](https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/rubysdk.htm) ###

```console
[opc@instance-20190403-1109 ~]$ ruby --version
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
[opc@instance-20190403-1109 ~]$ gem list | grep oci
oci (2.5.1)
```

### Terraform ###

```console
[opc@instance-20190403-1109 ~]$ terraform version
Terraform v0.11.13
```

### [Oracle Container Runtime for Docker](https://blogs.oracle.com/linux/announcing-oracle-container-runtime-for-docker-release-1809) ###

```console
[opc@instance-20190403-1109 ~]$ sudo docker version
Client:
 Version:           18.09.1-ol
 API version:       1.39
 Go version:        go1.10.8
 Git commit:        c3ab8a8
 Built:             Mon Feb 11 23:20:32 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.1-ol
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.8
  Git commit:       c3ab8a8
  Built:            Mon Feb 11 23:09:34 2019
  OS/Arch:          linux/amd64
  Experimental:     false
  Default Registry: docker.io
```

### [Oracle Cloud Infrastructure Utilities](https://docs.cloud.oracle.com/iaas/Content/Compute/References/ociutilities.htm)

```console
[opc@instance-20190403-1109 test]$ sudo systemctl status ocid.service
● ocid.service - Oracle Cloud Infrastructure utilities daemon
   Loaded: loaded (/etc/systemd/system/ocid.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-04-03 02:12:52 GMT; 40min ago
 Main PID: 4783 (python2.7)
    Tasks: 5
   Memory: 75.3M
   CGroup: /system.slice/ocid.service
           tq4783 python2.7 /usr/libexec/ocid
           mq9514 /usr/sbin/iscsiadm -m discovery -t st -p 169.254.2.9 3260

Apr 03 02:12:10 instance-20190403-1109 su[5807]: (to opc) root on none
Apr 03 02:12:13 instance-20190403-1109 python2.7[4783]: ocid - INFO - secondary VNIC script reports: Info: no changes, IP configuration is up-to-date
Apr 03 02:12:16 instance-20190403-1109 su[5953]: (to opc) root on none
Apr 03 02:12:52 instance-20190403-1109 systemd[1]: Started Oracle Cloud Infrastructure utilities daemon.
Apr 03 02:22:25 instance-20190403-1109 su[6872]: (to opc) root on none
Apr 03 02:22:33 instance-20190403-1109 su[6923]: (to opc) root on none
Apr 03 02:32:41 instance-20190403-1109 su[7724]: (to opc) root on none
Apr 03 02:32:50 instance-20190403-1109 su[7785]: (to opc) root on none
Apr 03 02:43:00 instance-20190403-1109 su[8608]: (to opc) root on none
Apr 03 02:43:08 instance-20190403-1109 su[8669]: (to opc) root on none
```

### VNC Server ###

```console
[opc@instance-20190403-1109 test]$ vncserver -version

WARNING: The first attempt to start Xvnc failed, possibly because the font
catalog is not properly configured.  Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc.


Xvnc TigerVNC 1.8.0 - built Oct 31 2018 03:02:26
Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12000000, The X.Org Foundation


Xvnc TigerVNC 1.8.0 - built Oct 31 2018 03:02:26
Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12000000, The X.Org Foundation
```