
I replaced the Dockerfiles that existed, which pulled anchor down from git with a single Dockerfile that uses the local version of anchor. This makes testing local changes to anchor very simple. I also updated the README to reflect these changes and fixed the varying line lenghts within that file. Change-Id: I313c840f594639e6c92ed6ff067da79652b74ed0
15 lines
334 B
Docker
15 lines
334 B
Docker
FROM python:2.7
|
|
RUN pip install pecan
|
|
ADD . /code
|
|
WORKDIR /code
|
|
RUN pip install -e .
|
|
RUN openssl req -out CA/root-ca.crt \
|
|
-keyout CA/root-ca-unwrapped.key \
|
|
-newkey rsa:4096 \
|
|
-subj "/CN=Anchor Test CA" \
|
|
-nodes \
|
|
-x509 \
|
|
-days 365
|
|
RUN chmod 0400 CA/root-ca-unwrapped.key
|
|
ENTRYPOINT ["pecan", "serve", "/code/config.py"]
|