Skip to content

Commit

Permalink
Merge pull request #976 from slaclab/docker-dev
Browse files Browse the repository at this point in the history
Docker context that uses Anaconda to build rogue
  • Loading branch information
slacrherbst authored Jan 8, 2024
2 parents e2caa7e + 9a76b23 commit 36f9ab1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
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

0 comments on commit 36f9ab1

Please sign in to comment.