oracle / docker-images

Official source of container configurations, images, and examples for Oracle products and projects
https://developer.oracle.com/use-cases/#containers
Universal Permissive License v1.0
6.59k stars 5.44k forks source link

unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /var/lib/snapd/void/Dockerfile.xe: no such file or directory #2388

Open mariadb-RoelVandePaar opened 2 years ago

mariadb-RoelVandePaar commented 2 years ago
/test/docker-images/OracleDatabase/SingleInstance/dockerfiles$ ./buildContainerImage.sh -v 21.3.0 -x
Checking Docker version.
Ignored MD5 checksum.
==========================
Container runtime info:
Client:
 Context:    default
 Debug Mode: false

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 20.10.14
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3df54a852345ae127d1fa3092b95168e4a88e2f8
 runc version: 
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.13.0-1030-gcp
 Operating System: Ubuntu Core 18
 OSType: linux
 Architecture: x86_64
 CPUs: 32
 Total Memory: 117.9GiB
 Name: testserver
 ID: P5MU:HKBL:5R4A:6X3W:DSPW:EWM3:CE7Y:NRTE:LQVV:KZOH:FF7I:JEID
 Docker Root Dir: /var/snap/docker/common/var-lib-docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

==========================
Building image 'oracle/database:21.3.0-xe' ...
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /var/lib/snapd/void/Dockerfile.xe: no such file or directory

ERROR: Oracle Database container image was NOT successfully created.
ERROR: Check the output and correct any reported problems with the build operation.

Running it as sudo makes no difference. Adding a symlink (not a great solution):

sudo ln -s ${PWD}/21.3.0/Dockerfile.xe /var/lib/snapd/void/Dockerfile.xe

Works, but then it complains about the next thing missing (/test). What is the real issue please? OS:Ubuntu 20.04

mariadb-RoelVandePaar commented 2 years ago

I reviewed all previous issues in this area, to no avail.

mariadb-RoelVandePaar commented 2 years ago

Any suggestions/ideas? Thank you

mariadb-RoelVandePaar commented 2 years ago

Some attention to this ticket would be appreciated. Thank you.

abhisbyk commented 2 years ago

@mariadb-RoelVandePaar It appears that the build-context is not able to find the Dockerfile.xe. Please run buildContainerImage.sh script by going inside the docker-images/OracleDatabase/SingleInstance/dockerfiles directory or give the full absolute path to the buildContainerImage.sh script while running it. Please let me know if this resolves the issue.