我正在使用wnameless/oracle-xe-11g docker镜像来创建新的图像文件.当我从新图像创建容器时,我希望执行impdp命令.如何通过Dockerfile实现这一目标?
这是我的Docker文件
Dockerfile
# Base Image
FROM wnameless/oracle-xe-11g
# Create database_dump folder at / -location
RUN mkdir ../database_dumps
# Copy the dump file and put it into database_dumps created earlier
COPY dump_file ../database_dumps
# Give permission to user oracle on oracle folder to create tablespace
and related operations
RUN chown -R oracle /u01/app/oracle/oradata/XE
# RUN the database initial sql.(create tablespace, create user etc)
ADD init.sql /docker-entrypoint-initdb.d/
# Here is where I want to call the impdp command. when a …Run Code Online (Sandbox Code Playgroud)