Skip to content

Commit

Permalink
Update devcontainer docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Dec 1, 2023
1 parent 4a9305f commit 4979471
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): buster, bullseye
ARG VARIANT
FROM mcr.microsoft.com/vscode/devcontainers/rust:0-${VARIANT}
FROM mcr.microsoft.com/vscode/devcontainers/rust:${VARIANT}

# Install additional packages
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
Expand All @@ -28,10 +28,9 @@ ENV NVM_SYMLINK_CURRENT=true \
COPY .devcontainer/library-scripts/node-debian.sh /tmp/library-scripts/
RUN apt-get update && bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}"

RUN pip install starknet-devnet==v0.5.0a2

# Install dojoup for vscode user
# Install dojoup and scarb for vscode user
USER vscode
RUN curl -L https://install.dojoengine.org | bash
RUN curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash

ENV PATH=${PATH}:/workspaces/dojo/target/release
4 changes: 3 additions & 1 deletion .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:

- name: Set Docker tag for push event
if: github.event_name == 'push'
run: echo "DOCKER_TAG=${{ github.sha }}" >> $GITHUB_ENV
run: |
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c 1-7)
echo "DOCKER_TAG=$SHORT_SHA" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v2
Expand Down

0 comments on commit 4979471

Please sign in to comment.