Commit 61ba39e8 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

docker: add simbricks-run wrapper script to /usr/bin

parent fcd615a9
...@@ -13,3 +13,5 @@ RUN git submodule update --init sims/external/femu \ ...@@ -13,3 +13,5 @@ RUN git submodule update --init sims/external/femu \
RUN make -j `nproc` build-images-min COMPRESSED_IMAGES=true \ RUN make -j `nproc` build-images-min COMPRESSED_IMAGES=true \
&& bash docker/cleanup_images.sh && bash docker/cleanup_images.sh
ENV PYTHONPATH=/simbricks/experiments ENV PYTHONPATH=/simbricks/experiments
RUN sudo cp docker/simbricks-run /usr/bin/ \
&& sudo chmod 755 /usr/bin/simbricks-run
...@@ -14,3 +14,5 @@ RUN groupadd --gid $USER_GID $USERNAME \ ...@@ -14,3 +14,5 @@ RUN groupadd --gid $USER_GID $USERNAME \
COPY --chown=${USERNAME}:${USERNAME} --from=builder /simbricks /simbricks COPY --chown=${USERNAME}:${USERNAME} --from=builder /simbricks /simbricks
WORKDIR /simbricks WORKDIR /simbricks
ENV PYTHONPATH=/simbricks/experiments ENV PYTHONPATH=/simbricks/experiments
RUN sudo cp docker/simbricks-run /usr/bin/ \
&& sudo chmod 755 /usr/bin/simbricks-run
#!/bin/bash
exec python3 /simbricks/experiments/run.py "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment