-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
25 lines (20 loc) · 954 Bytes
/
Dockerfile.dev
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
FROM continuumio/miniconda3
# This Dockerfile is meant to drive a build in Continuous Integration
# for openschemas. We build from the master branch, which was just
# merged given we are using CI.
# docker build --no-cache -t openschemas/schema-builder .
# docker run -v $PWD:/data openschemas/schema-builder demo
# Default branch to use is master, unless specified otherwise
ARG OPENSCHEMAS_BRANCH=master
ARG OPENSCHEMAS_REPO=openschemas/openschemas-python
RUN apt-get update && apt-get install -y git wget
RUN git clone https://www.github.com/openschemas/map2model /code && \
mkdir -p /data/docs/spec_files /data/specifications
ADD . /code
WORKDIR /code
RUN git clone -b ${OPENSCHEMAS_BRANCH} https://www.github.com/openschemas/openschemas-python && \
cd openschemas-python && \
python setup.py install && \
echo "Installed openschemas from ${OPENSCHEMAS_REPO}, branch ${OPENSCHEMAS_BRANCH}"
WORKDIR /code
ENTRYPOINT ["map2model"]