Commands to generate Image for "thrift-microservices-deps"
cd ~/DeathStarBench/socialNetwork/docker/thrift-microservice-deps/cpp sudo docker build -t <dockerhub-username>/thrift-microservice-deps .
Status of on-going build for thrift-microservice-deps docker image
Verify the images after the build has finished successfully using the command shown below:
docker images
Docker image for thrift-microservice-deps
To push the image to Docker hub, type the following command :
docker push <dockerhub-username>/thrift-microservice-deps
Status of successful push of docker image to Dockerhub
Commands to generate Image for "openresty-thrift"
cd ~/DeathStarBench/socialNetwork/docker/openresty-thrift/xenial mv Dockerfile ../ cd .. sudo docker build -t <dockerhub-username>/openresty-thrift .
Status of on-going build for openresty-thrift docker image
Verify the image after the build is complete:
docker images
Docker image for openresty-thrift
To push the image to Docker hub, type the following command:
docker push <dockerhub-username>/openresty-thrift
Status of successful push of docker image to Dockerhub
Commands to generate Image for "media-frontend"
cd ~/DeathStarBench/socialNetwork/docker/media-frontend/xenial mv Dockerfile ../ cd .. sudo docker build -t <dockerhub-username>/media-frontend .
Status of build completion for media-frontend container image
Verify the images after build is completed successfully:
docker images
Docker image for media-frontend
To push the image to Docker hub, type the following commands:
docker push <dockerhub-username>/media-frontend
Status of successful push of docker image to Dockerhub
Commands to generate Image for "social-network-microservice"
cd ~/DeathStarBench/socialNetwork sudo docker build -t <dockerhub-username>/social-network-microservices .
Status of build completion for social-network-microservices container image
Verify the images after build is complete:
docker images
Docker image for social-network-microservices
To push the image to Docker hub, type the following command as given below,
docker push <dockerhub-username>/social-network-microservices
Status of successful push of docker image to Dockerhub
Commands to generate Image for "mcrouter"
The image for “mcrouter” does not get built directly in the same manner as above images from the folder “mcrouter”. So, we have to build this separately. Also, the build takes a long time. So, please be patient and wait till the build is completed. The Dockerfile for building “mcrouter” is given below for your reference.
# Dockerfile for McRouter FROM ubuntu:20.04 ENV DEBIAN_FRONTEND noninteractive RUN apt update && apt -y install build-essential libtool ragel libssl-dev pkg-config python3.8 git RUN ln -s /usr/bin/python3.8 /usr/bin/python && \ ln -s /usr/bin/python3.8 /usr/bin/python3 RUN git clone && cd libunwind && \ autoreconf --install && ./configure && make -j && make install RUN git clone && cd fbthrift && \ ./build/fbcode_builder/getdeps.py install-system-deps --recursive fbthrift && \ ./build/fbcode_builder/getdeps.py --allow-system-packages build fbthrift WORKDIR /tmp/fbcode_builder_getdeps-ZfbthriftZbuildZfbcode_builder-root/installed RUN cp -rf fbthrift/lib/*.a /usr/lib/ &&\ cp -rf folly/lib/*.a /usr/lib/ &&\ cp -rf fizz/lib/*.a /usr/lib/ &&\ cp -rf wangle/lib/*.a /usr/lib &&\ cp -rf fmt*/lib/*.a /usr/lib &&\ cp -rf python*/lib/fb-py-libs/python-six/six.py /usr/lib/python3.8/ &&\ cp -rf fbthrift/include/thrift /usr/include/ &&\ cp -rf folly/include/folly /usr/include/ &&\ cp -rf fizz/include/fizz /usr/include/ &&\ cp -rf wangle/include/wangle /usr/include/ &&\ cp -rf fmt*/include/fmt /usr/include/ &&\ cp -rf python*/lib/fb-py-libs/python-six/six.py /usr/lib/python3.8/ &&\ cp -rf fbthrift/include/thrift /usr/include/ &&\ cp -rf folly/include/folly /usr/include/ &&\ cp -rf fizz/include/fizz /usr/include/ &&\ cp -rf wangle/include/wangle /usr/include/ &&\ cp -rf fmt*/include/fmt /usr/include/ &&\ cp -rf fbthrift/bin/thrift1 /usr/bin/ ENV FBTHRIFT_BIN=/usr/bin/ RUN git clone && \ cd mcrouter/mcrouter && \ autoreconf --install && \ ./configure && \ make && make install ENV DEBIAN_FRONTEND newt
The command to build the above Dockerfile
sudo docker build -t <dockerhub-username>/mcrouter-docker .
Status of build completion for mcrouter container image
When the build has finished successfully, the image can be verified as below:
docker images
Docker image for mcrouter
NOTE:The arm64 machine used above (arm64-client) is different from earlier (dsb-client) as the machine ran out of space when generating the build for mcrouter which is above 17GB in size. Optimizing the size is still a work in progress.
To push the image to Docker hub, type the following command as given below,
docker push <dockerhub-username>/mcrouter-docker
Status of successful push of docker image to Dockerhub