Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Updating dockerfile with changes in develop branch to fix failing builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Asiya-Yunusa committed Nov 6, 2023
1 parent b07e760 commit 79a34ca
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
# inject the expected React package URL for CORS logic
environment-variables: |
RUST_LOG=INFO
VITE_URL=https://zksync-cairo-remix-dev.nethermind.io
VITE_URL=https://zksync-plugin.nethermind.dev
PROMTAIL_USERNAME=${{secrets.PROMTAIL_USERNAME}}
PROMTAIL_PASSWORD=${{secrets.PROMTAIL_PASSWORD}}
Expand Down
36 changes: 25 additions & 11 deletions DockerfileRocket
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,32 @@ FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN=true

RUN apt-get clean

RUN apt-get update
RUN apt-get install -y curl \
git \
cmake \
build-essential \
gcc
git \
cmake \
build-essential \
gcc \
apt-transport-https \
software-properties-common \
wget

# Installing grafana agent
RUN mkdir -p /etc/apt/keyrings/
RUN wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | tee /etc/apt/keyrings/grafana.gpg > /dev/null
RUN echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | tee -a /etc/apt/sources.list.d/grafana.list

RUN apt-get update

RUN apt-get install grafana-agent

WORKDIR /opt/app

SHELL ["/bin/bash", "-lc"]

# copy Remix plugin source and install Rust
COPY . /opt/app

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y
Expand All @@ -20,17 +37,14 @@ RUN whoami

ENV PATH="/root/.cargo/bin:${PATH}"

RUN git submodule update --init

# Build the API service
WORKDIR /opt/app/api
RUN cargo build

# Build the cairo compiler
WORKDIR /opt/app/api/cairo
RUN cargo run -q --bin cairo-compile -- --version
RUN cargo build --release

RUN chmod +x ./docker_run.sh

EXPOSE 8000

WORKDIR /opt/app/api
ENTRYPOINT [ "cargo", "run" ]
ENTRYPOINT [ "./docker_run.sh" ]

0 comments on commit 79a34ca

Please sign in to comment.