diff --git a/media_flux/Dockerfile b/media_flux/Dockerfile new file mode 100644 index 0000000..3eaa0b5 --- /dev/null +++ b/media_flux/Dockerfile @@ -0,0 +1,15 @@ +FROM phusion/baseimage:jammy-1.0.1 + +# install java 18 +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + openssh-server \ + openjdk-18-jdk \ + curl \ + expect \ + net-tools sudo \ + && apt-get clean + + +VOLUME ["/sys/fs/cgroup", "/tmp", "/run"] +CMD ["/sbin/my_init"] diff --git a/media_flux/README.md b/media_flux/README.md new file mode 100644 index 0000000..e6da088 --- /dev/null +++ b/media_flux/README.md @@ -0,0 +1,12 @@ +# Install Mediaflux for Tiger Data CI + +## To build this image +``` +docker build -t mediaflux-ci . +``` + +This will give you an image called `mediaflux-ci`. To run it: + +``` +docker run mediaflux-ci:latest +``` \ No newline at end of file diff --git a/media_flux/install_mflux.exp b/media_flux/install_mflux.exp new file mode 100755 index 0000000..1e22a74 --- /dev/null +++ b/media_flux/install_mflux.exp @@ -0,0 +1,10 @@ +#!/usr/bin/expect + +set timeout -1 + +spawn java -jar mflux.jar nogui +expect "\[accept,decline\]: " +send -- "accept\r" +expect "Install location? " +send -- "/opt/mflux\r" +expect "Install location? "