diff --git a/rs/rosetta-api/Dockerfile b/rs/rosetta-api/Dockerfile deleted file mode 100644 index c99a22051bd..00000000000 --- a/rs/rosetta-api/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ -FROM ubuntu:20.04 - -ARG RELEASE - -LABEL RELEASE=${RELEASE} - -RUN \ - apt update && \ - apt install -y \ - ca-certificates \ - libsqlite3-0 && \ - apt autoremove --purge -y && \ - rm -rf \ - /tmp/* \ - /var/lib/apt/lists/* \ - /var/tmp/* && \ - useradd -m rosetta && \ - mkdir /data && \ - chown rosetta:rosetta /data && \ - chmod -R a+rw /home/rosetta - -COPY ic-rosetta-api /usr/local/bin/ic-rosetta-api - -USER rosetta - -WORKDIR /home/rosetta - -ENTRYPOINT ["/usr/local/bin/ic-rosetta-api", "--store-location", "/data"] diff --git a/rs/rosetta-api/docker/README.md b/rs/rosetta-api/docker/README.md deleted file mode 100644 index d11c6f6a44a..00000000000 --- a/rs/rosetta-api/docker/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Dockerfiles for building things locally - -The `Dockerfile`s in this directory serve as executable and -reproducible documentation for how to build `ic-rosetta-api` and -`ledger-canister.wasm` locally. diff --git a/rs/rosetta-api/docker/ic-rosetta-api.Dockerfile b/rs/rosetta-api/docker/ic-rosetta-api.Dockerfile deleted file mode 100644 index 5f016f8f302..00000000000 --- a/rs/rosetta-api/docker/ic-rosetta-api.Dockerfile +++ /dev/null @@ -1,42 +0,0 @@ -FROM rust:1.74-bookworm as builder - -ARG RELEASE=master - -WORKDIR /var/tmp - -COPY \ - ic-fi-1079.tar.gz \ - ic.tar.gz - -RUN \ - apt update && \ - apt install -y \ - ca-certificates \ - libsqlite3-0 \ - protobuf-compiler && \ - apt autoremove --purge -y - -RUN \ - tar -xf ic.tar.gz --strip-components=1 && \ - cd rs/rosetta-api && \ - cargo build --release --bin ic-rosetta-api - -FROM debian:bookworm-slim - -ARG RELEASE - -LABEL RELEASE=${RELEASE} - -WORKDIR /root - -COPY --from=builder \ - /var/tmp/rs/target/release/ic-rosetta-api \ - /usr/local/bin/ - -RUN \ - rm -rf \ - /tmp/* \ - /var/lib/apt/lists/* \ - /var/tmp/* - -ENTRYPOINT ["/usr/local/bin/ic-rosetta-api", "--store-location", "/data", "--store-type", "sqlite"] diff --git a/rs/rosetta-api/docker/ledger-canister.Dockerfile b/rs/rosetta-api/docker/ledger-canister.Dockerfile deleted file mode 100644 index 4c98bbe0b97..00000000000 --- a/rs/rosetta-api/docker/ledger-canister.Dockerfile +++ /dev/null @@ -1,21 +0,0 @@ -FROM rust:1.55.0-bullseye - -ARG RELEASE=master - -LABEL RELEASE=${RELEASE} - -WORKDIR /var/tmp - -ADD \ - https://github.com/dfinity/ic/archive/${RELEASE}.tar.gz \ - ic.tar.gz - -RUN \ - apt update && \ - apt install -y \ - cmake && \ - cargo install ic-cdk-optimizer && \ - tar -xf ic.tar.gz --strip-components=1 && \ - cd rs && \ - cargo build --target wasm32-unknown-unknown --release --bin ledger-canister && \ - ic-cdk-optimizer -o target/wasm32-unknown-unknown/release/ledger-canister.wasm target/wasm32-unknown-unknown/release/ledger-canister.wasm