Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
AKIS Cloud Computing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Max Melchert
AKIS Cloud Computing
Commits
7f1555a0
Commit
7f1555a0
authored
4 months ago
by
Max Melchert
Browse files
Options
Downloads
Patches
Plain Diff
feat: global conda installation; local conda env
parent
189360e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/makefile/basic.mk
+6
-5
6 additions, 5 deletions
src/makefile/basic.mk
with
6 additions
and
5 deletions
src/makefile/basic.mk
+
6
−
5
View file @
7f1555a0
...
...
@@ -5,8 +5,8 @@ SERVER_USER := mmustermann
SERVER_HOST
:=
hyrican-1-extern
## Python Environment
CONDA_PATH
:=
~/.local
/opt/conda
CONDA_ENV
:=
ml
CONDA_PATH
:=
/opt/conda
CONDA_ENV
:=
~/envs/
ml
PYTHON_VERSION
:=
3.10
PYTHON_PACKAGES
:=
tensorflow-cpu ipympl mypy jupyter pystan
\
matplotlib seaborn scikit-learn openpyxl odfpy pyarrow
\
...
...
@@ -28,13 +28,14 @@ REMOTE_PROJECT_DIR := ~/my_project
REMOTE_OUTPUT_FILES
:=
output/
*
## Misc
COPY_LINKS_AS_FILES
?
=
false
COPY_LINKS_AS_FILES
:
=
false
# ---
LOGIN
:=
$(
SERVER_USER
)
@
$(
SERVER_HOST
)
SSH
:=
ssh
$(
LOGIN
)
RSYNC
:=
rsync
--archive
--compress
--progress
$(
if
$(
filter
true
,
$(
COPY_LINKS_AS_FILES
))
,--copy-links
)
MAMBA
:=
source
$(
CONDA_PATH
)
/etc/profile.d/conda.sh
&&
mamba
# TODO: mamba.sh
CONDA
:=
source
$(
CONDA_PATH
)
/etc/profile.d/conda.sh
&&
conda
.PHONY
:
install upload run kill log download delete
...
...
@@ -44,7 +45,7 @@ help: # list targets and usage
install
:
#
install conda environment
$(
SSH
)
'\
$(
COND
A
)
create -
n
$(
CONDA_ENV
)
python=
$(
PYTHON_VERSION
)
$(
PYTHON_PACKAGES
)
\
$(
MAMB
A
)
create -
p
$(
CONDA_ENV
)
python=
$(
PYTHON_VERSION
)
$(
PYTHON_PACKAGES
)
\
'
upload
:
#
upload project files from client to server
...
...
@@ -53,7 +54,7 @@ upload: # upload project files from client to server
run
:
#
execute main script on server
$(
SSH
)
'\
cd
$(
REMOTE_PROJECT_DIR
)
;\
$(
CONDA
)
activate
$(
CONDA_ENV
)
;\
$(
CONDA
)
activate
-p
$(
CONDA_ENV
)
;\
python
$(
MAIN_SCRIPT
)
;\
$(
CONDA
)
deactivate;\
'
...
...
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