Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create a phusion based image #6

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions media_flux/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
12 changes: 12 additions & 0 deletions media_flux/README.md
Original file line number Diff line number Diff line change
@@ -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
```
10 changes: 10 additions & 0 deletions media_flux/install_mflux.exp
Original file line number Diff line number Diff line change
@@ -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? "