This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch uv-and-ops
in repository https://gitbox.apache.org/repos/asf/openserverless-operator.git


The following commit(s) were added to refs/heads/uv-and-ops by this push:
     new 6cdd9c7  fixes to Dockerfile
6cdd9c7 is described below

commit 6cdd9c7f64c4328b9197386306141102a112d53d
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sat Aug 16 17:37:03 2025 +0200

    fixes to Dockerfile
---
 Dockerfile | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 64c7637..28cfbe4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -53,12 +53,10 @@ ADD --chown=nuvolaris:nuvolaris 
deploy/postgres-operator-deploy /home/nuvolaris/
 ADD --chown=nuvolaris:nuvolaris deploy/ferretdb /home/nuvolaris/deploy/ferretdb
 ADD --chown=nuvolaris:nuvolaris deploy/runtimes /home/nuvolaris/deploy/runtimes
 ADD --chown=nuvolaris:nuvolaris deploy/postgres-backup 
/home/nuvolaris/deploy/postgres-backup
-ADD --chown=nuvolaris:nuvolaris run.sh dbinit.sh cron.sh whisk-system.sh 
/home/nuvolaris/
-ADD --chown=nuvolaris:nuvolaris pyproject.toml uv.lock opsfile.yml prereq.yml 
profile_default/startup/00-init.ipy /home/nuvolaris/
-
-# prepares the required folders to deploy the whisk-system actions
-RUN mkdir /home/nuvolaris/deploy/whisk-system
+ADD --chown=nuvolaris:nuvolaris run.sh dbinit.sh cron.sh whisk-system.sh 
pyproject.toml uv.lock opsfile.yml prereq.yml /home/nuvolaris/
+RUN mkdir -p /home/nuvolaris/deploy/whisk-system 
/home/nuvolaris/profile_default/startup
 ADD --chown=nuvolaris:nuvolaris actions /home/nuvolaris/actions
+ADD --chown=nuvolaris:nuvolaris profile_default/startup/00-init.ipy 
/home/nuvolaris/profile_default/startup
 
 # enterprise specific
 ADD --chown=nuvolaris:nuvolaris deploy/openwhisk-enterprise 
/home/nuvolaris/deploy/openwhisk-enterprise
@@ -137,12 +135,16 @@ ENV PATH="$HOME/.local/bin":\
 # Copy the home
 COPY --from=sources --chown=nuvolaris:nuvolaris ${HOME} ${HOME}
 
-# Create the ops op plugin and initialize
-RUN ln -sf "$HOME" "$HOME/.ops/olaris-op" && ops op setup
-
 # prepares the required folders to deploy the whisk-system actions
 RUN mkdir -p /home/nuvolaris/deploy/whisk-system && \
     ./whisk-system.sh && \
     cd deploy && tar cvf ../deploy.tar *
 
+# Create the ops op plugin and initialize prerequisites
+RUN \
+   ops -t && ops setup && \
+   ln -sf "$HOME" "$HOME/.ops/olaris-op" && \
+   ops op && ops op setup && \
+   echo quit | ops op cli
+
 CMD ["./run.sh"]
\ No newline at end of file

Reply via email to