Skip to content

Commit

Permalink
Remove references to public Docker images. (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
juharris authored Sep 10, 2024
1 parent 4066eeb commit cc4a159
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/demo-prod.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Disabled because we deleted the Azure resources.
name: "Demo: Deploy Prod"

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/demo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- name: Build
run: |
pushd demo
# We no longer push Docker images because we deleted some Azure resources, so mcr.microsoft.com might stop working.
docker pull mcr.microsoft.com/samples/blockchain-ai/0xdeca10b-demo:latest
docker build -f Dockerfile \
--cache-from mcr.microsoft.com/samples/blockchain-ai/0xdeca10b-demo:latest \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Disabled because we deleted the Azure resources.
name: "Push Docker Images"

on:
Expand Down
20 changes: 14 additions & 6 deletions demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,21 @@ conda activate python2
cd 0xDeCA10B/demo
```

<!-- Probably won't work because we deleted some Azure resources.
3. You can use a Docker image by running:
```bash
docker run --rm -it -p 3000:3000 -p 5387:5387 -p 7545:7545 -v ${PWD}:/root/workspace/demo -v /root/workspace/demo/node_modules -v /root/workspace/demo/client/node_modules --name decai-demo mcr.microsoft.com/samples/blockchain-ai/0xdeca10b-demo bash
-->

3. ### Using a Docker Image
```bash
docker build -t decai-demo .

docker run --rm -it -p 3000:3000 -p 5387:5387 -p 7545:7545 -v ${PWD}:/root/workspace/demo -v /root/workspace/demo/node_modules -v /root/workspace/demo/client/node_modules --name decai-demo decai-demo bash
```

In the container:
```bash
# If this is your first time setting up then run:
./setup_libs.sh

Expand All @@ -61,12 +72,8 @@ Next, refer to the Deploy steps lower down on this page.

If you want to use a different version of the Docker image, then you can find the available tags for the Docker image [here](https://mcr.microsoft.com/v2/samples/blockchain-ai/0xdeca10b-demo/tags/list) and check the details for the latest tag [here](https://mcr.microsoft.com/v2/samples/blockchain-ai/0xdeca10b-demo/manifests/latest).

### Building the Docker Image
(Optional)
If you want to build your own fresh image:
```bash
docker build -t decai-demo .
```

<!-- Won't work because we deleted some Azure resources.
#### (Microsoft Devs) Updating the Public Image
First get permission to push 0xdeca10bcontainerreg.azurecr.io.
Expand All @@ -88,6 +95,7 @@ To update dependencies after already setting up:
```bash
./setup.sh
```
-->

# Deploy
There is a video example showing how to deploy <a href="https://aka.ms/0xDeCA10B-deploy" target="_blank">here</a>.
Expand Down
15 changes: 10 additions & 5 deletions simulation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,24 @@ pip install -e .
cd 0xDeCA10B/simulation
```

<!-- Probably won't work because we deleted some Azure resources.
3. You can use a Docker image by running:
```bash
docker run --rm -it -p 5006:5006 -v ${PWD}:/root/workspace/0xDeCA10B/simulation --name decai-simulation mcr.microsoft.com/samples/blockchain-ai/0xdeca10b-simulation bash
```
-->

4. You have completed the setup steps.
Next, refer to the Running Simulations steps lower down on this page.

### Building the Docker Image
If you want to build your own fresh image:
3. ### Using a Docker Image
```bash
docker build -t decai-simulation .

docker run --rm -it -p 5006:5006 -v ${PWD}:/root/workspace/0xDeCA10B/simulation --name decai-simulation decai-simulation bash
```

4. You have completed the setup steps.
Next, refer to the Running Simulations steps lower down on this page.

<!-- Won't work because we deleted some Azure resources.
#### (Microsoft Devs) Updating the Public Image
First get permission to push 0xdeca10bcontainerreg.azurecr.io.
Expand All @@ -69,6 +73,7 @@ docker tag decai-simulation 0xdeca10bcontainerreg.azurecr.io/public/samples/bloc
docker push 0xdeca10bcontainerreg.azurecr.io/public/samples/blockchain-ai/0xdeca10b-simulation:${newVersion}
docker push 0xdeca10bcontainerreg.azurecr.io/public/samples/blockchain-ai/0xdeca10b-simulation:latest
```
-->

# Running Simulations
Run:
Expand Down

0 comments on commit cc4a159

Please # to comment.