TL;DR
git clone https://github.com/ujnak/apex-podman-setup
cd apex-podman-setup/spatial
https://www.oracle.com/database/technologies/spatial-studio/oracle-spatial-studio-downloads.html
以上で準備は完了です。コンテナ・イメージをビルドしてコンテナの作成と実行を行います。
podman build --file Dockerfile --tag oracle/spatialstudio:latest .
podman run -d --name spatialstudio -p 8090:8080 -p 4040:4040 localhost/oracle/spatialstudio:latest
構築手順の紹介
- 上記のDockerfile
- Oracle Spatial Studio Quick StartのZIPファイル(filesの下) - V1050194-01.zip(バージョンが上がるとファイル名が変わります)
- Oracle JAVAのtar.gzファイル - jdk-17.0.16_linux-aarch64_bin.tar.gz
- Spatial Studioのコンテナ向け起動スクリプトStart_Spatial_Studio.sh
podman build --file Dockerfile --tag oracle/spatialstudio:latest .
% podman build --file Dockerfile --tag oracle/spatialstudio:latest .
[1/2] STEP 1/8: FROM oraclelinux:8 AS builder
[1/2] STEP 2/8: RUN dnf install -y tar unzip
Oracle Linux 8 BaseOS Latest (aarch64) 10 MB/s | 137 MB 00:13
Oracle Linux 8 Application Stream (aarch64) 10 MB/s | 64 MB 00:06
Last metadata expiration check: 0:00:09 ago on Fri Aug 1 08:53:19 2025.
Package tar-2:1.30-9.el8.aarch64 is already installed.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
unzip aarch64 6.0-48.0.1.el8_10 ol8_baseos_latest 189 k
Upgrading:
tar aarch64 2:1.30-10.el8_10 ol8_baseos_latest 830 k
Transaction Summary
================================================================================
Install 1 Package
Upgrade 1 Package
[中略]
++ basename /usr/java/jdk-17/bin/serialver
+ base=serialver
+ '[' '!' -e /usr/bin/serialver ']'
+ alternatives --install /usr/bin/serialver serialver /usr/java/jdk-17/bin/serialver 20000
--> 370818a642c2
[2/2] STEP 9/11: EXPOSE 8080 4040
--> aa39701c135f
[2/2] STEP 10/11: WORKDIR /opt/oracle/Oracle_Spatial_Studio
--> a26b388c8f55
[2/2] STEP 11/11: CMD ["sh", "-c", "/opt/oracle/Oracle_Spatial_Studio/Start_Spatial_Studio.sh"]
[2/2] COMMIT oracle/spatialstudio:latest
--> 1c9b6de485df
Successfully tagged localhost/oracle/spatialstudio:latest
1c9b6de485df57b9a0315754965284c0d79ed392c0463e29604cc560037c1044
%
% podman run -d --name spatialstudio -p 8090:8080 -p 4040:4040 localhost/oracle/spatialstudio:latest
42eddba20281a7c9701840934feb1f0d521cbd14faec636dbe4b36891d0d1925
%