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

Docker context that uses Anaconda to build rogue #976

Merged
merged 6 commits into from
Jan 8, 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
2 changes: 1 addition & 1 deletion .github/workflows/rogue_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
file: ./docker/rogue
push: true
tags: tidair/rogue:${{ steps.get_image_info.outputs.tag }}, tidair/rogue:latest
build-args: branch=${{ steps.get_image_info.outputs.branch }}
Expand Down
19 changes: 19 additions & 0 deletions docker/rogue-anaconda/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM continuumio/anaconda3

RUN apt-get update && \
apt-get install -y \
g++ \
gcc \
git \
cmake \
make

RUN conda config --set channel_priority strict &&\
conda install -n base conda-libmamba-solver &&\
conda config --set solver libmamba

RUN conda create -n rogue_tag -c tidair-tag -c conda-forge rogue

RUN echo "source activate rogue_tag" > ~/.bashrc

ENV PATH /opt/conda/envs/rogue_tag/bin:$PATH
4 changes: 2 additions & 2 deletions Dockerfile → docker/rogue/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.10
FROM ubuntu:22.04

# Install system tools
RUN apt-get update && apt-get install -y \
Expand All @@ -21,7 +21,7 @@ RUN pip3 install PyYAML parse click ipython pyzmq packaging matplotlib numpy p4p
RUN pip3 install pydm>=1.18.0

# Install Rogue
ARG branch
ARG branch=main
WORKDIR /usr/local/src
RUN git clone https://github.com/slaclab/rogue.git -b $branch
WORKDIR rogue
Expand Down