Skip to content

Commit

Permalink
[CE-260] Add dockerfiles for latest
Browse files Browse the repository at this point in the history
Add dockerfiles for operator-dashboard/watchdog/engine for latest tag

Update "download_images.sh" for master node

Change-Id: Idfa3c2dc5396a65ca6837a4274f96ea736c6be56
Signed-off-by: yoyokeen <602840159@qq.com>
  • Loading branch information
yoyokeen committed Feb 9, 2018
1 parent 1c1a332 commit 2891c4f
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 1 deletion.
23 changes: 23 additions & 0 deletions dockerhub/engine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright IBM Corp, All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
FROM hyperledger/cello-baseimage:x86_64-latest
MAINTAINER Yinxia Zhang <"zhangyinxia@inspur.com">
ENV TZ Asia/Shanghai

WORKDIR /app
COPY ./requirements.txt /app
RUN pip install -r requirements.txt

RUN apt-get install -y wget git-core
RUN cd /tmp && git clone https://github.com/hyperledger/cello.git
RUN cp -r /tmp/cello/src /app

WORKDIR /app/src
# use this in development
CMD ["python", "restserver.py"]

# use this in product
#CMD ["gunicorn", "-w", "128", "-b", "0.0.0.0:80", "restserver:app"]

20 changes: 20 additions & 0 deletions dockerhub/engine/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

# Copyright IBM Corp, All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
docker-compose>=1.16.0,<=1.18.0
Flask>=0.10.0,<=1.12.0
greenlet>=0.4.5,<=0.4.12
gunicorn>=19.0.0,<=19.6.0
pymongo>=3.2.0,<=3.4.0
requests>=2.0.0,<=2.13.0
mongoengine>=0.10.0,<=0.13.0
flask-login>=0.4.0,<=0.4.0
bcrypt>=3.0.0,<=3.1.0
flask-restful>=0.2.1,<=0.3.6
Flask-Testing>=0.5.0,<=0.6.2
Faker>=0.7.17,<=0.7.18
pyvmomi>=5.5.0,<=6.5.0
enum34>=1.1.0,<=1.1.6
marshmallow>=2.13.6,<=2.14.0
24 changes: 24 additions & 0 deletions dockerhub/operator-dashboard/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright IBM Corp, All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
FROM hyperledger/cello-baseimage:x86_64-latest
MAINTAINER Yinxia Zhang <"zhangyinxia@inspur.com">
ENV TZ Asia/Shanghai

WORKDIR /app
COPY ./requirements.txt /app
RUN pip install -r requirements.txt

RUN apt-get install -y wget git-core
RUN cd /tmp && git clone https://github.com/hyperledger/cello.git
RUN cp -r /tmp/cello/src /app

WORKDIR /app/src

# use this in development
CMD ["python", "dashboard.py"]

# use this in product
#CMD ["gunicorn", "-w", "128", "-b", "0.0.0.0:8080", "dashboard:app"]

20 changes: 20 additions & 0 deletions dockerhub/operator-dashboard/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

# Copyright IBM Corp, All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
docker-compose>=1.16.0,<=1.18.0
Flask>=0.10.0,<=1.12.0
greenlet>=0.4.5,<=0.4.12
gunicorn>=19.0.0,<=19.6.0
pymongo>=3.2.0,<=3.4.0
requests>=2.0.0,<=2.13.0
mongoengine>=0.10.0,<=0.13.0
flask-login>=0.4.0,<=0.4.0
bcrypt>=3.0.0,<=3.1.0
flask-restful>=0.2.1,<=0.3.6
Flask-Testing>=0.5.0,<=0.6.2
Faker>=0.7.17,<=0.7.18
pyvmomi>=5.5.0,<=6.5.0
enum34>=1.1.0,<=1.1.6
marshmallow>=2.13.6,<=2.14.0
22 changes: 22 additions & 0 deletions dockerhub/watchdog/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright IBM Corp, All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
FROM hyperledger/cello-baseimage:x86_64-latest
MAINTAINER Yinxia Zhang <"zhangyinxia@inspur.com">
ENV TZ Asia/Shanghai

WORKDIR /app
COPY ./requirements.txt /app
RUN pip install -r requirements.txt

RUN apt-get install -y wget git-core
RUN cd /tmp && git clone https://github.com/hyperledger/cello.git
RUN cp -r /tmp/cello/src /app

WORKDIR /app/src

# use this in development
CMD ["python", "watchdog.py"]


20 changes: 20 additions & 0 deletions dockerhub/watchdog/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

# Copyright IBM Corp, All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
docker-compose>=1.16.0,<=1.18.0
Flask>=0.10.0,<=1.12.0
greenlet>=0.4.5,<=0.4.12
gunicorn>=19.0.0,<=19.6.0
pymongo>=3.2.0,<=3.4.0
requests>=2.0.0,<=2.13.0
mongoengine>=0.10.0,<=0.13.0
flask-login>=0.4.0,<=0.4.0
bcrypt>=3.0.0,<=3.1.0
flask-restful>=0.2.1,<=0.3.6
Flask-Testing>=0.5.0,<=0.6.2
Faker>=0.7.17,<=0.7.18
pyvmomi>=5.5.0,<=6.5.0
enum34>=1.1.0,<=1.1.6
marshmallow>=2.13.6,<=2.14.0
2 changes: 1 addition & 1 deletion scripts/master_node/download_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ echo_b "Check node:9.2 image."
ARCH=$(uname -m)
VERSION=latest

for IMG in baseimage mongo nginx ; do
for IMG in baseimage engine mongo nginx operator-dashboard user-dashboard watchdog ; do
HLC_IMG=hyperledger/cello-${IMG}
if [ -z "$(docker images -q ${HLC_IMG} 2> /dev/null)" ]; then # not exist
echo_b "Pulling ${HLC_IMG}:${ARCH}-${VERSION} from dockerhub"
Expand Down

0 comments on commit 2891c4f

Please sign in to comment.