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

customize bash prompt in our docker images #407

Merged
merged 1 commit into from
Nov 13, 2024
Merged
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
4 changes: 4 additions & 0 deletions packages/halmos-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ RUN curl -sSf -L https://raw.githubusercontent.com/foundry-rs/foundry/master/fou
-o /root/.foundry/bin/foundryup && \
chmod +x /root/.foundry/bin/foundryup && \
foundryup

# Set a nicer prompt
ENV IMAGE_NAME=halmos-builder
RUN echo 'PS1="($IMAGE_NAME) \[\033[1;32m\]\u@\h \[\033[1;35m\]\w \$\[\033[0m\] "' >> /root/.bashrc
4 changes: 4 additions & 0 deletions packages/halmos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ RUN --mount=type=bind,source=../..,target=/src,readonly=false \
uv pip install --no-cache /src && \
uv pip install --no-cache -r /src/requirements-dev.txt

# Set a nicer prompt
ENV IMAGE_NAME=halmos
RUN echo 'PS1="($IMAGE_NAME) \[\033[1;32m\]\u@\h \[\033[1;35m\]\w \$\[\033[0m\] "' >> /root/.bashrc

WORKDIR /workspace
CMD ["halmos"]
6 changes: 5 additions & 1 deletion packages/solvers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,13 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Install jsi
RUN uv tool install just-solve-it

# make installed tools available
# Make installed uv tools available
ENV PATH=/root/.local/bin:$PATH

# Set a nicer prompt
ENV IMAGE_NAME=solvers
RUN echo 'PS1="($IMAGE_NAME) \[\033[1;32m\]\u@\h \[\033[1;35m\]\w \$\[\033[0m\] "' >> /root/.bashrc

# Set the default command for the container
WORKDIR /workspace
CMD ["/bin/bash"]
Loading