-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile_worker
36 lines (23 loc) · 967 Bytes
/
Dockerfile_worker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# AWE worker with CWL runner
# docker build -t mgrast/awe-worker -f Dockerfile_worker .
FROM golang:1.12-alpine3.10
# git needed for GIT_COMMIT_HASH
RUN apk update && apk add git
# install cwl-runner with node.js
RUN apk update ; apk add python3-dev nodejs gcc musl-dev libxml2-dev libxslt-dev py3-libxml2 py3-psutil
RUN pip3 install --upgrade pip ; pip3 install cwltool ; ln -s /usr/bin/cwltool /usr/bin/cwl-runner # cwl-runner was pointing to old version
RUN cd / && \
git clone https://github.com/common-workflow-language/cwltool.git && \
cd cwltool && \
git checkout 47435d7bfa0240b799acb8e1e8f6b6f8ce03c53c && \
pip install .
ENV AWE=/go/src/github.com/MG-RAST/AWE
WORKDIR /go/bin
COPY . /go/src/github.com/MG-RAST/AWE
# backwards compatible pathing with old dockerfile
RUN ln -s /go /gopath
# compile AWE
RUN mkdir -p ${AWE} && \
cd ${AWE} && \
go get -d ./awe-worker/ && \
./compile-worker.sh