Skip to content
Snippets Groups Projects
Commit c4b1e32d authored by Andrew Kapuscinski's avatar Andrew Kapuscinski
Browse files

Ws 422 cache image

parent 2b17c9cd
No related branches found
No related tags found
1 merge request!283Ws 422 cache image
Pipeline #1892 passed
......@@ -8,15 +8,3 @@
-e ../packages/apps/cli/utilities/ws_metrics
-e ../packages/apps/cli/executables/pexable/null
-e ../packages/testing
pycapo == 0.3.0
pyramid == 1.10
pyramid_beaker == 0.8
pyramid_debugtoolbar == 4.5
pyramid_retry == 2.1.1
pyramid_tm == 2.2.1
pytest == 5.4.3
requests == 2.23
sqlalchemy == 1.3.23
waitress == 1.4
zope.sqlalchemy == 1.1
......@@ -46,7 +46,7 @@ requires = [
"pyramid_retry",
"requests",
"ssa-schema",
"sqlalchemy",
"sqlalchemy==1.3.23",
"waitress",
"ssa-workspaces",
"zope.sqlalchemy",
......
# This is nrao:workflow
FROM ssa-containers.aoc.nrao.edu/ops/base:workspaces
ARG TAGNAME="tmp"
FROM cache:${TAGNAME}
USER root
# HTCondor install
RUN apt update && apt install -y wget gnupg sudo
......@@ -26,23 +29,10 @@ USER vlapipe
# set ownership of content to vlapipe and the vlapipe group
COPY --chown=vlapipe:vlapipe ./services/workflow ./
# Change working directory to /packages
WORKDIR /packages/
# Copy shared, apps/cli/, and testing directories to /packages
# set ownership of content to vlapipe and the vlapipe group id
COPY --chown=vlapipe:vlapipe ./shared ./shared
COPY --chown=vlapipe:vlapipe ./apps/cli ./apps/cli
COPY --chown=vlapipe:vlapipe ./testing ./testing
# Change working directory to /code
WORKDIR /code
ENV PYTHONPATH "${PYTHONPATH}:/home/vlapipe/.local"
ENV PATH "${PATH}:/home/vlapipe/.local/bin"
RUN pip install --user -r requirements.txt \
&& python setup.py develop --install-dir="~/.local"
RUN python setup.py develop --user
# Set Capo
ARG capo_env=dsoc-dev
......
# Workflow service layer
# This is nrao:workflow
FROM ssa-containers.aoc.nrao.edu/ops/base:workspaces
FROM cache:tmp
# Get workflow code into the image
WORKDIR /code
COPY ./services/workflow ./
WORKDIR /packages/
COPY ./shared ./shared
COPY ./apps/cli ./apps/cli
COPY ./testing ./testing
COPY --chown=vlapipe:vlapipe ./services/workflow ./
# Python library installation
WORKDIR /code/
RUN pip install -r requirements.txt && python setup.py develop
USER vlapipe
RUN python setup.py develop --user
USER root
# HTCondor install
RUN apt update && apt install -y wget gnupg sudo
......
......@@ -29,11 +29,4 @@ chown root:vlapipe "$WORKFLOW_DIR"/*
chmod 777 "$WORKFLOW_DIR"
chmod 777 "$WORKFLOW_DIR"/*
if [ "$CAPO_PROFILE" = "dsoc-dev" ] || [ "$CAPO_PROFILE" = "dsoc-test" ]
then
# If on dev or test, boot workflow as vlapipe
su vlapipe -c "/code/bin/boot-workflow.sh"
else
# If local, just boot as root
/code/bin/boot-workflow.sh
fi
su vlapipe -c "/code/bin/boot-workflow.sh"
......@@ -14,10 +14,8 @@ skip_arg="--skip-empty"
# Install testing requirements
init () {
pip install --user -r /packages/testing/requirements.txt
pushd /packages/testing
python setup.py develop
python setup.py develop --user
popd
# if exists, remove old .coverage file
......
......@@ -14,19 +14,3 @@
-e ../packages/apps/cli/executables/pexable/null
-e ../packages/apps/cli/executables/vela
-e ../packages/testing
psycopg2 >= 2.8.5,<3.0
pycapo == 0.3.1
py-dag == 3.0.1
pyramid == 1.10
pyramid_beaker == 0.8
pyramid_debugtoolbar == 4.5
pyramid_retry == 2.1.1
pyramid_tm == 2.2.1
pytest == 5.4.3
pytest-resource-path == 1.2.1
requests == 2.23
requests_mock == 1.9.2
sqlalchemy == 1.3.23
waitress == 1.4
zope.sqlalchemy == 1.1
......@@ -46,7 +46,7 @@ requires = [
"pyramid_retry",
"requests",
"ssa-schema",
"sqlalchemy",
"sqlalchemy==1.3.23",
"waitress",
"ssa-workspaces",
"zope.sqlalchemy",
......
......@@ -19,7 +19,7 @@ setup(
license="GPL",
install_requires=[
"pendulum==2.1.2",
"sqlalchemy",
"sqlalchemy==1.3.23",
"pycapo",
"psycopg2",
"mysqlclient",
......
......@@ -12,7 +12,7 @@ requires = [
"pycapo",
"marshmallow",
"ssa-schema",
"sqlalchemy",
"sqlalchemy==1.3.23",
"cx-Oracle",
"chevron",
"requests",
......
......@@ -13,10 +13,3 @@
-e ../packages/apps/cli/executables/pexable/null
-e ../packages/apps/cli/executables/pexable/casa_envoy
-e ../packages/apps/cli/executables/tmpdir_eraser
pytest>=5.4,<6.0
pendulum==2.1.2
pytest-mock==3.3.1
behave==1.2.6
pytest-cov==2.11
mock_alchemy==0.2.1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment