Skip to content

Commit

Permalink
changed service to httpd in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jintonic committed Apr 5, 2024
1 parent 5240df0 commit fc3450a
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions INSTALL/Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ RUN cd /usr/bin \
&& curl -LO https://github.com/jintonic/gears/raw/master/Makefile \
&& make && rm -f gears.cc Makefile

# install command-line tools: tmux, git, lf, micro, uproot, visidata, mpld3
run dnf install -y tmux git python3-pip \
# install tmux, git, java, micro, lf, uproot, visidata, mpld3
run dnf install -y tmux git python3-pip java-1.8.0-openjdk-headless \
&& cd /usr/local/bin && curl https://getmic.ro/r | bash \
&& curl -LO https://github.com/gokcehan/lf/releases/download/r31/lf-linux-amd64.tar.gz \
&& tar xf *.gz && rm -f *.gz && dnf clean all && rm -fr /var/cache/* \
Expand All @@ -17,21 +17,26 @@ run dnf install -y tmux git python3-pip \
# set up environment
copy tmux.conf /etc/
copy config /root/.config
copy v2x /usr/bin
# tmux uses $PS1 defined in .bashrc to show its prompt
run cd /etc && sed -i 's/"ls -Alh"/lf/' bashrc \
&& echo 'export PS1="\[\e[0;32m\]\u@AlmaLinux:\[\e[0;34m\]\w \[\e[0;31m\]\$\[\e[m\] "' >> bashrc \
&& echo 'alias t="tmux -u"' >> bashrc \
&& echo 'alias ta="t attach"' >> bashrc \
&& echo 'You are using /bin/sh' >> profile \
&& echo 'Type "tmux -u a↵" for a better UI' >> profile
&& echo 'options.disp_canvas_charset = " +"' >> /root/.visidatarc \
&& echo 'You are using /bin/sh' >> /root/.profile \
&& echo 'Type "tmux -u a↵" for a better UI' >> /root/.profile \
&& cd /usr/bin \
&& curl -LO https://github.com/jintonic/gears/raw/master/tutorials/detector/visualization/VrmlMerge-0.5beta.jar \
&& cd /usr/share \
&& curl -LO https://raw.githubusercontent.com/jintonic/gears/master/tutorials/detector/visualization/gearsX3D.html

# lf started by tmux uses vi without the following line
env EDITOR=micro

volume /geant4/data
volume /geant4
expose 8000
expose 8888

# https://askubuntu.com/a/746846
# https://kodekloud.com/blog/keep-docker-container-running
cmd tmux -u new -d lf && tail -12f /usr/README
cmd python3 -u -m http.server -b 0.0.0.0 --cgi

0 comments on commit fc3450a

Please sign in to comment.