-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CE-678] Add dockerhub files for common,agent images
For common, agents images add dockerfiles. Change-Id: Ibe0f848bfab269f74e79696f91c4eb0bbf5b9c0b Signed-off-by: Haitao Yue <[email protected]>
- Loading branch information
Showing
13 changed files
with
98 additions
and
132 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
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,22 @@ | ||
FROM busybox as downloader | ||
|
||
RUN cd /tmp && wget -c https://github.com/hyperledger/cello/archive/master.zip && \ | ||
unzip master.zip | ||
|
||
FROM python:3.6 | ||
|
||
LABEL maintainer="github.com/hyperledger/cello" | ||
|
||
COPY --from=downloader /tmp/cello-master/src/agent/kubernetes-agent/requirements.txt / | ||
RUN pip install -r /requirements.txt | ||
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl && \ | ||
mv kubectl /usr/local/bin/kubectl | ||
|
||
COPY --from=downloader /tmp/cello-master/src/agent/kubernetes-agent/src /app | ||
|
||
WORKDIR /app | ||
|
||
ENV KUBECONFIG /app/.kube/config | ||
ENV PYTHONPATH /app:$PATHONPATH | ||
|
||
CMD python main.py |
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,25 @@ | ||
FROM busybox as downloader | ||
|
||
RUN cd /tmp && wget -c https://github.com/hyperledger/cello/archive/master.zip && \ | ||
unzip master.zip | ||
|
||
FROM python:3.6 | ||
|
||
LABEL maintainer="github.com/hyperledger/cello" | ||
|
||
RUN apt-get update && apt-get install -y gettext-base graphviz libgraphviz-dev && \ | ||
apt-get autoclean && apt-get clean && apt-get autoremove && rm -rf /var/cache/apt/ | ||
COPY --from=downloader /tmp/cello-master/src/api-engine/requirements.txt / | ||
RUN cd / && \ | ||
pip install -r requirements.txt | ||
|
||
COPY --from=downloader /tmp/cello-master/src/api-engine /var/www/server | ||
COPY --from=downloader /tmp/cello-master/src/api-engine/docker/uwsgi/server.ini /etc/uwsgi/apps-enabled/ | ||
COPY --from=downloader /tmp/cello-master/src/api-engine/docker/scripts /scripts | ||
COPY --from=downloader /tmp/cello-master/build_image/docker/common/api-engine/entrypoint.sh / | ||
|
||
RUN cd /var/www/server/api_engine && cp settings.py.initial settings.py && cd .. && python manage.py collectstatic --noinput | ||
|
||
WORKDIR /var/www/server | ||
|
||
CMD bash /entrypoint.sh |
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,26 @@ | ||
FROM busybox as downloader | ||
|
||
RUN cd /tmp && wget -c https://github.com/hyperledger/cello/archive/master.zip && \ | ||
unzip master.zip | ||
|
||
FROM circleci/node:latest-browsers as builder | ||
|
||
LABEL maintainer="github.com/hyperledger/cello" | ||
|
||
WORKDIR /usr/src/app/ | ||
USER root | ||
COPY --from=downloader /tmp/cello-master/src/dashboard/package.json ./ | ||
RUN yarn | ||
COPY --from=downloader /tmp/cello-master/src/dashboard ./ | ||
RUN npm run build | ||
|
||
FROM nginx:1.15.12 | ||
|
||
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html | ||
COPY --from=downloader /tmp/cello-master/build_image/docker/common/dashboard/config-nginx.sh / | ||
RUN chmod +x /config-nginx.sh | ||
COPY --from=downloader /tmp/cello-master/build_image/docker/common/dashboard/default.conf.tmpl /etc/nginx/conf.d/default.conf.tmpl | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["bash", "-c", "/config-nginx.sh && nginx -g 'daemon off;'"] |
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
build_image/dockerhub/latest/operator-dashboard/Dockerfile
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.