Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fireatlas_nrt
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
2
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
gcorradini
fireatlas_nrt
Commits
057f6ee3
Commit
057f6ee3
authored
2 years ago
by
Katrina Sharonin
Browse files
Options
Downloads
Patches
Plain Diff
Create micromamba shell script
parent
9f689766
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_dps_micro.sh
+41
-0
41 additions, 0 deletions
run_dps_micro.sh
with
41 additions
and
0 deletions
run_dps_micro.sh
0 → 100644
+
41
−
0
View file @
057f6ee3
#!/bin/bash
# set -euxo pipefail
set
-eo
pipefail
basedir
=
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
-P
)
echo
"Basedir:
$basedir
"
echo
"Initial working directory:
$(
pwd
-P
)
"
# install micromamba
curl micro.mamba.pm/install.sh | bash
export
MAMBA_ROOT_PREFIX
=
"/projects/micromamba"
# optional, defaults to ~/micromamba
eval
"
$(
/projects/.local/bin/micromamba shell hook
-s
posix
)
"
echo
"micromamba version:
$(
micromamba
--version
)
"
echo
"conda:
$(
which conda
)
"
[
-d
"/projects/micromamba/envs"
]
&&
echo
"basic mamba envs ready: /projects/micromamba/envs"
[
-d
"/projects/micromamba/envs/rio-tiler-new"
]
&&
echo
"rio-tiler-new already exists at path: /projects/micromamba/envs/rio-tiler-new"
if
[
!
-d
"/projects/micromamba/envs/rio-tiler-new"
]
;
then
micromamba create
-f
"/projects/rio-tiler-new.yml"
fi
# conda prefix check
# FLAG - CONTRADICTION: conda claiming path DNE...
echo
$CONDA_PREFIX
cd
-
echo
"
$PWD
"
if
[
$CONDA_PREFIX
!=
"/projects/micromamba/envs/rio-tiler-new"
]
;
then
# activate env
echo
"activating rio-tiler-new..."
micromamba activate rio-tiler-new
fi
echo
"
$PWD
"
cd
-
cd
-
[
$CONDA_PREFIX
!=
"/projects/micromamba/envs/rio-tiler-new"
]
&&
echo
"Env activ failed"
\ 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