Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Use Alpine Linux as the base image
- FROM alpine:latest
- # Install necessary packages
- RUN apk add --no-cache bash curl tar
- # Set the working directory to where Houdini will be installed
- WORKDIR /opt/houdini
- # Copy the Houdini installer from your local directory into the Docker image
- COPY houdini-20.0.653-linux_x86_64_gcc11.2.tar.gz /opt/houdini/
- # Extract the Houdini installer, ensure the installation script is executable, run it, and display the log
- RUN tar -xzvf houdini-20.0.653-linux_x86_64_gcc11.2.tar.gz && \
- chmod +x /opt/houdini/houdini-20.0.653-linux_x86_64_gcc11.2/houdini.install && \
- /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 && \
- cat /opt/houdini/install.log
- # Create the log directory, set permissions, and prepare log file
- RUN mkdir -p /var/log/sidefx && \
- chmod 777 /var/log/sidefx && \
- touch /var/log/sidefx/sesinetd.log
- # Check if sesinetd was correctly installed and move it to a known location if found
- RUN if [ -f /opt/houdini/houdini-20.0.653-linux_x86_64_gcc11.2/bin/sesinetd ]; then \
- mv /opt/houdini/houdini-20.0.653-linux_x86_64_gcc11.2/bin/sesinetd /opt/houdini/sesinetd; \
- else \
- echo "sesinetd not found, check install log" > /var/log/sidefx/sesinetd_missing.log; \
- fi
- # Expose the port used by the Houdini License Server
- EXPOSE 1715
- # Command to start the license server when the container starts
- CMD ["/opt/houdini/sesinetd"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement