-
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-397] Fix user dashboard dockerhub build error
Remove nginx,mongo dockerhub image build. Change-Id: I06c8d8c5ced5ed90cf66bdace82f36fa730958d9 Signed-off-by: Haitao Yue <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,15 @@ MAINTAINER haitao yue "[email protected]" | |
RUN cd /tmp && git clone https://github.com/hyperledger/cello.git | ||
RUN cd /tmp/cello/user-dashboard/src && cp package.json yarn.lock / && cd / && yarn install -g --verbose | ||
ENV PATH ${PATH}:/node_modules/.bin | ||
RUN mkdir -p /var/www | ||
RUN cp -r /tmp/cello/user-dashboard/src /var/www | ||
RUN mv /tmp/cello/user-dashboard/src /var/www | ||
RUN cd /var/www && ln -sf /node_modules . && npm run build | ||
WORKDIR /var/www | ||
EXPOSE 8080 | ||
|
||
ENV FABRIC_VERSION 1.0.5 | ||
RUN cd /tmp && ARCH=$(echo "$(uname -s|tr '[:upper:]' '[:lower:]'|sed 's/mingw64_nt.*/windows/')-$(uname -m | sed 's/x86_64/amd64/g')" | awk '{print tolower($0)}') && echo $ARCH &&wget -c https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/${ARCH}-${FABRIC_VERSION}/hyperledger-fabric-${ARCH}-${FABRIC_VERSION}.tar.gz && tar -zxvf hyperledger-fabric-${ARCH}-${FABRIC_VERSION}.tar.gz && mv bin/configtxgen /usr/local/bin/configtxgen | ||
COPY user-dashboard/fabric/fabric /etc/hyperledger/fabric | ||
RUN mkdir -p /etc/hyperledger | ||
RUN mv /tmp/cello/user-dashboard/fabric/fabric /etc/hyperledger/fabric | ||
ENV FABRIC_CFG_PATH /etc/hyperledger/fabric | ||
|
||
CMD ln -sf /node_modules . && npm run start |