Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Commit

Permalink
🐳 copy entire directory into /tmp.
Browse files Browse the repository at this point in the history
  • Loading branch information
perillaroc committed Nov 21, 2018
1 parent 75a6f31 commit 37b7243
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 7 additions & 10 deletions nwpc-ecflow-collector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@ FROM nwpc/ecflow:python

LABEL maintainer="[email protected]"

RUN apt-get update \
&& apt-get -y install sudo \
&& rm -rf /var/lib/apt/lists/*

COPY vendor /tmp/vendor
COPY nwpc-ecflow-collector /srv/nwpc-ecflow-collector
COPY . /srv/nwpc-system-collector

RUN set -ex \
&& cd /tmp/vendor/nwpc-hpc-model \
&& cd /srv/nwpc-system-collector/vendor/nwpc-hpc-model \
&& pip install . \
&& cd /tmp/vendor/nwpc-workflow-model \
&& cd /srv/nwpc-system-collector/vendor/nwpc-workflow-model \
&& pip install . \
&& rm -rf /tmp/* \
&& cd /srv/nwpc-system-collector \
&& cp -r nwpc-ecflow-collector /srv \
&& cd /srv/nwpc-ecflow-collector \
&& pip install . \
&& chmod -R go+rx /srv/nwpc-ecflow-collector
&& chmod -R go+rx /srv/nwpc-ecflow-collector \
&& rm -rf /srv/nwpc-system-collector

WORKDIR /srv/nwpc-ecflow-collector/nwpc_ecflow_collector

Expand Down
4 changes: 4 additions & 0 deletions nwpc-ecflow-collector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Run script `ecflow_node_collector.py` or `ecflow_status_collector.py`.

## Docker

`nwpc-ecflow-collector` docker uses `nwpc/ecflow:python` image
which is build from [`ecflow-docker`](https://github.com/perillaroc/ecflow-docker).
Please make sure you have this image before building.

Build docker image from project's root directory.

```
Expand Down

0 comments on commit 37b7243

Please sign in to comment.