-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CE-270] Update Dockerfiles and docs
* Update the dockerfiles by creating a new latest subdir; * Add Cello code into base image, hence other services won't repeat the clone process; * Add documentation for the images. Change-Id: Ib5f8a0870d875e5d44d53b952b5ba3e375b021e3 Signed-off-by: Baohua Yang <yangbaohua@gmail.com>
- Loading branch information
Showing
34 changed files
with
138 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
config/baseimage/Dockerfile.in → docker/baseimage/Dockerfile.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM _DOCKER_BASE_ | ||
COPY baseimage /tmp/baseimage | ||
COPY docker/baseimage /tmp/baseimage | ||
RUN cd /tmp/baseimage && \ | ||
bash install.sh && \ | ||
rm -rf /tmp/baseimage |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM ubuntu:xenial | ||
|
||
LABEL maintainer="github.com/hyperledger/cello" | ||
|
||
WORKDIR /app | ||
|
||
COPY install.sh /tmp/ | ||
|
||
# Install necessary software | ||
RUN cd /tmp/ && \ | ||
bash install.sh && \ | ||
rm -f /tmp/install.sh | ||
|
||
# Clone code and put cello/src/* under /app | ||
RUN cd /tmp && \ | ||
git clone https://github.com/hyperledger/cello.git && \ | ||
cd /tmp/cello && \ | ||
git checkout master && \ | ||
cp -r /tmp/cello/src/* /app && \ | ||
cd /app/ && \ | ||
pip install -r requirements.txt && \ | ||
rm -rf /tmp/cello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 2 additions & 10 deletions
12
src/Dockerfile-restserver → dockerhub/latest/engine/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,12 @@ | ||
|
||
# Copyright IBM Corp, All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
FROM hyperledger/cello-baseimage | ||
MAINTAINER Baohua Yang <"baohyang@cn.ibm.com"> | ||
ENV TZ Asia/Shanghai | ||
|
||
WORKDIR /app | ||
COPY ./requirements.txt /app | ||
RUN pip install -r requirements.txt | ||
|
||
COPY . /app | ||
FROM hyperledger/cello-baseimage:x86_64-latest | ||
|
||
# use this in development | ||
CMD ["python", "restserver.py"] | ||
|
||
# use this in product | ||
#CMD ["gunicorn", "-w", "128", "-b", "0.0.0.0:80", "restserver:app"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright IBM Corp, All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
FROM hyperledger/cello-baseimage:x86_64-latest | ||
|
||
# use this in development | ||
CMD ["python", "dashboard.py"] | ||
|
||
# use this in product | ||
#CMD ["gunicorn", "-w", "128", "-b", "0.0.0.0:8080", "dashboard:app"] | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright IBM Corp, All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
FROM hyperledger/cello-baseimage:x86_64-latest | ||
|
||
# use this in development | ||
CMD ["python", "watchdog.py"] |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.