Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
547a77f1
Commit
547a77f1
authored
4 years ago
by
Daniel Lyons
Browse files
Options
Downloads
Patches
Plain Diff
Initial docker work
parent
fd37b196
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Dockerfile
+7
-0
7 additions, 0 deletions
Dockerfile
Makefile
+7
-2
7 additions, 2 deletions
Makefile
docker-compose.yml
+0
-0
0 additions, 0 deletions
docker-compose.yml
environment.yml
+1
-0
1 addition, 0 deletions
environment.yml
services/workflow/Dockerfile
+6
-0
6 additions, 0 deletions
services/workflow/Dockerfile
with
21 additions
and
2 deletions
Dockerfile
0 → 100644
+
7
−
0
View file @
547a77f1
FROM
continuumio/miniconda3
RUN
apt-get
install
make
WORKDIR
/code
COPY
environment.yml environment.yml
RUN
conda
env
update
COPY
. .
RUN
conda run
-n
data make python-setup-develop
This diff is collapsed.
Click to expand it.
Makefile
+
7
−
2
View file @
547a77f1
SHELL
:=
/bin/bash
all
:
dev metadata build
.PHONY
:
check-conda
...
...
@@ -6,7 +8,7 @@ check-conda:
(
echo
"Conda does not appear to be installed; please install it and try again"
;
exit
1
)
@
[
"
${
CONDA_PREFIX
}
"
!=
""
]
||
\
(
echo
"Conda does not appear to be active; please activate 'data' and try again"
;
exit
1
)
@
[
"
${
CONDA_DEFAULT_ENV
}
"
=
=
"data"
]
||
\
@
[
"
${
CONDA_DEFAULT_ENV
}
"
=
"data"
]
||
\
(
echo
"Wrong conda environment '
${
CONDA_DEFAULT_ENV
}
' appears to be active; please deactivate, activate 'data' and try again"
;
exit
1
)
.PHONY
:
metadata
...
...
@@ -26,7 +28,10 @@ ${CONDA_PREFIX}: environment.yml
touch
$@
.PHONY
:
dev
dev
:
check-conda ${CONDA_PREFIX} alembic-update
dev
:
check-conda ${CONDA_PREFIX} alembic-update python-setup-develop
.PHONY
:
python-setup-develop
python-setup-develop
:
check-conda ${CONDA_PREFIX}
for
dir
in
shared/
{
schema,workspaces,channels
}
services/
{
workflow,capability
}
apps/cli/
{
utilities/wf_monitor,executables/
{
null,vulture
}}
;
do
\
pushd
$$
dir
;
\
python setup.py develop
;
\
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
0
−
0
View file @
547a77f1
This diff is collapsed.
Click to expand it.
environment.yml
+
1
−
0
View file @
547a77f1
name
:
data
channels
:
-
https://builder.aoc.nrao.edu/conda
-
conda-forge
-
defaults
dependencies
:
-
alembic=1.4
...
...
This diff is collapsed.
Click to expand it.
services/workflow/Dockerfile
0 → 100644
+
6
−
0
View file @
547a77f1
FROM
nrao:workspaces-base
WORKDIR
/code
COPY
. .
RUN
conda run
-n
data python setup.py develop
EXPOSE
3456
CMD
["conda", "run", "-n", "data", "pserve", "development.ini"]
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