-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker-container): create docker image from Dockerfile (#90)
* feat(docker-container): Draft: create docker image from Dockerfile * feat(docker-container): Solved bug when building image #89 * feat(use-docker): run soroban-preview docker container in quickstart * feat(docker): add instructions to readme * feat(docker): solve soroban-cli config network bug * Review feedback * Pass cli args through to quickstart --------- Co-authored-by: Paul Bellamy <[email protected]>
- Loading branch information
Showing
6 changed files
with
110 additions
and
11 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,19 @@ | ||
# Based on Preview 7 | ||
# https://soroban.stellar.org/docs/reference/releases | ||
|
||
FROM ubuntu:20.04 | ||
|
||
RUN apt update && apt install -y curl | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rust_install.sh | ||
RUN sh rust_install.sh -y | ||
RUN echo $PATH | ||
ENV PATH="$PATH:/root/.cargo/bin" | ||
RUN rustup target add wasm32-unknown-unknown | ||
|
||
RUN apt install -y build-essential | ||
RUN cargo install --locked --version 0.6.0 soroban-cli | ||
# WORKDIR / | ||
RUN mkdir /workspace | ||
WORKDIR /workspace | ||
ENV IS_USING_DOCKER=true |
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
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,7 @@ | ||
#!/bin/bash | ||
|
||
# Build image and tag it with image name and version | ||
docker build . \ | ||
--tag soroban-preview:7 \ | ||
--force-rm \ | ||
--rm |
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