-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1781b38
commit e1ca6e6
Showing
3 changed files
with
55 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Use a base image with Node.js since Agoric SDK is Node.js based | ||
FROM node:18 | ||
|
||
RUN apt-get update && apt-get install -y curl make build-essential jq | ||
|
||
# Install Go | ||
ENV GO_VERSION 1.20.13 | ||
RUN curl -OL https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz \ | ||
&& tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz \ | ||
&& rm go${GO_VERSION}.linux-amd64.tar.gz | ||
ENV PATH $PATH:/usr/local/go/bin | ||
|
||
# Clone the Agoric SDK repository | ||
WORKDIR /agoric-sdk | ||
COPY . . | ||
|
||
# Install Agoric SDK dependencies | ||
RUN yarn install && yarn build | ||
|
||
# Expose necessary ports | ||
EXPOSE 8000 8000 | ||
|
||
# Start the Agoric blockchain and ag-solo | ||
# You might need to use a script to start these services as they likely need to run in parallel | ||
COPY start-agoric.sh . | ||
RUN chmod +x start-agoric.sh | ||
CMD ["./start-agoric.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
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,5 @@ | ||
#!/bin/bash | ||
|
||
cd /agoric-sdk/packages/cosmic-swingset | ||
make scenario2-setup | ||
make scenario2-run-chain-economy |