Advertisement
psionicsin

Untitled

Apr 25th, 2024 (edited)
690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.51 KB | Software | 0 0
  1. # Use Alpine Linux as the base image
  2. FROM alpine:latest
  3.  
  4. # Install necessary packages
  5. RUN apk add --no-cache bash curl tar
  6.  
  7. # Set the working directory to where Houdini will be installed
  8. WORKDIR /opt/houdini
  9.  
  10. # Copy the Houdini installer from your local directory into the Docker image
  11. COPY houdini-20.0.653-linux_x86_64_gcc11.2.tar.gz /opt/houdini/
  12.  
  13. # Extract the Houdini installer, ensure the installation script is executable, run it, and display the log
  14. RUN tar -xzvf houdini-20.0.653-linux_x86_64_gcc11.2.tar.gz && \
  15.     chmod +x /opt/houdini/houdini-20.0.653-linux_x86_64_gcc11.2/houdini.install && \
  16.     /opt/houdini/houdini-20.0.653-linux_x86_64_gcc11.2/houdini.install --accept-EULA 2021-10-13 --install-license > /opt/houdini/install.log 2>&1 && \
  17.     cat /opt/houdini/install.log
  18.  
  19. # Create the log directory, set permissions, and prepare log file
  20. RUN mkdir -p /var/log/sidefx && \
  21.     chmod 777 /var/log/sidefx && \
  22.     touch /var/log/sidefx/sesinetd.log
  23.  
  24. # Check if sesinetd was correctly installed and move it to a known location if found
  25. RUN if [ -f /opt/houdini/houdini-20.0.653-linux_x86_64_gcc11.2/bin/sesinetd ]; then \
  26.         mv /opt/houdini/houdini-20.0.653-linux_x86_64_gcc11.2/bin/sesinetd /opt/houdini/sesinetd; \
  27.     else \
  28.         echo "sesinetd not found, check install log" > /var/log/sidefx/sesinetd_missing.log; \
  29.     fi
  30.  
  31. # Expose the port used by the Houdini License Server
  32. EXPOSE 1715
  33.  
  34. # Command to start the license server when the container starts
  35. CMD ["/opt/houdini/sesinetd"]
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement