mirror of
https://github.com/mveril/qp-demo
synced 2024-12-22 20:35:26 +01:00
Simplify copy operations
This commit is contained in:
parent
a32076f557
commit
0ae6ea4e4c
@ -48,7 +48,7 @@ laboratory.url="http://www.lcpq.ups-tlse.fr/"
|
|||||||
ARG user=user
|
ARG user=user
|
||||||
# This argument define timezone for tzdata requierd by qp_run
|
# This argument define timezone for tzdata requierd by qp_run
|
||||||
ARG tz=Etc/UTC
|
ARG tz=Etc/UTC
|
||||||
# unminimize
|
# install manpages and other requirements to an interactive session
|
||||||
RUN ["/bin/sh","-c","yes | unminimize"]
|
RUN ["/bin/sh","-c","yes | unminimize"]
|
||||||
# Install all requierd packages
|
# Install all requierd packages
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
@ -67,9 +67,10 @@ ENV USER=$user
|
|||||||
# Go to home
|
# Go to home
|
||||||
WORKDIR /home/$user
|
WORKDIR /home/$user
|
||||||
# Copy examples
|
# Copy examples
|
||||||
COPY --chown=$user:$user examples examples
|
COPY --chown=$user examples examples
|
||||||
# Copy unpacked QP2 static
|
# Copy unpacked QP2 static
|
||||||
COPY --from=unpack --chown=$user:$user /tmp/quantum_package_static ./qp2
|
COPY --from=unpack --chown=$user /tmp/quantum_package_static qp2
|
||||||
|
# Prepare tmux and screen to use QPSH
|
||||||
RUN echo "set -g default-command /home/$user/qp2/bin/qpsh" >> .tmux.conf
|
RUN echo "set -g default-command /home/$user/qp2/bin/qpsh" >> .tmux.conf
|
||||||
RUN echo "shell \"/home/$user/qp2/bin/qpsh\"" >> .screenrc
|
RUN echo "shell \"/home/$user/qp2/bin/qpsh\"" >> .screenrc
|
||||||
# start a qp shell when run
|
# start a qp shell when run
|
||||||
|
Loading…
Reference in New Issue
Block a user