Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
spyder_cellxgene
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RC Data Science
community-containers
spyder_cellxgene
Commits
297d0f05
Commit
297d0f05
authored
11 months ago
by
Matthew K Defenderfer
Browse files
Options
Downloads
Patches
Plain Diff
update to use new env files
parent
5179b7dd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#10947
failed with stage
in 3 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+9
-60
9 additions, 60 deletions
Dockerfile
with
9 additions
and
60 deletions
Dockerfile
+
9
−
60
View file @
297d0f05
...
@@ -4,75 +4,24 @@ FROM continuumio/anaconda3
...
@@ -4,75 +4,24 @@ FROM continuumio/anaconda3
# Set environment variable to avoid user interaction during package installation
# Set environment variable to avoid user interaction during package installation
ENV
DEBIAN_FRONTEND=noninteractive
ENV
DEBIAN_FRONTEND=noninteractive
## Update package list and install necessary packages for X11, Qt, and basic utilities
# Update current packages and install some useful tools. libgl1-mesa-glx necessary for spyder
#RUN apt-get update && \
# apt-get install -y \
# x11-apps \
# xauth \
# libx11-dev \
# libxext6 \
# libxrender1 \
# libxrandr2 \
# libxfixes3 \
# libxi6 \
# libxkbcommon-x11-0 \
# libgl1-mesa-glx \
# libqt5widgets5 \
# libqt5gui5 \
# libqt5core5a \
# fonts-dejavu-core \
# pciutils \
# make \
# less \
# nano \
# && apt-get clean && \
# rm -rf /var/lib/apt/lists/*
RUN
apt-get update
&&
\
RUN
apt-get update
&&
\
apt-get
install
-y
\
apt-get
install
-y
\
libgl1-mesa-glx
\
libgl1-mesa-glx
\
less
\
less
\
nano
\
nano
\
&&
apt-get clean
&&
\
&&
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
rm
-rf
/var/lib/apt/lists/
*
RUN
useradd
-ms
/bin/bash clarkad
RUN
useradd
-ms
/bin/bash clarkad
# Set environment variables for X11 forwarding and Qt plugins
#ENV DISPLAY=:0
#ENV QT_QPA_PLATFORM=xcb
#ENV QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins
RUN
conda create
-y
-c
conda-forge
-n
spyder-env spyder numpy scipy pandas matplotlib sympy cython
# Ensure conda is initialized in every new shell
#RUN echo "source /opt/conda/etc/profile.d/conda.sh" >> /opt/.bashrc
#RUN echo "conda activate spyder-env" >> /opt/.bashrc
##----------------------------------------------------------------------------##
## Install parallel
##----------------------------------------------------------------------------##
#WORKDIR /opt
#COPY ./parallel.tar.bz2 /opt
#RUN tar -xjf parallel.tar.bz2
#
#WORKDIR /opt/parallel-20240322
## build and install
#RUN ./configure && make && make install
#
#WORKDIR /opt
## verify version of parallel installed
#RUN parallel --version | head -1
## get past annoying parallel citation prompt
#RUN echo 'will cite' | parallel --citation &> /dev/null || true
#
COPY ./cellxgene.txt /opt
#
Create the spyder environment to run out of. The container will start with this environment active, but you can switch to a different kernel inside spyder and have it run without issue
#RUN conda create -n cellxgene --file /opt/cellxgene.txt
ADD
spyder_env.yml /tmp/spyder_env.yml
#
RUN
echo "conda activate cellxgene" >> /opt/.bashrc
RUN
conda
env
create
-y
/tmp/spyder_env.yml
ADD
cxg_env.yml /tmp/cxg_env.yml
# Create the cellxgene environment based on an environment file.
RUN
conda
env
create
-y
-f
/tmp/cxg_env.yml
ADD
cellxgene.txt /tmp/cellxgene.txt
RUN
conda
env
create
-y
-n
cellxgene
-f
/tmp/cellxgene.txt
SHELL
["bash"]
SHELL
["bash"]
ENTRYPOINT
[ "conda", "run", "--no-capture-output", "-n", "spyder-env", "spyder" ]
ENTRYPOINT
[ "conda", "run", "--no-capture-output", "-n", "spyder-env", "spyder" ]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment