-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(docker ): containersation changes
Added Dockerfile and docker-compose.yml Signed-off-by: sedhu<[email protected]>
- Loading branch information
Showing
11 changed files
with
18,062 additions
and
15,218 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
./node_modules | ||
./dist | ||
.git | ||
.gitignore | ||
node_modules | ||
npm-debug.log | ||
Dockerfile* | ||
docker-compose* | ||
README.md | ||
LICENSE | ||
.vscode |
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,14 @@ | ||
./node_modules | ||
./dist | ||
.git | ||
.gitignore | ||
node_modules | ||
artifacts | ||
build | ||
cache | ||
npm-debug.log | ||
Dockerfile* | ||
docker-compose* | ||
README.md | ||
LICENSE | ||
.vscode |
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,40 @@ | ||
|
||
|
||
# From Alpine 3.14 as the Base Image | ||
FROM alpine:3.14 | ||
|
||
# Maintainer | ||
LABEL maintainer = "[email protected]" | ||
|
||
# Desc | ||
LABEL description="VMware Blockchain Starter Kit - ERC20 Swap" | ||
|
||
# Copy the sample applications | ||
COPY . /workspace/erc20-swap | ||
# COPY ./erc20-load-test-tool /workspace/erc20-load-test-tool | ||
|
||
|
||
|
||
# Install Dependencies | ||
RUN apk add --update nodejs=14.18.1-r0 | ||
RUN apk add --update npm=7.17.0-r0 | ||
|
||
# Run build Commands | ||
WORKDIR /workspace/erc20-swap | ||
|
||
RUN npm install | ||
RUN npm run clean | ||
# RUN npm run build | ||
# RUN npm run deploy:concord | ||
# RUN npm run start | ||
|
||
# Expose Ports | ||
EXPOSE 3000 | ||
|
||
# Enviroinment Variables | ||
ENV VMBC_CHAIN_ID=5000 | ||
ENV VMBC_URL=http://host.docker.internal:8545 | ||
|
||
CMD ./run.sh | ||
|
||
# docker build -f Dockerfile -t vmbc-erc20-swap-kit:1 . |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
docker rmi vmbc-erc20-swap-kit:latest -f | ||
docker build -f Dockerfile -t vmbc-erc20-swap-kit:latest . |
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,13 @@ | ||
version: "3.8" | ||
services: | ||
|
||
erc20-swap: | ||
image: vmbc-erc20-swap-kit:latest | ||
container_name: vmbc-erc20-swap-kit | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
environment: | ||
- VMBC_URL=http://host.docker.internal:8545 | ||
- VMBC_CHAIN_ID=5000 | ||
ports: | ||
- 3000:3000 |
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.