Commit abb0b971 authored by Ciarán Ó Rourke's avatar Ciarán Ó Rourke
Browse files

* remove non-dependency aspects of Dockerfile

* refer to FIPhoboServer project for completion of project environment
parent e2b424ca
# superFIPhoboServer
The easiest (and maybe most convenient) way to build the fiphoboserver is by creating a Docker image.
When the following code is added to a Dockerfile in the same directory as the superfiphoboserver directory, you can build it with `docker build -t phobos:debian .` from that directory.
The easiest (and maybe most convenient) way to build fiphoboserver's dependencies is by creating a Docker image.
When the following code is added to a Dockerfile in the same directory as the superfiphoboserver directory, you can build it with `docker build -t superfiphoboserver:debian .` from that directory.
```
FROM debian
......@@ -14,21 +14,17 @@ RUN apt-get -y install git sudo python3-pip
COPY /path_to_superfiphoboserver /home/superfiphoboserver
RUN /home/superfiphoboserver/tools/build_phobos.sh -c
RUN /home/superfiphoboserver/tools/build_proxygen.sh
RUN /home/superfiphoboserver/tools/build_fiphoboserver.sh
RUN /home/superfiphoboserver/tools/install_catch2.sh
RUN pip3 install boto3
RUN mkdir ~/.aws
RUN echo "[default] \naws_access_key_id = OPEN_KEY \naws_secret_access_key = SECRET_KEY" > ~/.aws/credentials
RUN echo "[default] \noutput = json \nregion = eu-west-1" > ~/.aws/config
CMD /home/superfiphoboserver/tools/build_phobos.sh -r && /bin/sh
CMD /home/superfiphoboserver/tools/build_phobos.sh -r
```
This will also set up amazon AWS for the s3 tools in the tests folder.
It is recommended to run this docker image by mounting you current local branch of the fiphoboserver project with `docker run -it -v /path/to/fiphoboserver/to/work/on:/home/superfiphoboserver/external/fiphoboserver phobos:debian`
The executable fiphoboserver will be in the directory `/home/superfiphoboserver/build/fiphoboserver/fiphoboserver`. But remember to rebuild when mounting a different directory into the container!
This will also set up amazon AWS for the s3 tools in the tests folder. The resulting image can then be used as the base image for the [FIPhoboServer](oilgas/ltfs/fiphoboserver) project.
Subtrees are added using the following commands:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment