Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
conda-environments
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
LHCb Core Software
conda-environments
Merge requests
!54
New deployment and update DPA/analysis-productions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
New deployment and update DPA/analysis-productions
new-deployment
into
master
Overview
0
Commits
3
Pipelines
1
Changes
3
Merged
Chris Burr
requested to merge
new-deployment
into
master
3 years ago
Overview
0
Commits
3
Pipelines
1
Changes
3
Expand
0
0
Merge request reports
Viewing commit
86eb47f2
Prev
Next
Show latest version
3 files
+
43
−
19
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
86eb47f2
Use micromamba for CI
· 86eb47f2
Chris Burr
authored
3 years ago
.ci/create_environments.sh
+
12
−
2
Options
#!/usr/bin/env bash
source
/cvmfs/lhcbdev.cern.ch/conda/miniconda/linux-64/prod/bin/activate
yum
install
-y
bzip2
export
MAMBA_ROOT_PREFIX
=
$(
mktemp
-d
)
curl
-L
--silent
https://micromamba.snakepit.net/api/micromamba/linux-64/latest |
tar
-xvj
bin/micromamba
eval
"
$(
./bin/micromamba shell hook
-s
bash
-p
"
$PWD
/micromamba"
)
"
micromamba create
--yes
--prefix
/tmp/prefix
-c
conda-forge python git gitpython mamba
micromamba activate /tmp/prefix
set
-euo
pipefail
IFS
=
$'
\n\t
'
@@ -12,7 +18,11 @@ for env_name in $(.ci/find_new_environments.py); do
test_prefix
=
"/tmp/
${
env_name
}
/
${
timestamp
}
/
${
subdir
}
"
echo
"Creating environment for
${
test_prefix
}
"
# Need these be released/fixed before we can use micromamba here
# https://github.com/mamba-org/mamba/pull/1422
# https://github.com/mamba-org/mamba/pull/1442
# micromamba env export returns an invalid file
mamba
env
create
--prefix
"
${
test_prefix
}
"
--file
"environments/
${
env_name
}
.yaml"
mkdir
-p
"environments-to-deploy/
${
env_name
}
/
${
timestamp
}
"
cond
a
env export
--prefix
"
${
test_prefix
}
"
|
tee
"environments-to-deploy/
${
env_name
}
/
${
timestamp
}
/
${
subdir
}
.yaml"
mamb
a
env export
--prefix
"
${
test_prefix
}
"
|
tee
"environments-to-deploy/
${
env_name
}
/
${
timestamp
}
/
${
subdir
}
.yaml"
done
Loading