From 2a22cfcb099c92200ed650ee1c8ba31ea9c06708 Mon Sep 17 00:00:00 2001 From: Francis Kayiwa Date: Mon, 11 Mar 2024 11:00:28 -0400 Subject: [PATCH 1/2] create a phusion based image this will install openjdk-18, curl and expect which allows us to build media flux Co-authored-by: Bess Sadler Co-authored-by: Carolyn Cole --- media_flux/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 media_flux/Dockerfile 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"] From bc0460df519929390fb4642018eff11ee15f3c90 Mon Sep 17 00:00:00 2001 From: Bess Sadler Date: Mon, 11 Mar 2024 12:50:27 -0400 Subject: [PATCH 2/2] Install mediaflux with expect for interactive bits --- media_flux/README.md | 12 ++++++++++++ media_flux/install_mflux.exp | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 media_flux/README.md create mode 100755 media_flux/install_mflux.exp 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? "