Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update anchor-cli to 0.24.2 #1

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions Dockerfile

This file was deleted.

27 changes: 27 additions & 0 deletions anchor-30/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM rust:1.82

ARG SOLANA_VERSION=v2.0.20
ARG ANCHOR_VERSION=v0.30.1

RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y pkg-config build-essential libudev-dev clang
RUN rustup component add rustfmt clippy

RUN sh -c "$(curl -sSfL https://release.anza.xyz/$SOLANA_VERSION/install)"
ENV PATH=/root/.local/share/solana/install/active_release/bin:$PATH

RUN cargo install --git https://github.com/coral-xyz/anchor --tag $ANCHOR_VERSION anchor-cli --locked

RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install -y nodejs

RUN npm install --global yarn

COPY shell-exec.sh /bin/shell-exec
RUN chmod +x /bin/shell-exec

EXPOSE 8080
EXPOSE 9000

WORKDIR workspace/
28 changes: 28 additions & 0 deletions genopets-solana/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM rust:1.69

ARG SOLANA_VERSION=v1.16.27
ARG ANCHOR_VERSION=v0.28.0

RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y pkg-config build-essential libudev-dev clang
RUN rustup component add rustfmt clippy

RUN sh -c "$(curl -sSfL https://release.solana.com/$SOLANA_VERSION/install)"
ENV PATH=/root/.local/share/solana/install/active_release/bin:$PATH

RUN cargo install --git https://github.com/coral-xyz/anchor --tag $ANCHOR_VERSION anchor-cli --locked
# RUN cargo install --git https://github.com/skrrb/anchor --branch cli/run-test-subset anchor-cli --locked

RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install -y nodejs

RUN npm install --global yarn

COPY shell-exec.sh /bin/shell-exec
RUN chmod +x /bin/shell-exec

EXPOSE 8080
EXPOSE 9000

WORKDIR workspace/