Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
micromamba-py310-pytorch-cuda11.7
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
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
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
Quang tru HUYNH
micromamba-py310-pytorch-cuda11.7
Commits
00122d92
Commit
00122d92
authored
2 years ago
by
Quang tru HUYNH
Browse files
Options
Downloads
Patches
Plain Diff
fix micromamna --no-deps
parent
dfa58e3d
No related branches found
No related tags found
No related merge requests found
Pipeline
#99103
failed
2 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+6
-4
6 additions, 4 deletions
Dockerfile
Singularity
+6
-3
6 additions, 3 deletions
Singularity
runscript.sh
+1
-0
1 addition, 0 deletions
runscript.sh
with
13 additions
and
7 deletions
Dockerfile
+
6
−
4
View file @
00122d92
...
@@ -7,11 +7,13 @@ RUN apt-get update && \
...
@@ -7,11 +7,13 @@ RUN apt-get update && \
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
autoremove
&&
\
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
autoremove
&&
\
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
clean autoclean
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
clean autoclean
RUN
eval
"
$(
micromamba shell hook
-s
posix
)
"
&&
\
RUN
export
MAMBA_ROOT_PREFIX
=
/opt/conda
&&
\
micromamba update micromamba
&&
\
eval
"
$(
micromamba shell hook
-s
posix
)
"
&&
\
micromamba upgrade
--all
-y
&&
\
micromamba update
-q
-y
micromamba
-c
conda-forge
-p
${
MAMBA_ROOT_PREFIX
}
&&
\
micromamba update
-q
-y
--all
-c
conda-forge
-p
${
MAMBA_ROOT_PREFIX
}
&&
\
mkdir
-p
${
MAMBA_ROOT_PREFIX
}
/envs
&&
\
curl https://gitlab.pasteur.fr/tru/micromamba-py310-pytorch-cuda11.7/-/raw/main/conda-env-export.yml
>
conda-env-export.yml
&&
\
curl https://gitlab.pasteur.fr/tru/micromamba-py310-pytorch-cuda11.7/-/raw/main/conda-env-export.yml
>
conda-env-export.yml
&&
\
micromamba create
--name
py310-pytorch-1.13.1
--file
conda-env-export.yml
&&
\
micromamba create
-y
--no-deps
--name
py310-pytorch-1.13.1
--file
conda-env-export.yml
&&
\
micromamba activate py310-pytorch-1.13.1
&&
\
micromamba activate py310-pytorch-1.13.1
&&
\
micromamba
env export
>
/conda-env-export.yml
micromamba
env export
>
/conda-env-export.yml
...
...
This diff is collapsed.
Click to expand it.
Singularity
+
6
−
3
View file @
00122d92
...
@@ -9,15 +9,18 @@ DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
...
@@ -9,15 +9,18 @@ DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get -y autoremove && \
DEBIAN_FRONTEND=noninteractive apt-get -y autoremove && \
DEBIAN_FRONTEND=noninteractive apt-get -y clean autoclean
DEBIAN_FRONTEND=noninteractive apt-get -y clean autoclean
export MAMBA_ROOT_PREFIX=/opt/conda && \
eval "$(micromamba shell hook -s posix )" && \
eval "$(micromamba shell hook -s posix )" && \
micromamba update micromamba && \
micromamba update -q -y micromamba -c conda-forge -p ${MAMBA_ROOT_PREFIX} && \
micromamba upgrade --all -y && \
micromamba update -q -y --all -c conda-forge -p ${MAMBA_ROOT_PREFIX} && \
mkdir -p ${MAMBA_ROOT_PREFIX}/envs && \
curl https://gitlab.pasteur.fr/tru/micromamba-py310-pytorch-cuda11.7/-/raw/main/conda-env-export.yml > conda-env-export.yml && \
curl https://gitlab.pasteur.fr/tru/micromamba-py310-pytorch-cuda11.7/-/raw/main/conda-env-export.yml > conda-env-export.yml && \
micromamba create --name py310-pytorch-1.13.1 --file conda-env-export.yml && \
micromamba create
-y --no-deps
--name py310-pytorch-1.13.1 --file conda-env-export.yml && \
micromamba activate py310-pytorch-1.13.1 && \
micromamba activate py310-pytorch-1.13.1 && \
micromamba env export > /conda-env-export.yml
micromamba env export > /conda-env-export.yml
%post
%post
export MAMBA_ROOT_PREFIX=/opt/conda && \
eval "$(micromamba shell hook -s posix )" && \
eval "$(micromamba shell hook -s posix )" && \
micromamba activate py310-pytorch-1.13.1 && \
micromamba activate py310-pytorch-1.13.1 && \
"$@"
"$@"
This diff is collapsed.
Click to expand it.
runscript.sh
+
1
−
0
View file @
00122d92
#!/bin/bash
#!/bin/bash
export
MAMBA_ROOT_PREFIX
=
/opt/conda
&&
\
eval
"
$(
micromamba shell hook
-s
posix
)
"
&&
\
eval
"
$(
micromamba shell hook
-s
posix
)
"
&&
\
micromamba activate py310-pytorch-1.13.1
&&
\
micromamba activate py310-pytorch-1.13.1
&&
\
"
$@
"
"
$@
"
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