You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[root@ip-10-0-0-0 21c]# docker build --tag local/gg:21 --build-arg BASE_IMAGE="ghcr.io/oracle/oraclelinux:8" --build-arg INSTALLER=213000_fbo_ggs_Linux_x64_Oracle_shiphome.zip .
[+] Building 0.8s (11/16) docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.38kB 0.0s
=> [internal] load metadata for ghcr.io/oracle/oraclelinux:8 0.4s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [ 1/12] FROM ghcr.io/oracle/oraclelinux:8@sha256:5f2cd2ccf69c8bd91d1d234066050f106e4a03135968ace4110359e3e5028d90 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 3.82kB 0.0s
=> CACHED [ 2/12] RUN : 213000_fbo_ggs_Linux_x64_Oracle_shiphome.zip 0.0s
=> CACHED [ 3/12] RUN dd if=/dev/zero of=/tmp/swap count=4096 bs=1M 0.0s
=> CACHED [ 4/12] RUN chmod 600 /tmp/swap 0.0s
=> CACHED [ 5/12] RUN mkswap /tmp/swap 0.0s
=> CACHED [ 6/12] RUN swapon --show 0.0s
=> ERROR [ 7/12] RUN swapon /tmp/swap 0.3s
------
> [ 7/12] RUN swapon /tmp/swap:
0.299 swapon: /tmp/swap: swapon failed: Operation not permitted
------
Dockerfile:20
--------------------
18 | RUN mkswap /tmp/swap
19 | RUN swapon --show
20 | >>> RUN swapon /tmp/swap
21 |
22 | COPY install-*.sh /opt/tmp/
--------------------
ERROR: failed to solve: process "/bin/sh -c swapon /tmp/swap" did not complete successfully: exit code: 255
To me none of the combinations are working with the goldengate even with the 12c-19c & the documentation does not mention how the architecture ensures the High Availability of the GoldenGate when deployed onto Container solutions/Serverless solutions & what would happen when the pod goes down when deployed on a multi-pod environment.
PS: I tried adding Root permissions as well to the Dockerfile, and it has the same behaviour USER root
The text was updated successfully, but these errors were encountered:
Hi there,
to the best of my knowledge it is by default forbidden to use swap on kubernetes and some other container environments. Kubernetes Versions >1.26 have experimental swap support which needs activation first.
But there is some good news:
I tested with the latest GoldenGate 23ai (the new long term release), and that version works without hazzle!
GG just throws a message that it is running on a no-swap system on startup, and replicats and extracts will startup properly even without any swap. But beware, GG can consume all Your servers memory if it needs to, unless You specify CACHEMGR parameters to limit that.
Issue:
Following instructions of GoldenGate is failing with the swap space issues leading to pre-requisite installations failure.
https://github.com/oracle/docker-images/tree/main/OracleGoldenGate/21c
GoldenGate Zip: Oracle GoldenGate 21.3.0.0.0 for Oracle on Linux x86-64
Docker Command:
docker build --tag local/gg:21 --build-arg BASE_IMAGE="ghcr.io/oracle/oraclelinux:8" --build-arg INSTALLER=213000_fbo_ggs_Linux_x64_Oracle_shiphome.zip .
Failure Log:
It appears to be failing with the swap-space issues, & similar behavior has been observed with the 23ai for simplicity I tried with 21c GoldenGate.
Hence I took one step further & tried adding swap space by changing the Dockerfile, however turning on swap space isn't allowed
Modified Dockerfile:
Result:
To me none of the combinations are working with the goldengate even with the 12c-19c & the documentation does not mention how the architecture ensures the High Availability of the GoldenGate when deployed onto Container solutions/Serverless solutions & what would happen when the pod goes down when deployed on a multi-pod environment.
PS: I tried adding Root permissions as well to the Dockerfile, and it has the same behaviour
USER root
The text was updated successfully, but these errors were encountered: